php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78774 ReflectionNamedType on Typed Properties Crash
Submitted: 2019-11-03 19:05 UTC Modified: -
From: beberlei@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.4.0RC5 OS: Linux
Private report: No CVE-ID: None
 [2019-11-03 19:05 UTC] beberlei@php.net
Description:
------------
Working with reflection, ReflectionProperty::setValue, ReflectionNamedType I get a segfault when setting a property.

Test script:
---------------
<?php
class DateThing
{
    public int $id;
    public DateTime $created;
}
$rows = [
    ['id' => 1, 'created' => '2019-09-01 10:00:00'],
    ['id' => 2, 'created' => '2019-11-01 10:00:00'],
];
$properties = [];
$reflClass = new  \ReflectionClass(DateThing::class);
foreach ($rows as $row) {
    $object = $reflClass->newInstanceWithoutConstructor();
    foreach ($row as $column => $value) {
        if (!isset($properties[$column])) {
            $properties[$column] = $reflClass->getProperty($column);
        }
        $type = $properties[$column]->getType()->getName();
        var_dump($type);
        if ($type === "DateTime") {
            $value = new \DateTime($value);
        } else if ($type === "int") {
            $value = (int) $value;
        }
        $properties[$column]->setValue($object, $value);
    }
    var_dump($object);
}

Expected result:
----------------
string(3) "int"
string(8) "DateTime"
object(DateThing)#2 (2) {
  ["id"]=>
  int(1)
  ["created"]=>
  object(DateTime)#5 (3) {
    ["date"]=>
    string(26) "2019-09-01 10:00:00.000000"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(3) "UTC"
  }
}
string(3) "int"
string(8) "DateTime"
object(DateThing)#6 (2) {
  ["id"]=>
  int(2)
  ["created"]=>
  object(DateTime)#5 (3) {
    ["date"]=>
    string(26) "2019-11-01 10:00:00.000000"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(3) "UTC"
  }
}

Actual result:
--------------
Segfault rendering the "created" property of the second object. Not always though. Valgrind log:

==6548== Memcheck, a memory error detector
==6548== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==6548== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==6548== Command: /opt/php/php-7.4/bin/php /tmp/foo.php
==6548== 
string(3) "int"
string(8) "DateTime"
object(DateThing)#2 (2) {
  ["id"]=>
  int(1)
  ["created"]=>
  object(DateTime)#5 (3) {
    ["date"]=>
    string(26) "2019-09-01 10:00:00.000000"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(3) "UTC"
  }
}
string(3) "int"
==6548== Invalid read of size 4
==6548==    at 0x54F042: zend_string_copy (zend_string.h:164)
==6548==    by 0x559694: reflection_type_name (php_reflection.c:2841)
==6548==    by 0x5598CD: zim_reflection_named_type_getName (php_reflection.c:2879)
==6548==    by 0x850C6F: ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1729)
==6548==    by 0x8B4517: execute_ex (zend_vm_execute.h:53575)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f4 is 4 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x54EDEE: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x54F05E: zend_string_copy (zend_string.h:165)
==6548==    by 0x559694: reflection_type_name (php_reflection.c:2841)
==6548==    by 0x5598CD: zim_reflection_named_type_getName (php_reflection.c:2879)
==6548==    by 0x850C6F: ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1729)
==6548==    by 0x8B4517: execute_ex (zend_vm_execute.h:53575)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid write of size 4
==6548==    at 0x54EDF7: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x54F05E: zend_string_copy (zend_string.h:165)
==6548==    by 0x559694: reflection_type_name (php_reflection.c:2841)
==6548==    by 0x5598CD: zim_reflection_named_type_getName (php_reflection.c:2879)
==6548==    by 0x850C6F: ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1729)
==6548==    by 0x8B4517: execute_ex (zend_vm_execute.h:53575)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x54EDFD: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x54F05E: zend_string_copy (zend_string.h:165)
==6548==    by 0x559694: reflection_type_name (php_reflection.c:2841)
==6548==    by 0x5598CD: zim_reflection_named_type_getName (php_reflection.c:2879)
==6548==    by 0x850C6F: ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1729)
==6548==    by 0x8B4517: execute_ex (zend_vm_execute.h:53575)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x5598E1: zim_reflection_named_type_getName (php_reflection.c:2879)
==6548==    by 0x850C6F: ZEND_DO_FCALL_SPEC_RETVAL_USED_HANDLER (zend_vm_execute.h:1729)
==6548==    by 0x8B4517: execute_ex (zend_vm_execute.h:53575)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f4 is 4 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x83EFA2: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x83F0F1: zval_addref_p (zend_types.h:1066)
==6548==    by 0x898AA5: ZEND_SEND_VAR_SPEC_CV_INLINE_HANDLER (zend_vm_execute.h:37189)
==6548==    by 0x8B7608: execute_ex (zend_vm_execute.h:56667)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid write of size 4
==6548==    at 0x83EFAB: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x83F0F1: zval_addref_p (zend_types.h:1066)
==6548==    by 0x898AA5: ZEND_SEND_VAR_SPEC_CV_INLINE_HANDLER (zend_vm_execute.h:37189)
==6548==    by 0x8B7608: execute_ex (zend_vm_execute.h:56667)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x83EFB1: zend_gc_addref (zend_types.h:1031)
==6548==    by 0x83F0F1: zval_addref_p (zend_types.h:1066)
==6548==    by 0x898AA5: ZEND_SEND_VAR_SPEC_CV_INLINE_HANDLER (zend_vm_execute.h:37189)
==6548==    by 0x8B7608: execute_ex (zend_vm_execute.h:56667)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 8
==6548==    at 0x67E7F5: php_var_dump (var.c:124)
==6548==    by 0x67F0FC: zif_var_dump (var.c:223)
==6548==    by 0x84F96C: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1268)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7900 is 16 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
string(8) "==6548== Invalid read of size 8
==6548==    at 0x67E830: php_var_dump (var.c:125)
==6548==    by 0x67F0FC: zif_var_dump (var.c:223)
==6548==    by 0x84F96C: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1268)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7900 is 16 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Syscall param write(buf) points to unaddressable byte(s)
==6548==    at 0x51A2024: write (write.c:26)
==6548==    by 0x8B9CB9: sapi_cli_single_write (php_cli.c:265)
==6548==    by 0x8B9D5C: sapi_cli_ub_write (php_cli.c:294)
==6548==    by 0x7582C9: php_output_op (output.c:1075)
==6548==    by 0x7564F2: php_output_write (output.c:254)
==6548==    by 0x67E84C: php_var_dump (var.c:125)
==6548==    by 0x67F0FC: zif_var_dump (var.c:223)
==6548==    by 0x84F96C: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1268)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==  Address 0x83c7908 is 24 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
DateTime"
==6548== Invalid read of size 4
==6548==    at 0x83EFC5: zend_gc_delref (zend_types.h:1035)
==6548==    by 0x840C65: zend_vm_stack_free_args (zend_execute.h:262)
==6548==    by 0x84FA5A: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1280)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x83EFEE: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x840C65: zend_vm_stack_free_args (zend_execute.h:262)
==6548==    by 0x84FA5A: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1280)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid write of size 4
==6548==    at 0x83EFF7: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x840C65: zend_vm_stack_free_args (zend_execute.h:262)
==6548==    by 0x84FA5A: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1280)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x83EFFD: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x840C65: zend_vm_stack_free_args (zend_execute.h:262)
==6548==    by 0x84FA5A: ZEND_DO_ICALL_SPEC_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:1280)
==6548==    by 0x8B44A7: execute_ex (zend_vm_execute.h:53547)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 8
==6548==    at 0x7CADCE: zend_string_equal_content (zend_string.h:310)
==6548==    by 0x7CAE30: zend_string_equals (zend_string.h:315)
==6548==    by 0x7D538D: zend_is_identical (zend_operators.c:2246)
==6548==    by 0x840118: fast_is_identical_function (zend_operators.h:888)
==6548==    by 0x89BB07: ZEND_IS_IDENTICAL_SPEC_CV_CONST_HANDLER (zend_vm_execute.h:38377)
==6548==    by 0x8B7828: execute_ex (zend_vm_execute.h:56803)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7900 is 16 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 8
==6548==    at 0x81BDF1: zend_string_equal_val (zend_string.c:436)
==6548==    by 0x7CADF1: zend_string_equal_content (zend_string.h:310)
==6548==    by 0x7CAE30: zend_string_equals (zend_string.h:315)
==6548==    by 0x7D538D: zend_is_identical (zend_operators.c:2246)
==6548==    by 0x840118: fast_is_identical_function (zend_operators.h:888)
==6548==    by 0x89BB07: ZEND_IS_IDENTICAL_SPEC_CV_CONST_HANDLER (zend_vm_execute.h:38377)
==6548==    by 0x8B7828: execute_ex (zend_vm_execute.h:56803)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7900 is 16 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 1
==6548==    at 0x81BE35: zend_string_equal_val (zend_string.c:441)
==6548==    by 0x7CADF1: zend_string_equal_content (zend_string.h:310)
==6548==    by 0x7CAE30: zend_string_equals (zend_string.h:315)
==6548==    by 0x7D538D: zend_is_identical (zend_operators.c:2246)
==6548==    by 0x840118: fast_is_identical_function (zend_operators.h:888)
==6548==    by 0x89BB07: ZEND_IS_IDENTICAL_SPEC_CV_CONST_HANDLER (zend_vm_execute.h:38377)
==6548==    by 0x8B7828: execute_ex (zend_vm_execute.h:56803)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7908 is 24 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
object(DateThing)#6 (2) {
  ["id"]=>
  int(2)
  ["created"]=>
  object(DateTime)#5 (3) {
    ["date"]=>
    string(26) "2019-11-01 10:00:00.000000"
    ["timezone_type"]=>
    int(3)
    ["timezone"]=>
    string(3) "UTC"
  }
}
==6548== Invalid read of size 4
==6548==    at 0x7D842F: zend_gc_delref (zend_types.h:1035)
==6548==    by 0x7D86F5: i_zval_ptr_dtor (zend_variables.h:43)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x7D8458: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x7D86F5: i_zval_ptr_dtor (zend_variables.h:43)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid write of size 4
==6548==    at 0x7D8461: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x7D86F5: i_zval_ptr_dtor (zend_variables.h:43)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x7D8467: zend_gc_delref (zend_types.h:1037)
==6548==    by 0x7D86F5: i_zval_ptr_dtor (zend_variables.h:43)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f0 is 0 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x7D8727: rc_dtor_func (zend_variables.c:56)
==6548==    by 0x7D8705: i_zval_ptr_dtor (zend_variables.h:44)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f4 is 4 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x7D8758: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x7D8705: i_zval_ptr_dtor (zend_variables.h:44)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c78f4 is 4 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 8
==6548==    at 0x7D8796: zend_string_destroy (zend_variables.c:63)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x7D8705: i_zval_ptr_dtor (zend_variables.h:44)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7900 is 16 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 1
==6548==    at 0x7D879E: zend_string_destroy (zend_variables.c:63)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x7D8705: i_zval_ptr_dtor (zend_variables.h:44)
==6548==    by 0x7D8917: zval_ptr_dtor (zend_variables.c:84)
==6548==    by 0x7F3C8A: _zend_hash_del_el_ex (zend_hash.c:1305)
==6548==    by 0x7F3D6A: _zend_hash_del_el (zend_hash.c:1328)
==6548==    by 0x7F5666: zend_hash_graceful_reverse_destroy (zend_hash.c:1782)
==6548==    by 0x7C18BF: shutdown_executor (zend_execute_API.c:277)
==6548==    by 0x7DB4BC: zend_deactivate (zend.c:1184)
==6548==    by 0x73B85C: php_request_shutdown (main.c:1925)
==6548==    by 0x8BBA78: do_cli (php_cli.c:1129)
==6548==    by 0x8BC2F2: main (php_cli.c:1352)
==6548==  Address 0x83c7910 is 32 bytes inside a block of size 40 free'd
==6548==    at 0x483997B: free (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A1B5A: _efree_custom (zend_alloc.c:2425)
==6548==    by 0x7A1C9B: _efree (zend_alloc.c:2545)
==6548==    by 0x7D8883: zend_string_destroy (zend_variables.c:67)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x840841: zend_assign_to_variable (zend_execute.h:131)
==6548==    by 0x8A9FED: ZEND_ASSIGN_SPEC_CV_VAR_RETVAL_UNUSED_HANDLER (zend_vm_execute.h:45080)
==6548==    by 0x8B7EE8: execute_ex (zend_vm_execute.h:57235)
==6548==    by 0x8B85AF: zend_execute (zend_vm_execute.h:57651)
==6548==    by 0x7DCE20: zend_execute_scripts (zend.c:1663)
==6548==    by 0x73CD51: php_execute_script (main.c:2619)
==6548==    by 0x8BB188: do_cli (php_cli.c:961)
==6548==  Block was alloc'd at
==6548==    at 0x483874F: malloc (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
==6548==    by 0x7A2B9B: __zend_malloc (zend_alloc.c:2975)
==6548==    by 0x7A1AF3: _malloc_custom (zend_alloc.c:2416)
==6548==    by 0x7A1C21: _emalloc (zend_alloc.c:2535)
==6548==    by 0x777977: zend_string_alloc (zend_string.h:133)
==6548==    by 0x7779E7: zend_string_init (zend_string.h:155)
==6548==    by 0x78F667: lex_scan (zend_language_scanner.l:2875)
==6548==    by 0x7A8454: zendlex (zend_compile.c:1613)
==6548==    by 0x772792: zendparse (zend_language_parser.c:4055)
==6548==    by 0x7796D1: zend_compile (zend_language_scanner.l:595)
==6548==    by 0x779958: compile_file (zend_language_scanner.l:648)
==6548==    by 0x53499B: phar_compile_file (phar.c:3299)
==6548== 
==6548== Invalid read of size 4
==6548==    at 0x7D87CC: zend_string_destroy (zend_variables.c:64)
==6548==    by 0x7D8782: rc_dtor_func (zend_variables.c:57)
==6548==    by 0x7D8705: i_zval_ptr_dtor (zend_variables.h:44)
==6548==    by 0x7D8917: zva

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-11-04 10:04 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c9abfaec6bf61bcef6d9651827b49cc7789018fd
Log: Fixed bug #78774
 [2019-11-04 10:04 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC