summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt24
1 files changed, 24 insertions, 0 deletions
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
index 0000000000..059766563d
--- /dev/null
+++ b/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt
@@ -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