ID: 35388
Updated by: sniper@php.net
Reported By: dmytton@php.net
-Status: Assigned
+Status: Feedback
Bug Type: MySQLi related
Operating System: Windows XP Home SP2
PHP Version: 5.1.0
Assigned To: georg
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-11-28 23:18:31] georg@php.net
Looks like there is a binary incompatibility in protocol when
connecting from 4.1 client to 5.0.16.
I was able to reproduce the problem under linux too.
As a possible workaround you should compile PHP against 5.0.16 client
lib.
------------------------------------------------------------------------
[2005-11-28 17:19:22] dmytton@php.net
I've downloaded the latest snapshot (problem still exists) and the
win32 debug pack with the .pdb files. I've had a look on the PHP
mailing lists and Google but can't find any help for actually using the
debug pack. Can you point me in the right direction?
------------------------------------------------------------------------
[2005-11-28 10:03:21] sniper@php.net
If you'd install the latest CVS snapshot and the debug symbols, you'd
propably get a bit better backtrace:
http://snaps.php.net/
------------------------------------------------------------------------
[2005-11-25 18:55:48] dmytton@php.net
I've tested this on Linux (SuSe 9.3)/PHP 5.0.5/MySQL 4.1/MySQL
5.0/Apache 2.0.55 and the reproduce code works fine.
This suggests that it is a Windows problem. I am testing on Windows
XP/PHP 5.1/MySQL 5.0/Apache 2.0.55.
So, I have installed GDB onto my Windows machine to get a backtrace:
gdb
(gdb) target exec C:\php\php.exe
(gdb) run test.php
Starting program: C:\php\.php.exe test.php
warning: 3744:2900 Initializing all chains with next layer = 1002
A new command prompt appears with the test.php file output. This
includes the standard HTML headers but also shows the PHP warning that
should be displayed:
Warning: mysqli::mysqli(): (28000/1045): Access denied for user
'root'@'localhost (using password: YES) in test.php on line 7
However, the gdb window then shows:
Program received signal SIGSEGV, Segmentation fault. Type <return> to
continue or q <return> to quit.
I hit return and get this output:
0x77ea3c00 in ?? ()
Then running the bt command:
(gdb) bt
#0 0x77ea3c00 in ?? ()
#1 0x0012faa0 in ?? ()
#2 0x77ef360b in ?? ()
#3 0x77de69bc in ?? ()
#4 0x77de697d in ?? ()
#5 0x77de6950 in ?? ()
#6 0x100dce85 in ?? ()
#7 0x8528488b in ?? ()
Cannot access memory at address 0x424448b
The Apache error log shows "Parent: Child process exited with status
3221225477"
------------------------------------------------------------------------
[2005-11-25 17:25:31] tony2001@php.net
I've no idea, really.
I thought you should know it better, 'cause it's you're running
windows.
Try on another host, do some research, maybe you'll be able to give
some more information about it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35388--
Edit this bug report at http://bugs.php.net/?id=35388&edit=1