com php-src: test to function addcslashes: ext/standard/tests/s trings/addcslashes_005.phpt ext/standard/tests/stri ngs/bin2hex_001.phpt
tests/func/012.phpt

From: Date: Mon, 24 Nov 2014 01:19:56 +0000
Subject: com php-src: test to function addcslashes: ext/standard/tests/s trings/addcslashes_005.phpt ext/standard/tests/stri ngs/bin2hex_001.phpt
tests/func/012.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83289@lists.php.net to get a copy of this message
Commit: 49a133dd0b08c52fd7565c313117fca1b9382f84 Author: marcosptf <marcosptf@yahoo.com.br> Fri, 24 Oct 2014 15:11:17 -0200 Committer: Stanislav Malyshev <stas@php.net> Sun, 23 Nov 2014 17:19:56 -0800 Parents: 2917c702523910ace15a78f9646bd95700239528 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=49a133dd0b08c52fd7565c313117fca1b9382f84 Log: test to function addcslashes test to function bin2hex Changed paths: A ext/standard/tests/strings/addcslashes_005.phpt A ext/standard/tests/strings/bin2hex_001.phpt D tests/func/012.phpt Diff: diff --git a/ext/standard/tests/strings/addcslashes_005.phpt b/ext/standard/tests/strings/addcslashes_005.phpt new file mode 100644 index 0000000..f0b2fbc --- /dev/null +++ b/ext/standard/tests/strings/addcslashes_005.phpt @@ -0,0 +1,12 @@ +--TEST-- +addcslashes(); function test with warning +--CREDITS-- + marcosptf - <marcosptf@yahoo.com.br> +#phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05 +--FILE-- +<?php +echo addcslashes("zoo['.']","z..A"); +?> +--EXPECTF-- +Warning: addcslashes(): Invalid '..'-range, '..'-range needs to be incrementing in %s on line %d +\zoo['\.'] diff --git a/ext/standard/tests/strings/bin2hex_001.phpt b/ext/standard/tests/strings/bin2hex_001.phpt new file mode 100644 index 0000000..e73500a --- /dev/null +++ b/ext/standard/tests/strings/bin2hex_001.phpt @@ -0,0 +1,11 @@ +--TEST-- +bin2hex(); function test +--CREDITS-- +marcosptf - <marcosptf@yahoo.com.br> +#phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05 +--FILE-- +<?php +echo bin2hex("123456"); +?> +--EXPECT-- +313233343536 diff --git a/tests/func/012..phpt b/tests/func/012.phpt deleted file mode 100644 index 3b0d8ea..0000000 --- a/tests/func/012.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -addcslashes(); function test ---CREDITS-- - marcosptf - <marcosptf@yahoo.com.br> -#phptestfest PHPSP on Google - Sao Paulo - Brazil - 2014-06-05 ---FILE-- -<?php -echo addcslashes("zoo['.']","z..A"); -?> ---EXPECTF-- -Warning: addcslashes(): Invalid '..'-range, '..'-range needs to be incrementing in %s on line %d -\zoo['\.']

« previous php.cvs (#83289) next »