|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-21 23:18 UTC] jani@php.net
[2009-07-29 01:00 UTC] php-bugs at lists dot php dot net
[2009-09-23 21:42 UTC] uw@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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.