#48934 [NEW]: mysqli::real_escape_string causes Apache to crash
| From: | volumnet at olympus dot ru | Date: | Wed, 15 Jul 2009 20:06:08 +0000 |
| Subject: | #48934 [NEW]: mysqli::real_escape_string causes Apache to crash | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139769@lists.php.net to get a copy of this message | ||
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