View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000701 | Xdebug | Uncategorized | public | 2011-07-05 09:43 | 2017-04-10 19:50 |
| Reporter | rusk | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | UNIX | OS | Ubuntu Linux | OS Version | 10.10 |
| Product Version | 2.1.0 | ||||
| Fixed in Version | 2.5.2 | ||||
| Summary | 0000701: Functions as array indexes. | ||||
| Description | php with xdebug stops script without any error messages even in server logs when you use function return value as array index. It affects some big commercial frameworks that make xdebug unusable... | ||||
| Steps To Reproduce | $array = array(); | ||||
| Additional Information | Usage functions as array indexes is allowed in official PHP documentation. | ||||
| Tags | No tags attached. | ||||
| Operating System | 2.6.32-30-generic 0000059-Ubuntu i686 GNU/Linux | ||||
| PHP Version | 5.3.6 | ||||
|
|
This script works just fine for me. Can you:
And then explain exactly when you get this problem.
|
|
|
The exact code from Expression Engine: <?php
} ?> This code works on production server without xdebug. On my local enviroinment it dies without any messages even in log on the line $this->action_ids[ucfirst($class)][$method] = $method; If I assign ucfirst($class) to a variable and use that variable as array index it works fine. xdebug settings are: xdebug.remote_enable=On |
|
|
I do not get a crash here, but I do see memory reading errors with valgrind. |
|
|
I've fixed the crash for Xdebug 2.2.0, but the real fix will have to wait. |
|
|
Right now, we print ???, but we need to see whether we can figure out the actual value. |