ID:               27869
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Robin at RHarmsen dot nl
-Status:           Verified
+Status:           Assigned
 Bug Type:         Zend Engine 2 problem
 Operating System: Windows XP
 PHP Version:      5CVS-2004-04-08
-Assigned To:      
+Assigned To:      andi
 New Comment:

No, he means that he found the cause and that he could verify it. I
just assigned it to the engine guru Andi, who hopefully has a look at
it.



Derick


Previous Comments:
------------------------------------------------------------------------

[2004-04-14 15:13:10] Robin at RHarmsen dot nl

So I will never be able to use zend1 compatibility mode and MySQLi at
the same time?



this would be very handy to revice old PHP4 code so it uses MySQLi and
still run the code in compatibility mode for the time being (just in
case some stuff doesn't work in PHP5 directly)

------------------------------------------------------------------------

[2004-04-09 13:32:38] [EMAIL PROTECTED]

This causes the crash:



zend.ze1_compatibility_mode = On



(if it's OFF, the thing works as expected!)



------------------------------------------------------------------------

[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

Reply via email to