wharmby Sun Feb 1 19:29:34 2009 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/standard/tests/general_functions
set_magic_quotes_runtime_basic.phpt
set_magic_quotes_runtime_variation1.phpt
set_magic_quotes_runtime_error.phpt
Log:
New set_magic_quotes() tests. Tested on Windows, Linux and linux 64
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt?view=markup&rev=1.1
Index:
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt
+++
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_basic.phpt
--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
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_variation1.phpt?view=markup&rev=1.1
Index:
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_variation1.phpt
+++
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_variation1.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_error.phpt?view=markup&rev=1.1
Index:
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_error.phpt
+++
php-src/ext/standard/tests/general_functions/set_magic_quotes_runtime_error.phpt
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php