Doc #71496 [NEW]: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter
| From: | cbot at epu dot ntua dot gr | Date: | Tue, 02 Feb 2016 05:53:17 +0000 |
| Subject: | Doc #71496 [NEW]: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13154@lists.php.net to get a copy of this message | ||
From: cbot at epu dot ntua dot gr
Operating system:
PHP version: Irrelevant
Package: mbstring related
Bug Type: Documentation Problem
Bug description:mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter
Description:
------------
---
From manual page: http://www.php.net/function.mb-ereg
From manual page: http://www.php.net/function.mb-eregi
---
Both mb_ereg and mb_eregi functions have an optional $regs parameter
which will be returned as an array. Since this is a pass-by-reference
parameter, shouldn't the definitions mention it with the & (ampersand)
symbol?
IDEs, using stubs based on the documentation, complain for undefined
variable.
Expected result:
----------------
int mb_ereg ( string $pattern , string $string [, array &$regs ] )
int mb_eregi ( string $pattern , string $string [, array &$regs ] )
Actual result:
--------------
int mb_ereg ( string $pattern , string $string [, array $regs ] )
int mb_eregi ( string $pattern , string $string [, array $regs ] )
--
Edit bug report at https://bugs.php.net/bug.php?id=71496&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71496&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71496&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71496&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71496&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71496&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71496&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71496&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71496&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71496&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71496&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71496&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71496&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71496&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71496&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71496&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71496&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71496&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71496&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71496&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71496&r=mysqlcfg