]> granicus.if.org Git - php/commitdiff
test
authormarcosptf <marcosptf@yahoo.com.br>
Fri, 24 Oct 2014 17:08:27 +0000 (15:08 -0200)
committerStanislav Malyshev <stas@php.net>
Mon, 24 Nov 2014 01:19:47 +0000 (17:19 -0800)
tests/func/012.phpt [new file with mode: 0644]

diff --git a/tests/func/012.phpt b/tests/func/012.phpt
new file mode 100644 (file)
index 0000000..3b0d8ea
--- /dev/null
@@ -0,0 +1,12 @@
+--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['\.']