|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-01-05 16:58 UTC] demeter at dcs dot fmph dot uniba dot sk
Description:
------------
This code doesn't crash:
<?php
$a = 'aa';
$b = $a{0};
switch ($b) {
case '-':
break;
}
?>
In PHP5 Beta1 both samples run corectly.
Reproduce code:
---------------
<?php
$a = 'aa';
switch ($a{0}) {
case '-':
break;
}
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
0x0835814d in zend_pzval_unlock_func (z=0x1) at /usr/src/web/php/php5/Zend/zend_execute.c:64 64 z->refcount--; (gdb) bt #0 0x0835814d in zend_pzval_unlock_func (z=0x1) at /usr/src/web/php/php5/Zend/zend_execute.c:64 #1 0x0835866d in zend_switch_free (opline=0x40e48c40, Ts=0xbfffd740) at /usr/src/web/php/php5/Zend/zend_execute.c:202 #2 0x0835478a in zend_switch_free_handler (execute_data=0xbfffd7b0, op_array=0x40e48724) at /usr/src/web/php/php5/Zend/zend_execute.c:3076 #3 0x0834f18c in execute (op_array=0x40e48724) at /usr/src/web/php/php5/Zend/zend_execute.c:1264 #4 0x0832da5c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/web/php/php5/Zend/zend.c:1050 #5 0x082ead64 in php_execute_script (primary_file=0xbffffbb0) at /usr/src/web/php/php5/main/main.c:1642 #6 0x0836742c in main (argc=2, argv=0xbffffc44) at /usr/src/web/php/php5/sapi/cli/php_cli.c:925