com php-src: Fixed crash bug when the non-OO interface was used.: ext/date/php_date.c
| From: | Derick Rethans | Date: | Sat, 12 Jan 2013 15:16:25 +0000 |
| Subject: | com php-src: Fixed crash bug when the non-OO interface was used.: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70922@lists.php.net to get a copy of this message | ||
Commit: 793b52b576e7af8823ae24622c6a331fd473e149
Author: Derick Rethans <github@derickrethans.nl> Wed, 19 Dec 2012 17:40:14 +0000
Parents: 8b9d23c0cfcdfaa39f0a7d097cc471143cd4f4d2
Branches: immutable-date
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=793b52b576e7af8823ae24622c6a331fd473e149
Log:
Fixed crash bug when the non-OO interface was used.
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 596a7a9..fc281ce 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -2954,7 +2954,7 @@ PHP_FUNCTION(date_modify)
php_date_modify(object, modify, modify_len, return_value TSRMLS_CC);
- RETURN_ZVAL(getThis(), 1, 0);
+ RETURN_ZVAL(object, 1, 0);
}
/* }}} */