]> granicus.if.org Git - php/commitdiff
- Return timezone's names as Unicode strings.
authorDerick Rethans <derick@php.net>
Wed, 27 Sep 2006 18:32:24 +0000 (18:32 +0000)
committerDerick Rethans <derick@php.net>
Wed, 27 Sep 2006 18:32:24 +0000 (18:32 +0000)
ext/date/php_date.c
ext/date/tests/oo_001.phpt
ext/date/tests/oo_002.phpt

index 62f4b19bca0a6e166fc8b3805233aa5f6bbd04fb..55e5845c427dd93b88c8b0fb2f7ea3d1235f0c4a 100644 (file)
@@ -2190,7 +2190,7 @@ PHP_FUNCTION(timezone_name_get)
        tzobj = (php_timezone_obj *) zend_object_store_get_object(object TSRMLS_CC);
        DATE_CHECK_INITIALIZED(tzobj->tz, DateTimeZone);
 
-       RETURN_STRING(tzobj->tz->name, 1);
+       RETURN_ASCII_STRING(tzobj->tz->name, 1);
 }
 /* }}} */
 
index c16f0b08699f0b28c6d8ab446ce950aa7cf65bb9..9cb366315b08439037b285ea9f8230a700347781 100644 (file)
@@ -57,7 +57,7 @@ unicode(19) "%d-%d-%d %d:%d:%d"
 Warning: DateTime::format(): The DateTime object has not been correctly initialized by its constructor in %soo_001.php on line %d
 bool(false)
 DateTime::__construct(): Failed to parse time string (1am todax) at position 4 (t): The timezone could not be found in the database
-string(3) "UTC"
+unicode(3) "UTC"
 
 Warning: DateTimeZone::getName(): The DateTimeZone object has not been correctly initialized by its constructor in %soo_001.php on line %d
 bool(false)
index 91e9076aebf96b6131da071cbb451b662cd6ff32..2a1f5345c45d86461428bc15e4acfaae29abf3a0 100644 (file)
@@ -31,5 +31,5 @@ unicode(29) "Tue, 01 Aug 06 13:00:00 +0000"
 unicode(29) "Tue, 01 Aug 06 13:00:00 +0000"
 unicode(29) "Tue, 01 Aug 06 14:00:00 +0000"
 unicode(29) "Tue, 01 Aug 06 12:59:59 +0000"
-string(10) "Asia/Tokyo"
-string(10) "Asia/Tokyo"
+unicode(10) "Asia/Tokyo"
+unicode(10) "Asia/Tokyo"