From: Robin at RHarmsen dot nl Operating system: Windows XP PHP version: 5CVS-2004-04-05 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Asigning MySQLi_connect to a variable crashes PHP
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 -- Edit bug report at http://bugs.php.net/?id=27869&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27869&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27869&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27869&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27869&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27869&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27869&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27869&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27869&r=support Expected behavior: http://bugs.php.net/fix.php?id=27869&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27869&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27869&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27869&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27869&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27869&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27869&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27869&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27869&r=float