| Anonymous | Login | Signup for a new account | 10-26-2025 15:58 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001502 | [Quercus] | major | always | 12-10-06 08:24 | 12-12-06 06:32 | ||||
| Reporter | at4u | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | Platform | GNU/Linux | ||||
| Status | closed | OS | Gentoo Linux | ||||||
| Projection | none | OS Version | N/A | ||||||
| ETA | none | Fixed in Version | 3.1.0 | Product Version | 3.0.22 | ||||
| Product Build | |||||||||
| Summary | 0001502: stristr implementation seems to be buggy | ||||||||
| Description |
Hi there, while testing a PHP Java bridge and server side JVM management for performance reasons I installed Resin 3.0.22. I found the following bug while doing so: Script: <?php if (stristr ("bug","bug")) { echo "Everything works as expected"; } else { echo "We found a new bug here!"; } ?> Actual result: Output: "We found a new bug here!" Expected: Output: "Everything works as expected" |
||||||||
| Steps To Reproduce | Save the script as a PHP file and load it via Resin. | ||||||||
| Additional Information |
Same for the following comparision: if (stristr ("bugab","bug")) { echo "Everything works as expected"; } else { echo "We found a new bug here!"; } Looks like Quercus ignores a matches if its at the beginning of the string. |
||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |