]> granicus.if.org Git - php/commit
Fix #70277: new DateTimeZone($foo) is ignoring text after null byte
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 17 Aug 2015 13:58:37 +0000 (15:58 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 17 Aug 2015 13:58:37 +0000 (15:58 +0200)
commitbb057498f7457e8b2eba98332a3bad434de4cf12
tree494738e534b21f89a330b678b50c3a70d046a0e4
parentb010a9d84617930b5ae412c41e994ca00d489471
Fix #70277: new DateTimeZone($foo) is ignoring text after null byte

The DateTimeZone constructors are not binary safe. They're parsing the timezone
as string, but discard the length when calling timezone_initialize(). This
patch adds a tz_len parameter and a respective check to timezone_initialize().
ext/date/php_date.c
ext/date/tests/bug70277.phpt [new file with mode: 0644]