php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40898 MySQLi segfaults during module initialization
Submitted: 2007-03-23 00:41 UTC Modified: 2007-03-23 08:21 UTC
From: demiurg at gmail dot com Assigned:
Status: Closed Package: MySQLi related
PHP Version: 6CVS-2007-03-23 (CVS) OS: Linux i686
Private report: No CVE-ID: None
 [2007-03-23 00:41 UTC] demiurg at gmail dot com
Description:
------------
Please, delete the extra STANDARD_MODULE_HEADER line at ext/mysqli/mysqli.c:442


Reproduce code:
---------------
# sapi/cli/php -m
Segmentation fault

(gdb) bt
#0  0xb68474c3 in strlen () from /lib/libc.so.6
#1  0x083a0546 in zend_register_module_ex (module=0x85e19c0) at Zend/zend_API.c:1923
#2  0x0834ba8c in php_register_extensions (ptr=0x85fe7a4, count=54) at main/main.c:1531
#3  0x0842689b in php_register_internal_extensions () at main/internal_functions_cli.c:149
#4  0x0834ca4b in php_module_startup (sf=0x85fe600, additional_modules=0x0, num_additional_modules=0)
    at main/main.c:1749
#5  0x08423dbd in php_cli_startup (sapi_module=0x85fe600) at sapi/cli/php_cli.c:341
#6  0x0842454c in main (argc=2, argv=0xbfca8f14) at sapi/cli/php_cli.c:719


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-23 08:21 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC