#27869 [Fbk->Opn]: Assigning MySQLi_connect to a variable crashes PHP
| From: | Robin at RHarmsen dot nl | Date: | Fri, 09 Apr 2004 10:21:22 +0000 |
| Subject: | #27869 [Fbk->Opn]: Assigning MySQLi_connect to a variable crashes PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57845@lists.php.net to get a copy of this message | ||
ID: 27869
User updated by: Robin at RHarmsen dot nl
Reported By: Robin at RHarmsen dot nl
-Status: Feedback
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Windows XP
PHP Version: 5CVS-2004-04-05 (dev)
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2004-04-08 20:01:46] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[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