php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48934 mysqli::real_escape_string causes Apache to crash
Submitted: 2009-07-15 20:06 UTC Modified: 2009-09-23 21:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: volumnet at olympus dot ru Assigned:
Status: No Feedback Package: MySQLi related
PHP Version: 5.3.0 OS: Windows XP SP3
Private report: No CVE-ID: None
 [2009-07-15 20:06 UTC] volumnet at olympus dot ru
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-21 23:18 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-07-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2009-09-23 21:42 UTC] uw@php.net
Win, mysqlnd, MySQL 6.0, escape - smells like http://bugs.php.net/49262

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 18:01:31 2024 UTC