<div dir="ltr"><div>Package: php5-common</div><div>Version: 5.6.15+dfsg-1</div><div>Severity: normal</div><div><br></div><div>Dear Maintainer,</div><div><br></div><div>I have a script that loops through all of the DateTimeZone identifiers and creates a DateTimeZone instance of each one for use later in the script.</div><div><br></div><div>The Debian package returns an extra timezone identifier "leap-seconds.list" that causes a segfault when you try to instanciate the object.</div><div><br></div><div>Test script:</div><div><br></div><div>  <?php</div><div>  foreach (DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC) as $tz) {</div><div>      echo $tz . PHP_EOL;</div><div>      $dtz = new DateTimeZone($tz);</div><div>  }</div><div>  echo 'Success' . PHP_EOL;</div><div><br></div><div>Backtrace:</div><div><br></div><div>  (gdb) bt</div><div>  #0  __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116</div><div>  #1  0x000000000048cab6 in memcpy (__len=8148847036, __src=0x7ffff7ff002c, __dest=0x7ffe08580010) at /usr/include/x86_64-linux-gnu/bits/string3.h:51</div><div>  #2  read_transistions (tz=0x11c40f0, tzf=0x7fffffffa618) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:138</div><div>  #3  timelib_parse_tzfile (timezone=timezone@entry=0x11c40d0 "leap-seconds.list", tzdb=tzdb@entry=0x11bd600) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:885</div><div>  #4  0x00000000004677ab in php_date_parse_tzfile (formal_tzname=0x11c40d0 "leap-seconds.list", tzdb=0x11bd600) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:926</div><div>  #5  0x00000000004708bd in timelib_parse_zone (ptr=ptr@entry=0x7fffffffa728, dst=dst@entry=0x7fffffffa730, t=t@entry=0x7ffff7fc7858, tz_not_found=tz_not_found@entry=0x7fffffffa734, tzdb=<optimized out>, tz_wrapper=tz_wrapper@entry=0x467830 <php_date_parse_tzfile_wrapper>)</div><div>      at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_date.c:788</div><div>  #6  0x000000000046727a in timezone_initialize (tzobj=0x7ffff7fc7638, tz=0x7ffff7ec5079 "", tz_len=17) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3713</div><div>  #7  0x00000000004673aa in zim_DateTimeZone___construct (ht=1, return_value=<optimized out>, return_value_ptr=<optimized out>, this_ptr=0x7ffff7fc5900, return_value_used=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3758</div><div>  #8  0x00000000006daf2a in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:97</div><div>  #9  0x000000000079a657 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:560</div><div>  #10 0x0000000000729680 in execute_ex (execute_data=execute_data@entry=0x7ffff7f92190) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:363</div><div>  #11 0x00000000006dadd1 in dtrace_execute_ex (execute_data=0x7ffff7f92190) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:73</div><div>  #12 0x00000000006ed8e0 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend.c:1341</div><div>  #13 0x00000000006889c0 in php_execute_script (primary_file=primary_file@entry=0x7fffffffce40) at /tmp/buildd/php5-5.6.15+dfsg/main/main.c:2597</div><div>  #14 0x000000000079c5a1 in do_cli (argc=2, argv=0xeb0e70) at /tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:994</div><div>  #15 0x000000000046237e in main (argc=2, argv=0xeb0e70) at /tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:1378</div><div><br></div><div><br></div><div>-- Package-specific info:</div><div>==== Additional PHP 5 information ====</div><div><br></div><div>++++ PHP 5 SAPI (php5query -S): ++++</div><div>cli</div><div>fpm</div><div><br></div><div>++++ PHP 5 Extensions (php5query -M -v): ++++</div><div>opcache (Enabled for cli by local administrator)</div><div>opcache (Enabled for fpm by local administrator)</div><div>mysql (Enabled for cli by maintainer script)</div><div>mysql (Enabled for fpm by maintainer script)</div><div>xmlrpc (Enabled for cli by maintainer script)</div><div>xmlrpc (Enabled for fpm by maintainer script)</div><div>mysqli (Enabled for cli by maintainer script)</div><div>mysqli (Enabled for fpm by maintainer script)</div><div>xsl (Enabled for cli by maintainer script)</div><div>xsl (Enabled for fpm by maintainer script)</div><div>json (Enabled for cli by maintainer script)</div><div>json (Enabled for fpm by maintainer script)</div><div>mysqlnd (Enabled for cli by maintainer script)</div><div>mysqlnd (Enabled for fpm by maintainer script)</div><div>No module matches xdebug</div><div>No module matches xdebug</div><div>pdo_mysql (Enabled for cli by maintainer script)</div><div>pdo_mysql (Enabled for fpm by maintainer script)</div><div>memcached (Enabled for cli by local administrator)</div><div>memcached (Enabled for fpm by local administrator)</div><div>curl (Enabled for cli by maintainer script)</div><div>curl (Enabled for fpm by maintainer script)</div><div>readline (Enabled for cli by maintainer script)</div><div>readline (Enabled for fpm by maintainer script)</div><div>pdo (Enabled for cli by maintainer script)</div><div>pdo (Enabled for fpm by maintainer script)</div><div><br></div><div>++++ Configuration files: ++++</div><div>**** /etc/php5/mods-available/pdo.ini ****</div><div>extension=pdo.so</div><div><br></div><div>**** /etc/php5/mods-available/opcache.ini ****</div><div>zend_extension=opcache.so</div><div><br></div><div><br></div><div>-- System Information:</div><div>Debian Release: stretch/sid</div><div>  APT prefers unstable</div><div>  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')</div><div>Architecture: amd64 (x86_64)</div><div>Foreign Architectures: i386</div><div><br></div><div>Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores)</div><div>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)</div><div>Shell: /bin/sh linked to /bin/dash</div><div>Init: systemd (via /run/systemd/system)</div><div><br></div><div>Versions of packages php5 depends on:</div><div>ii  php5-common  5.6.15+dfsg-1</div><div>ii  php5-fpm     5.6.15+dfsg-1</div><div><br></div><div>php5 recommends no packages.</div><div><br></div><div>php5 suggests no packages.</div><div><br></div><div>Versions of packages php5-common depends on:</div><div>ii  libc6   2.19-22</div><div>ii  lsof    4.89+dfsg-0.1</div><div>ii  psmisc  22.21-2.1</div><div>ii  sed     4.2.2-6.1</div><div>ii  ucf     3.0030</div><div><br></div><div>Versions of packages php5-common suggests:</div><div>pn  php5-user-cache  <none></div><div><br></div><div>-- no debconf information</div></div>