#26696 [Ver]: When using string index in a switch(), segfault in PHP5.0.0b3
| From: | moriyoshi@php.net | Date: | Mon, 22 Dec 2003 22:00:21 +0000 |
| Subject: | #26696 [Ver]: When using string index in a switch(), segfault in PHP5.0.0b3 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52412@lists.php.net to get a copy of this message | ||
ID: 26696
Updated by: moriyoshi@php.net
Reported By: saruman at northernhacking dot org
Status: Verified
Bug Type: Reproducible crash
Operating System: Linux RH9
PHP Version: 5.0.0b3 (beta3)
New Comment:
Maybe related to bug #17997
Previous Comments:
------------------------------------------------------------------------
[2003-12-22 16:50:56] saruman at northernhacking dot org
More detailed and accurate summary
------------------------------------------------------------------------
[2003-12-22 15:47:34] saruman at northernhacking dot org
Just reiterating that this is with beta3
------------------------------------------------------------------------
[2003-12-22 14:51:55] saruman at northernhacking dot org
case '?': is the culprit.
------------------------------------------------------------------------
[2003-12-22 14:38:45] saruman at northernhacking dot org
Replacing the switch() block by echo like:
for (...) {
echo $str[$i];
}
produces the expected behavior. The problem appears to be in the
switch() or case statements.
------------------------------------------------------------------------
[2003-12-22 14:36:00] saruman at northernhacking dot org
In the code snippet, commenting out the content of the switch loop
prevents the crash.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/26696
--
Edit this bug report at http://bugs.php.net/?id=26696&edit=1