]> granicus.if.org Git - php/commitdiff
New set_magic_quotes() tests. Tested on Windows, Linux and linux 64
authorandy wharmby <wharmby@php.net>
Sun, 1 Feb 2009 19:29:29 +0000 (19:29 +0000)
committerandy wharmby <wharmby@php.net>
Sun, 1 Feb 2009 19:29:29 +0000 (19:29 +0000)
ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt b/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt
new file mode 100644 (file)
index 0000000..0597665
--- /dev/null
@@ -0,0 +1,24 @@
+--TEST--
+Test set_magic_quotes_runtime() function -  basic test 
+--INI-
+magic_quotes_runtime = 0
+--FILE--
+<?php
+/* Prototype: bool set_magic_quotes_runtime  ( int $new_setting  )
+ * Description: Sets the current active configuration setting of magic_quotes_runtime
+ *
+ * On PHP 6 this fucntion is no longer supported
+*/
+
+echo "Simple testcase for set_magic_quotes_runtime() function - basic test\n";
+
+echo "\n-- Set magic quotes runtime to 1:  --\n";
+var_dump(set_magic_quotes_runtime(1));
+
+?>
+--EXPECTF--
+Simple testcase for set_magic_quotes_runtime() function - basic test
+
+-- Set magic quotes runtime to 1:  --
+
+Fatal error: Call to undefined function set_magic_quotes_runtime() in %s on line %d
\ No newline at end of file