#27137 [Asn->Fbk]: ZE2 Crashes in non-debug mode (CLI only)

From: Date: Wed, 04 Feb 2004 09:31:32 +0000
Subject: #27137 [Asn->Fbk]: ZE2 Crashes in non-debug mode (CLI only)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54378@lists.php.net to get a copy of this message
ID: 27137 Updated by: moriyoshi@php.net Reported By: john@php.net -Status: Assigned +Status: Feedback Bug Type: Reproducible crash Operating System: Redhat 8 PHP Version: 5CVS-2004-02-03 (dev) Assigned To: moriyoshi New Comment: Is this reproducible with the following snippet? <?php var_dump(basename('index.tpl')); ?> And what is the value of LC_CTYPE and LANG environment variables? Previous Comments: ------------------------------------------------------------------------ [2004-02-03 21:19:46] john@php.net Description: ------------ Although I can't trace it down exactly, something in the last day or so has caused PHP 5 HEAD to crash when using Smarty. Here is the backtrace: #0 0x4201c207 in utf8_internal_loop_single () from /lib/i686/libc.so.6 #1 0x4201a89a in __gconv_transform_utf8_internal () from /lib/i686/libc.so.6 #2 0x42082a22 in mbrtowc () from /lib/i686/libc.so.6 #3 0x402ba8d4 in php_basename (s=0x80e2bd4 "index.tpl", len=9, suffix=0x0, sufflen=0, p_ret=0xbfffad94, p_len=0xbfffad98, tsrm_ls=0x80de480) at /usr/include/wchar.h:320 #4 0x402baa36 in zif_basename (ht=1, return_value=0x80e81b4, this_ptr=0x0, return_value_used=1, tsrm_ls=0x80de480) at /home/john/working/php-src/ext/standard/string.c:1149 #5 0x403436ba in zend_do_fcall_common_helper (execute_data=0xbfffb6b0, opline=0x40b88a48, op_array=0x40baf6cc, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute.c:2558 #6 0x40343867 in zend_do_fcall_handler (execute_data=0xbfffb6b0, opline=0x40b88a48, op_array=0x40baf6cc, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute.c:2700 #7 0x4033fb09 in execute (op_array=0x40baf6cc, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute.c:1272 #8 0x4034342a in zend_do_fcall_common_helper (execute_data=0xbfffb830, opline=0x8119c48, op_array=0x40baeb0c, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute.c:2587 #9 0x4034378d in zend_do_fcall_by_name_handler (execute_data=0x656d616e, opline=0x8119c48, op_array=0x40baeb0c, tsrm_ls=0x80de480) at /home/john/working/php-src/Zend/zend_execute.c:2669 It appears the recent UTF8 Changes have broken php_basename() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27137&edit=1

« previous php.bugs (#54378) next »