diff options
| author | Felipe Pena <felipe@php.net> | 2011-03-23 01:22:18 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-03-23 01:22:18 +0000 |
| commit | 5b85234b378668d8ccb5101bde3c3a1a3ca9d238 (patch) | |
| tree | 21f9361aa48772c7c5b478895d6b20b2c6697026 /ext/date/php_date.c | |
| parent | 660aa6701d1b32e64e8b6c40603b18b92d4806c4 (diff) | |
| download | php-git-5b85234b378668d8ccb5101bde3c3a1a3ca9d238.tar.gz | |
- Fixed bug #54283 (new DatePeriod(NULL) causes crash)
Diffstat (limited to 'ext/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 31470a5eec..01e3c3318f 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3767,7 +3767,7 @@ PHP_METHOD(DatePeriod, __construct) dpobj = zend_object_store_get_object(getThis() TSRMLS_CC); dpobj->current = NULL; - if (isostr_len) { + if (isostr) { date_period_initialize(&(dpobj->start), &(dpobj->end), &(dpobj->interval), &recurrences, isostr, isostr_len TSRMLS_CC); if (dpobj->start == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "The ISO interval '%s' did not contain a start date.", isostr); |
