From: volumnet at olympus dot ru Operating system: Windows XP SP3 PHP version: 5.3.0 PHP Bug Type: MySQLi related Bug description: mysqli::real_escape_string causes Apache to crash
Description:
------------
MySQLi function real_escape_string causes an internal server error
I'm using:
- VC6 x86 PHP 5.3.0 Windows binary (the problem there is both on thread
safe and non thread safe versions) with MySQLi extension support
- Apache 2.2.10
- MySQL 6.0.7 alpha
Reproduce code:
---------------
<?php
$SQL = new mysqli('localhost', 'root', 'password', 'database');
echo $SQL->real_escape_string('aaa');
?>
or
<?php
$SQL = mysqli_connect('localhost', 'root', 'password', 'database');
echo mysqli_real_escape_string($SQL, 'aaa');
?>
Expected result:
----------------
the code expected to return the string "aaa" like in PHP 5.2.x
Actual result:
--------------
while executing it causes Error 500 (Internal Server Error), with
"Premature end of script headers: php-cgi.exe" entry in Apache error log.
--
Edit bug report at http://bugs.php.net/?id=48934&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48934&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48934&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48934&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48934&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48934&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48934&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48934&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48934&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48934&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48934&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48934&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48934&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48934&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48934&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48934&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48934&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48934&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48934&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48934&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48934&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48934&r=mysqlcfg
