|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-09 06:21 UTC] Robin at RHarmsen dot nl
[2004-04-09 13:32 UTC] sniper@php.net
[2004-04-14 15:13 UTC] Robin at RHarmsen dot nl
[2004-04-14 15:45 UTC] derick@php.net
[2004-12-11 01:30 UTC] andi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 05:00:01 2025 UTC |
Description: ------------ When assigning the result of MySQLi_connect() to a variable crashes PHP. while just calling MySQLi_connect() with the same arguments doesn't crash. I run Apache 2.0.49 Win32 on Windows XP with the Latest PHP5 CVS version. PHP.ini diff: zend.ze1_compatibility_mode = On allow_call_time_pass_reference = Off error_reporting = E_ALL register_argc_argv = Off extension_dir = "C:\php\ext\" extension=php_mysqli.dll mysqli.default_host = barserver Reproduce code: --------------- <?php //this is good: mysqli_connect("barserver","baruser","barpass"); // This crashes $foo = mysqli_connect("barserver","baruser","barpass"); ?> <?php // when disabeling mysqli and enableing mysql extension // this is good: $foo = mysql_connect("barserver","baruser","barpass"); ?> Expected result: ---------------- I expected that $foo would be assigned a mysqli link or mysqli object. Actual result: -------------- Apache + PHP crashes