#26850 [NEW]: eregi gave different result
| From: | mobanajp at yahoo dot co dot jp | Date: | Fri, 09 Jan 2004 09:46:12 +0000 |
| Subject: | #26850 [NEW]: eregi gave different result | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-24925@lists.php.net to get a copy of this message | ||
From: mobanajp at yahoo dot co dot jp
Operating system: WinXP
PHP version: 4.3.4
PHP Bug Type: PECL related
Bug description: eregi gave different result
Description:
------------
pattern match gave different result depend on the given string.
Reproduce code:
---------------
eregi("<a href=\"(.*)\">","<a
href=\"link1\">#someotherwords#link2\">",$link);
Expected result:
----------------
link1
Actual result:
--------------
link1">#someotherwords#link2 but sometime link1, depends on the URL &
words between it
--
Edit bug report at http://bugs.php.net/?id=26850&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26850&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26850&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26850&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26850&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26850&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26850&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26850&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26850&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26850&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26850&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26850&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26850&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26850&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26850&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26850&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26850&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26850&r=float