Doc #66063 [Com]: output wrong in filter_var documentation

From: Date: Wed, 20 Nov 2013 04:16:56 +0000
Subject: Doc #66063 [Com]: output wrong in filter_var documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10616@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66063&edit=1 ID: 66063 Comment by: whatthejeff@php.net Reported by: christian dot brown at cbs dot com Summary: output wrong in filter_var documentation Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: kalle Block user comment: N Private report: N New Comment: Kalle, Your update makes the first example inconsistent with the other examples on the page which all print variable names instead of values. Previous Comments: ------------------------------------------------------------------------ [2013-11-16 23:21:25] kalle@php.net 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. ------------------------------------------------------------------------ [2013-11-16 23:21:22] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=332134 Log: Clarify this example a bit more (Re bug #66063) ------------------------------------------------------------------------ [2013-11-09 18:03:16] whatthejeff@php.net The description for this bug is slightly off. The IP and integer examples are actually correct. ------------------------------------------------------------------------ [2013-11-09 05:10:52] whatthejeff@php.net Automatic comment from SVN on behalf of whatthejeff Revision: http://svn.php.net/viewvc/?view=revision&revision=332088 Log: #66063 Make output from first filter example consistent with other filter examples ------------------------------------------------------------------------ [2013-11-08 13:52:33] christian dot brown at cbs dot com Description: ------------ --- From manual page: http://www.php.net/filter.examples.validation --- all the above documentation is slightly incorrect, the output is not reading the variables in - code: $email_a = 'joe@example.com'; $email_b = 'bogus'; if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) { echo "This ($email_a) email address is considered valid."; } output: This (email_a) email address is considered valid. should be output: This (joe@example.com) email address is considered valid. same for the IP and integer examples. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66063&edit=1

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