Doc #62618 [Nab]: third param isn't optional

From: Date: Fri, 20 Jul 2012 10:08:01 +0000
Subject: Doc #62618 [Nab]: third param isn't optional
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8618@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62618&edit=1 ID: 62618 Updated by: aharvey@php.net Reported by: adax2000 at gmail dot com Summary: third param isn't optional Status: Not a bug Type: Documentation Problem Package: *General Issues PHP Version: 5.3.15 Block user comment: N Private report: N New Comment: My apologies; it's only optional as of 5.4.0 (per the changelog on the preg_match_all() manual page). Previous Comments: ------------------------------------------------------------------------ [2012-07-20 09:52:09] adax2000 at gmail dot com are you sure, that's what i'm getting Debug Warning: /deep2/public_html/wp-content/themes/deep/functions.php line 52 - preg_match_all() expects at least 3 parameters, 2 given ------------------------------------------------------------------------ [2012-07-20 09:37:42] aharvey@php.net Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. The third parameter is definitely optional. You have another problem in your code. ------------------------------------------------------------------------ [2012-07-20 09:35:11] adax2000 at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.preg-match-all#refsect1-function.preg-match-all-description --- third param in preg_match_all is required and omitting it will get you false on return in contrary to documation that states it's optional, what's strange in preg_match it's not required ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62618&edit=1

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