cvs: php-src /tests/func ini_alter.phpt
| From: | Sebastian Schürmann | Date: | Sat, 25 Apr 2009 18:50:52 +0000 |
| Subject: | cvs: php-src /tests/func ini_alter.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57246@lists.php.net to get a copy of this message | ||
sebs Sat Apr 25 18:50:52 2009 UTC
Modified files:
/php-src/tests/func ini_alter.phpt
Log:
Initial commit
http://cvs.php.net/viewvc.cgi/php-src/tests/func/ini_alter.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/tests/func/ini_alter.phpt
diff -u /dev/null php-src/tests/func/ini_alter.phpt:1.2
--- /dev/null Sat Apr 25 18:50:52 2009
+++ php-src/tests/func/ini_alter.phpt Sat Apr 25 18:50:52 2009
@@ -0,0 +1,19 @@
+--TEST--
+ini_alter() check
+--CREDITS--
+Sebastian Schürmann
+sebs@php.net
+Testfest 2009 Munich
+--FILE--
+<?php
+ini_alter('error_reporting', 1);
+$var = ini_get('error_reporting');
+var_dump($var);
+ini_alter('error_reporting', 0);
+$var = ini_get('error_reporting');
+var_dump($var);
+?>
+--EXPECT--
+string(1) "1"
+string(1) "0"
+