ID: 24181 User updated by: tmiller at web-1hosting dot net Reported By: tmiller at web-1hosting dot net -Status: Feedback +Status: Open Bug Type: MySQL related Operating System: Linux-2.4.20 PHP Version: 4.3.2 New Comment:
Php configuration: http://php.web-1hosting.net/bugs/config.nice php.ini: http://php.web-1hosting.net/bugs/php.ini Anything else I can provide? Previous Comments: ------------------------------------------------------------------------ [2003-06-14 05:17:44] [EMAIL PROTECTED] Does not crash for me. How did you configure PHP? ------------------------------------------------------------------------ [2003-06-13 16:56:33] tmiller at web-1hosting dot net Description: ------------ When using mysql_info() whithin a class if the link identifier is passed using $this->connection_id php will crash. This happens both with apache module and using CLI. Reproduce code: --------------- Code may be found at: http://php.web-1hosting.net/bugs/mysql_info_crash.html Expected result: ---------------- I expect to see the string "here: Rows matched: 1 Changed: 0 Warnings: 0" on the screen/webpage. Actual result: -------------- [EMAIL PROTECTED]:~/Developement/htdocs$ ./mysql.php Segmentation fault (core dumped) [EMAIL PROTECTED]:~/Developement/htdocs$ gdb /usr/bin/php core (gdb) bt #0 0x08152672 in zend_fetch_resource (passed_id=0x4, default_id=-1, resource_type_name=0x4001dc53 "MySQL-Link", found_resource_type=0x0, num_resource_types=2) at /home/tmiller/Php/php-4.3.2/Zend/zend_list.c:123 #1 0x40019bf9 in zif_mysql_info () from /usr/lib/php/extensions/mysql.so #2 0x08159c7a in execute (op_array=0x8232be4) at /home/tmiller/Php/php-4.3.2/Zend/zend_execute.c:1606 #3 0x08159a1b in execute (op_array=0x822cfe4) at /home/tmiller/Php/php-4.3.2/Zend/zend_execute.c:1650 #4 0x0814d4fb in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/tmiller/Php/php-4.3.2/Zend/zend.c:869 #5 0x0812787f in php_execute_script (primary_file=0xbffff820) at /home/tmiller/Php/php-4.3.2/main/main.c:1671 #6 0x0815e788 in main (argc=3, argv=0xbffff8b4) at /home/tmiller/Php/php-4.3.2/sapi/cli/php_cli.c:806 #7 0x4033bbb4 in __libc_start_main () from /lib/libc.so.6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24181&edit=1