PHP 4.0 Bug #8616: mysql.default_socket not initialized properly -> crash with access violation

From: Date: Tue, 09 Jan 2001 15:14:28 +0000
Subject: PHP 4.0 Bug #8616: mysql.default_socket not initialized properly -> crash with access violation
Groups: php.dev 
Request: Send a blank email to php-dev+get-43565@lists.php.net to get a copy of this message
From: marc@guidance.nl Operating system: WinNT4 PHP version: 4.0.4 PHP Bug Type: MySQL related Bug description: mysql.default_socket not initialized properly -&gt; crash with access violation After an unmodified (debug) build (using VC6.0) of PHP4.04 and running the following script <?php $link = mysql_connect ("localhost", "username", "pw"); ?> PHP crashes with an access violation. I tracked this down to an uninitialized mysql.default_socket pointer. I can solve this problem by setting the STD_PHP_INI_ENTRY (in php_mysql.c) from OnUpdateStringUnempty to OnUpdateString (see below), even though I think this setting was not put there by accident... so I don't know if there are any side-effects (esp for *nix builds) PHP_INI_BEGIN() [...] STD_PHP_INI_ENTRY("mysql.default_socket", NULL, PHP_INI_ALL, OnUpdateString, default_socket, zend_mysql_globals, mysql_globals) PHP_INI_END() Cheerio, Marc. -- Edit Bug report at: http://bugs.php.net/?id=8616&edit=1

« previous php.dev (#43565) next »