5d998b32c0
* change warnings from `%a` to `%s`. This way, we don't eroneously match more than one line for an error message * import all the 5.5 tests since it is now official I checked through all the tests that went from good to bad, and each one is correctly failing. Most of them are from us doing the extension calling-convention wrong. The only thing to review is the change to `tools/import_zend_test.py`
18 linhas
477 B
PHP
18 linhas
477 B
PHP
<?php
|
|
/* Prototype : DateTimeZone::__construct ( string $timezone )
|
|
* Description: Returns new DateTimeZone object
|
|
* Source code: ext/date/php_date.c
|
|
* Alias to functions:
|
|
*/
|
|
|
|
//Set the default time zone
|
|
date_default_timezone_set("Europe/London");
|
|
|
|
echo "*** Testing new DateTimeZone() : basic functionality ***\n";
|
|
|
|
var_dump( new DateTimeZone("GMT") );
|
|
var_dump( new DateTimeZone("Europe/London") );
|
|
var_dump( new DateTimeZone("America/Los_Angeles") );
|
|
|
|
?>
|
|
===DONE===
|