ID: 31732
User updated by: clewis at myfonts dot com
Reported By: clewis at myfonts dot com
Status: Open
Bug Type: Reproducible crash
Operating System: RedHat Enterprise 3
PHP Version: 5.0.3
New Comment:
Only happens when no argument is given. According to the manual, this
case should behave as if the argument is 'all'.
Previous Comments:
------------------------------------------------------------------------
[2005-01-28 01:23:45] clewis at myfonts dot com
Description:
------------
Calling the mb_get_info() function causes segmentation fault. This
happens both as Apache module and CLI.
The other mb_* functions work fine, it's just the info that causes a
problem.
Compiled with:
'./configure' '--prefix=/usr/local' '--with-apache=../apache'
'--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-gd'
'--with-mcrypt=/usr/local' '--enable-mbstring' '--with-zlib'
'--with-iconv' '--with-pspell=/usr/local' '--with-curlwrappers'
'--enable-soap' '--with-libxml-dir=/usr/local' '--without-sqlite'
Reproduce code:
---------------
<?php
var_dump(mb_get_info());
?>
Expected result:
----------------
Multi-byte string library info.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218546240 (LWP 11950)]
0x00aa7f38 in strcasecmp () from /lib/tls/libc.so.6
(gdb) bt
#0 0x00aa7f38 in strcasecmp () from /lib/tls/libc.so.6
#1 0x080b9f0d in zif_mb_get_info (ht=0, return_value=0xb62898,
this_ptr=0x0,
return_value_used=1) at
/usr/local/src/currentstuff/php-5.0.3/ext/mbstring/mbstring.c:3219
#2 0x081d04d6 in zend_do_fcall_common_helper (execute_data=0xbfffb150,
opline=0x9d69d9c,
op_array=0x9d65c4c) at
/usr/local/src/currentstuff/php-5.0.3/Zend/zend_execute.c:2711
#3 0x081cdad2 in execute (op_array=0x9d65c4c)
at /usr/local/src/currentstuff/php-5.0.3/Zend/zend_execute.c:1400
#4 0x081b3c77 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /usr/local/src/currentstuff/php-5.0.3/Zend/zend.c:1069
#5 0x08186a73 in php_execute_script (primary_file=0xbfffd510)
at /usr/local/src/currentstuff/php-5.0.3/main/main.c:1628
#6 0x081d6c64 in main (argc=2, argv=0xbfffd5d4)
at /usr/local/src/currentstuff/php-5.0.3/sapi/cli/php_cli.c:943
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31732&edit=1