|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-02 21:45 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 22:00:01 2025 UTC |
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.