View Issue Details

IDProjectCategoryView StatusLast Update
0000347Xdebugpublic2011-09-26 14:00
Reportermail_ben_schmidt Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
Summary0000347: Crash in interactive mode when defining a function after a variable in include()
Description

If an included files sets a variable and then defines a function, PHP goes boom! with a bus error on my system. Just setting the variable, or just defining the function, or doing them in the reverse order causes no problem.

This may turn out to be a minimal test case for 0000339 but I'm filing it as a separate bug; but when fixed, we should see if it also fixes 0000339.

If I can help by gathering more info, let me know, preferably by email (if this bug reporter will automatically email me when the bug is updated, that's cool).

Ben.

Additional Information

$ cat t.php
<?php
$a=1;
function b() { }
?>
$ php -a
Interactive shell

php > include('t.php');
Bus error

TagsNo tags attached.
Operating SystemMac OS X 10.4.9
PHP Version5.2.3

Activities

derick

2011-09-25 22:34

administrator   ~0001814

This works fine with Xdebug 2.1.2. Is this still an issue?

mail_ben_schmidt

2011-09-26 13:56

reporter   ~0001819

I can no longer reproduce it with PHP 5.3.6 and Xdebug 2.1.1, so I guess it's probably no longer an issue.

derick

2011-09-26 14:00

administrator   ~0001820

Cheers, thanks for double checking as well!