#27869 [Opn->Ver]: Assigning MySQLi_connect to a variable crashes PHP
| From: | sniper@php.net | Date: | Fri, 09 Apr 2004 17:32:38 +0000 |
| Subject: | #27869 [Opn->Ver]: Assigning MySQLi_connect to a variable crashes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57878@lists.php.net to get a copy of this message | ||
ID: 27869
Updated by: sniper@php.net
Reported By: Robin at RHarmsen dot nl
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
Operating System: Windows XP
PHP Version: 5CVS-2004-04-08
New Comment:
This causes the crash:
zend.ze1_compatibility_mode = On
(if it's OFF, the thing works as expected!)
Previous Comments:
------------------------------------------------------------------------
[2004-04-09 06:21:22] Robin at RHarmsen dot nl
I tried the latest:
http://snaps.php.net/win32/php5-win32-200404081830.zip
Built On: Apr 08, 2004 18:30 GMT
and that one still has the crash
------------------------------------------------------------------------
[2004-04-05 10:37:08] Robin at RHarmsen dot nl
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 this bug report at http://bugs.php.net/?id=27869&edit=1