|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-20 19:49 UTC] mdalton at galaxytelecom dot net
Description: ------------ While trying to call set_charset method on a mysqli object php crashes with a signal 11. Situation tested on a stock ubuntu php + mysqli + mysql 5.0 setup, and on a home rolled apache+hardened-php+mysql 5.0 system Reproduce code: --------------- <?php $mysqli = mysqli_init (); $mysqli->set_charset ( 'utf8' ); echo $mysqli->character_set_name (); ?> Expected result: ---------------- script should echo 'utf8' Actual result: -------------- The apache child process bombs with a signal 11 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912513283232 (LWP 30938)] 0x00002aaaae4b9c65 in mysql_send_query () from /usr/lib64/libmysqlclient.so.15 (gdb) bt #0 0x00002aaaae4b9c65 in mysql_send_query () from /usr/lib64/libmysqlclient.so.15 #1 0x00002aaaae4b9cd9 in mysql_real_query () from /usr/lib64/libmysqlclient.so.15 #2 0x00002aaaae4ba011 in mysql_set_character_set () from /usr/lib64/libmysqlclient.so.15 #3 0x00002aaaae6dcbc2 in zif_mysqli_set_charset (ht=<value optimized out>, return_value=0x950488, return_value_ptr=<value optimized out>, this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /usr/src/debug/php-5.1.2/ext/mysqli/mysqli_nonapi.c:329 #4 0x00000000005555d0 in zend_do_fcall_common_helper_SPEC (execute_data=0x7fffffb1d2a0) at zend_vm_execute.h:200 #5 0x0000000000554c53 in execute (op_array=0x9657a8) at zend_vm_execute.h:92 #6 0x000000000053857c in zend_execute_scripts (type=8, retval=<value optimized out>, file_count=3) at /usr/src/debug/php-5.1.2/Zend/zend.c:1109 #7 0x00000000004fac35 in php_execute_script (primary_file=0x7fffffb1f950) at /usr/src/debug/php-5.1.2/main/main.c:1725 #8 0x00000000005c9285 in main (argc=2, argv=0x7fffffb1fb08) at /usr/src/debug/php-5.1.2/sapi/cli/php_cli.c:1092 php -v PHP 5.1.3RC2-dev (cli) (built: Mar 20 2006 17:23:27)