1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Add test ini_set with invalid time zone

Wasn't covered before according to gcov.php.net.
This commit is contained in:
Niklas Keller
2017-01-15 23:06:08 +01:00
committed by Joe Watkins
parent 2c7909697a
commit cc9893eb44

View File

@@ -0,0 +1,10 @@
--TEST--
Test invalid time zone passed to ini_set
--FILE--
<?php
ini_set("date.timezone", "Incorrect/Zone");
?>
--EXPECTF--
Warning: ini_set(): Invalid date.timezone value 'Incorrect/Zone', we selected the timezone 'UTC' for now. in %sini_set_incorrect.php on line %d