note 80815 added to function.ereg
| From: | Will at osu1 dot php dot net | Date: | Fri, 01 Feb 2008 15:47:51 +0000 |
| Subject: | note 80815 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135707@lists.php.net to get a copy of this message | ||
There is undocumented behaviour for this command!
You cannot check for strings of 1-256 characters or longer.
For example, this will evaluate to true:
ereg("^[a-zA-Z0-9' ]{1,255}$","ghfhg");
But this will give the error:
PHP Warning: ereg(): REG_BADBR
ereg("^[a-zA-Z0-9' ]{1,256}$","ghfhg");
PHP version (on Windows XP):
PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
----
Server IP: 194.145.210.3
Probable Submitter: 90.203.183.181
----
Manual Page -- http://www.php.net/manual/en/function.ereg.php
Edit -- https://master.php.net/note/edit/80815
Del: integrated -- https://master.php.net/note/delete/80815/integrated
Del: useless -- https://master.php.net/note/delete/80815/useless
Del: bad code -- https://master.php.net/note/delete/80815/bad+code
Del: spam -- https://master.php.net/note/delete/80815/spam
Del: non-english -- https://master.php.net/note/delete/80815/non-english
Del: in docs -- https://master.php.net/note/delete/80815/in+docs
Del: other reasons-- https://master.php.net/note/delete/80815
Reject -- https://master.php.net/note/reject/80815
Search -- https://master.php.net/manage/user-notes.php