com php-src: Fixed bug #70619 (DateTimeImmutable segfault): NEWS ext/date/php_date.c
| From: | Xinchen Hui | Date: | Fri, 02 Oct 2015 14:19:21 +0000 |
| Subject: | com php-src: Fixed bug #70619 (DateTimeImmutable segfault): NEWS ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89264@lists.php.net to get a copy of this message | ||
Commit: c98ea8465bd7a686cd7ee23c403b2f9dab6e3449
Author: Xinchen Hui <laruence@gmail.com> Fri, 2 Oct 2015 07:19:21 -0700
Parents: 0fd71d1184727ac31c1ab06bef140650a06e35b3
Branches: PHP-5.6 PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c98ea8465bd7a686cd7ee23c403b2f9dab6e3449
Log:
Fixed bug #70619 (DateTimeImmutable segfault)
Bugs:
https://bugs.php.net/70619
Changed paths:
M NEWS
M ext/date/php_date.c
Diff:
diff --git a/NEWS b/NEWS
index 6b95607..5d5ff9d 100644
--- 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)
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 4eca65b..aca2267 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -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;
}