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

From: Date: Mon, 09 Feb 2004 16:40:01 +0000
Subject: #27137 [Fbk->NoF]: ZE2 Crashes in non-debug mode (CLI only)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54619@lists.php.net to get a copy of this message
ID: 27137 Updated by: sniper@php.net Reported By: john@php.net -Status: Feedback +Status: No Feedback Bug Type: Reproducible crash Operating System: Redhat 8 PHP Version: 5CVS-2004-02-03 (dev) Assigned To: moriyoshi New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2004-02-04 04:31:32] moriyoshi@php.net 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? ------------------------------------------------------------------------ [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 (#54619) next »