From: [EMAIL PROTECTED]
Operating system: Redhat 8
PHP version: 5CVS-2004-02-03 (dev)
PHP Bug Type: Reproducible crash
Bug description: ZE2 Crashes in non-debug mode (CLI only)
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 bug report at http://bugs.php.net/?id=27137&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27137&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27137&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27137&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27137&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27137&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27137&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27137&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27137&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27137&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27137&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27137&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27137&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27137&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27137&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27137&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27137&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27137&r=float