note 82498 added to function.mysql-field-flags
| From: | dev at rgbworld dot com | Date: | Sun, 13 Apr 2008 22:45:12 +0000 |
| Subject: | note 82498 added to function.mysql-field-flags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138285@lists.php.net to get a copy of this message | ||
With regard to get_fields() by pike-php at kw dot nl
For 'enum and 'set' the code improperly parses single quote marks that should be
allowed in the elements.
For example EMUM('a\'s', 'b') is parsed into 3 array elements when it
should be 2.
Wrong:
[args] => Array
(
[0] => a
[1] => s
[2] => b
)
It should give:
[args] => Array
(
[0] => a's
[1] => b
)
I am not good with preg, but if someone could provide a solution, that would be great. Thank you!
----
Server IP: 64.71.164.2
Probable Submitter: 98.144.78.117
----
Manual Page -- http://www.php.net/manual/en/function.mysql-field-flags.php
Edit -- https://master.php.net/note/edit/82498
Del: integrated -- https://master.php.net/note/delete/82498/integrated
Del: useless -- https://master.php.net/note/delete/82498/useless
Del: bad code -- https://master.php.net/note/delete/82498/bad+code
Del: spam -- https://master.php.net/note/delete/82498/spam
Del: non-english -- https://master.php.net/note/delete/82498/non-english
Del: in docs -- https://master.php.net/note/delete/82498/in+docs
Del: other reasons-- https://master.php.net/note/delete/82498
Reject -- https://master.php.net/note/reject/82498
Search -- https://master.php.net/manage/user-notes.php