Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2973 | minor | always | 09-27-08 20:16 | 10-02-08 13:35 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.2.1 | ||
|
|||||
Summary: | 0002973: Call-time pass by reference returns screwy results from substr() | ||||
Description: |
Found this one in some third-party code. The code is technically not really correct, but Quercus fails strangely: <?php $foo = "test me"; $bar = substr(&$foo, 3, 3); print $bar; Vanilla PHP prints "t m", and logs a warning about pass-by-reference. Quercus prints ".ca" which I suspect is really just random junk (though it seems to be the same junk every time I run the test.) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|