|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-30 21:06 UTC] uw@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: uw
[2013-01-30 21:06 UTC] uw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ We tried to use mysqlnd_ms query hints with Drupal 7 but it fails. This Drupal patch fixes the problem: --- includes/database/database.inc 2013-01-15 12:16:43.884567043 +0000 +++ includes/database/database.inc.new 2013-01-15 12:16:38.294587150 +0000 @@ -572,7 +572,7 @@ $comment = implode('; ', $comments); // Sanitize the comment string so as to avoid SQL injection attacks. - return '/* ' . $this->filterComment($comment) . ' */ '; + return '/*' . $this->filterComment($comment) . '*/'; } /** But the real problem is not Drupal itself. It's mysqlnd_ms that refuses to obey query hints when they're padded with whitespaces. mysqlnd_ms version we have in use is 1.4.2. PHP is 5.3.20.