From: jh2000 at root24 dot eu
Operating system: Debian
PHP version: 6CVS-2007-05-18 (snap)
PHP Bug Type: MySQL related
Bug description: Segfault on mysql_ping()
Description:
------------
use of mysql_ping causes segfault
tested on PHP 6 200705181630 and some other php6 build in the last 2
month
The build return no warnings/errors related to this problem.
The script given is just a bit of whole script. Without the mysql_ping the
script (a phpbot written by myself) works. With - it crashes
Reproduce code:
---------------
<?
echo "State 1\n";
mysql_connect("localhost","test","test");
echo "State 2\n";
mysql_ping();
echo "PHP still running";
?>
Expected result:
----------------
State1
State2
PHP still running
Actual result:
--------------
i just get an Segfault after State 2
Output is:
State1
State2Speicherzugriffsfehler
Dmesg shows
php6[1056]: segfault at 0000000007ffff0c rip 00000000083c1883 rsp
00000000ff9f5900 error 4
--
Edit bug report at http://bugs.php.net/?id=41439&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41439&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41439&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41439&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41439&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41439&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41439&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41439&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41439&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41439&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41439&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41439&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41439&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41439&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41439&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41439&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41439&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41439&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41439&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41439&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41439&r=mysqlcfg