|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-30 16:03 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2016-12-30 16:03 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
Description: ------------ Any fields, table names or WHERE clause parameters that begin with the letter 's' have the 's' character dropped. Reproduce code: --------------- $q = "SELECT smiley FROM face WHERE sad != 1"; $parsed = PDO_User::parseSQL($q); print_r($parsed); Expected result: ---------------- Array ( [type] => statement [statement] => select [fields] => Array ( [0] => smiley ) [from] => face [modifiers] => Array ( [where] => Array ( [type] => condition [op1] => sad [condition] => != [op2] => 1 ) ) [terminating-semicolon] => ) Actual result: -------------- Array ( [type] => statement [statement] => select [fields] => Array ( [0] => miley ) [from] => face [modifiers] => Array ( [where] => Array ( [type] => condition [op1] => ad [condition] => != [op2] => 1 ) ) [terminating-semicolon] => )