Doc #71496 [Opn->Csd]: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter

From: Date: Wed, 03 Feb 2016 18:52:03 +0000
Subject: Doc #71496 [Opn->Csd]: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13160@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71496&edit=1 ID: 71496 Updated by: cmb@php.net Reported by: cbot at epu dot ntua dot gr Summary: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter -Status: Open +Status: Closed Type: Documentation Problem Package: mbstring related PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-02-03 18:51:23] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=338566 Log: fixed #71496: mb_ereg & mb_eregi definitions are missing & symbol on $regs parameter ------------------------------------------------------------------------ [2016-02-02 05:53:10] cbot at epu dot ntua dot gr 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 this bug report at https://bugs.php.net/bug.php?id=71496&edit=1

« previous php.doc.bugs (#13160) next »