View Issue Details

IDProjectCategoryView StatusLast Update
0000347Xdebugpublic2011-09-26 14:00
Reportermail_ben_schmidt Assigned Toderick  
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!

Issue History

Date Modified Username Field Change
2008-01-09 02:09 mail_ben_schmidt New Issue
2011-09-25 22:34 derick Note Added: 0001814
2011-09-25 22:34 derick Assigned To => derick
2011-09-25 22:35 derick Status new => feedback
2011-09-26 13:56 mail_ben_schmidt Note Added: 0001819
2011-09-26 13:56 mail_ben_schmidt Status feedback => assigned
2011-09-26 14:00 derick Note Added: 0001820
2011-09-26 14:00 derick Status assigned => resolved
2011-09-26 14:00 derick Resolution open => no change required
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)