Annotation of embedaddon/php/ext/date/tests/bug67118.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #67118 php-cgi crashes regularly on IIS 7
3: --INI--
4: date.timezone=Europe/Berlin
5: --FILE--
6: <?php
7: class mydt extends datetime
8: {
9: public function __construct($time = 'now', $tz = NULL, $format = NULL)
10: {
11: if (!empty($tz) && !is_object($tz)) {
12: $tz = new DateTimeZone($tz);
13: }
14:
15: @parent::__construct($time, $tz);
16: }
17:
18: };
19:
20: new mydt("Funktionsansvarig rÄdgivning och juridik", "UTC");
21: --EXPECTF--
22: Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (Funktionsansvarig rÄdgivning och juridik) at position 0 (F): The timezone could not be found in the database' in %sbug67118.php:%d
23: Stack trace:
24: #0 %sbug67118.php(%d): DateTime->__construct('Funktionsansvar...', Object(DateTimeZone))
25: #1 %sbug67118.php(%d): mydt->__construct('Funktionsansvar...', 'UTC')
26: #2 {main}
27: thrown in %sbug67118.php on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>