]> granicus.if.org Git - php/commitdiff
Missed a merge
authorRasmus Lerdorf <rasmus@php.net>
Sun, 2 Aug 2009 23:12:04 +0000 (23:12 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sun, 2 Aug 2009 23:12:04 +0000 (23:12 +0000)
ext/date/tests/bug48058.phpt
ext/iconv/tests/ob_iconv_handler-charset-length-cve-2007-4840.phpt

index 27a3e90a622685fcc046e32243dfd096adfa5873..5009c9f24551d41ef81a28388647b9bd87261dce 100644 (file)
@@ -13,12 +13,12 @@ $base_time = '28 Feb 2008 12:00:00';
 $dt = date_create( "$base_time +10000000000 years" );
 echo date_format( $dt, DATE_ISO8601 );
 ?>
---EXPECT--
+--EXPECTF--
 array(5) {
   [u"ts"]=>
-  int(-9223372036854775808)
+  int(-%d)
   [u"time"]=>
-  unicode(33) "-292277022657-01-27T08:29:52+0000"
+  unicode(%d) "%s"
   [u"offset"]=>
   int(3600)
   [u"isdst"]=>
index 8cf54b732a47a40dfa45212636cc7a07d971f63b..fd01d83ca1e4cbdaa6cd9554ba4f42652071c303 100755 (executable)
@@ -2,6 +2,8 @@
 ob_iconv_handler() charset parameter length checks (CVE-2007-4840)
 --SKIPIF--
 <?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
+--INI--
+memory_limit=256M
 --FILE--
 <?php
 ini_set("iconv.output_encoding", str_repeat("a", 9000000));