svn: /php/php-src/ branches/PHP_5_2/ext/filter/tests/bug50158.phpt branches/PHP_5_3/ext/filter/tests/bug50158.phpt
trunk/ext/filter/tests/bug50158.phpt
| From: | Felipe Pena | Date: | Sun, 15 Nov 2009 17:05:48 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_2/ext/filter/tests/bug50158.phpt branches/PHP_5_3/ext/filter/tests/bug50158.phpt trunk/ext/filter/tests/bug50158.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60922@lists.php.net to get a copy of this message | ||
felipe Sun, 15 Nov 2009 17:05:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290793
Log:
- Improve test
Changed paths:
U php/php-src/branches/PHP_5_2/ext/filter/tests/bug50158.phpt
U php/php-src/branches/PHP_5_3/ext/filter/tests/bug50158.phpt
U php/php-src/trunk/ext/filter/tests/bug50158.phpt
Modified: php/php-src/branches/PHP_5_2/ext/filter/tests/bug50158.phpt
===================================================================
--- php/php-src/branches/PHP_5_2/ext/filter/tests/bug50158.phpt 2009-11-15 16:59:22 UTC (rev 290792)
+++ php/php-src/branches/PHP_5_2/ext/filter/tests/bug50158.phpt 2009-11-15 17:05:48 UTC (rev 290793)
@@ -12,8 +12,12 @@
$email_address = "test+mail@example.com";
var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+$email_address = "test?mail@example.com";
+var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+
?>
--EXPECTF--
%unicode|string%(21) "test=mail@example.com"
%unicode|string%(21) "test-mail@example.com"
%unicode|string%(21) "test+mail@example.com"
+%unicode|string%(21) "test?mail@example.com"
Modified: php/php-src/branches/PHP_5_3/ext/filter/tests/bug50158.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/filter/tests/bug50158.phpt 2009-11-15 16:59:22 UTC (rev 290792)
+++ php/php-src/branches/PHP_5_3/ext/filter/tests/bug50158.phpt 2009-11-15 17:05:48 UTC (rev 290793)
@@ -12,8 +12,12 @@
$email_address = "test+mail@example.com";
var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+$email_address = "test?mail@example.com";
+var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+
?>
--EXPECTF--
%unicode|string%(21) "test=mail@example.com"
%unicode|string%(21) "test-mail@example.com"
%unicode|string%(21) "test+mail@example.com"
+%unicode|string%(21) "test?mail@example.com"
Modified: php/php-src/trunk/ext/filter/tests/bug50158.phpt
===================================================================
--- php/php-src/trunk/ext/filter/tests/bug50158.phpt 2009-11-15 16:59:22 UTC (rev 290792)
+++ php/php-src/trunk/ext/filter/tests/bug50158.phpt 2009-11-15 17:05:48 UTC (rev 290793)
@@ -12,8 +12,12 @@
$email_address = "test+mail@example.com";
var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+$email_address = "test?mail@example.com";
+var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
+
?>
--EXPECTF--
%unicode|string%(21) "test=mail@example.com"
%unicode|string%(21) "test-mail@example.com"
%unicode|string%(21) "test+mail@example.com"
+%unicode|string%(21) "test?mail@example.com"