]> granicus.if.org Git - php/commitdiff
Fixed bug #70619 (DateTimeImmutable segfault)
authorXinchen Hui <laruence@gmail.com>
Fri, 2 Oct 2015 14:19:21 +0000 (07:19 -0700)
committerXinchen Hui <laruence@gmail.com>
Fri, 2 Oct 2015 14:19:21 +0000 (07:19 -0700)
NEWS
ext/date/php_date.c

diff --git a/NEWS b/NEWS
index 6b95607aef2aa0aa1ea9584ec731ba20f93eb234..5d5ff9d11cdfabb5aa8b1463153501ad17cf882c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2015, PHP 5.6.15
 
+- Date:
+  . Fixed bug #70619 (DateTimeImmutable segfault). (Laruence)
+
 - Mysqlnd:
   . Fixed bug #70384 (mysqli_real_query():Unknown type 245 sent by the server).
    (Andrey)
index 4eca65bb11d89bd6810e5a5e9ea10f1e0b98d814..aca226768e16d680d6734fe581c5b6e3c59f63ed 100644 (file)
@@ -2785,7 +2785,7 @@ PHP_METHOD(DateTimeImmutable, createFromMutable)
        php_date_obj *new_obj = NULL;
        php_date_obj *old_obj = NULL;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O!", &datetime_object, date_ce_date) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &datetime_object, date_ce_date) == FAILURE) {
                return;
        }