Bug #75786 [NEW]: PHP 7.1.12-1 (Debian does not yet have 7.1.13 or 7.2.1)

From: Date: Tue, 09 Jan 2018 15:49:15 +0000
Subject: Bug #75786 [NEW]: PHP 7.1.12-1 (Debian does not yet have 7.1.13 or 7.2.1)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213443@lists.php.net to get a copy of this message
From: chris at kruining dot eu Operating system: Debian - buster PHP version: 7.1.13 Package: *General Issues Bug Type: Bug Bug description:PHP 7.1.12-1 (Debian does not yet have 7.1.13 or 7.2.1) Description: ------------ I've encountered this weird segfault it seems to be a combination of 'newer' techniques that goes wrong somewhere - iteration by reference :: demonstrated in the Foo class - array destruction :: at the end of the example - output :: all the var_dump's (both the locations and amount of var_dumps's seems to matter) I have no clue why this goes wrong, neither does the error log provide useful information(at least for me) php error log :: [Tue Jan 09 16:46:08.907851 2018] [proxy_fcgi:error] [pid 53058:tid 140258613700352] [client 192.168.198.88:55790] AH01067: Failed to read FastCGI header [Tue Jan 09 16:46:08.907896 2018] [proxy_fcgi:error] [pid 53058:tid 140258613700352] (104)Connection reset by peer: [client 192.168.198.88:55790] AH01075: Error dispatching request to : sys log :: Alert from syslog-ng Jan 9 16:46:08 remote kernel: [926537.733411] traps: php-fpm7.1[59524] general protection ip:55a832274080 sp:7ffca575e3d0 error:0 in php-fpm7.1[55a832036000+3d0000] I hope that I have provided enough information to be helpful :D Test script: --------------- <?php class Foo implements IteratorAggregate { protected $items = [ 'this', 'is', 'a', 'item', ]; public function &getIterator(): Generator { foreach($this->items as $key => &$value) { yield $key => $value; } unset($value); } } class Bar { public function doSomething(string $these, string $are, string $some, string $parameters): string { var_dump($these, $are, $some, $parameters); return 'success'; } } $data = [ new Bar, 'doSomething', new Foo, ]; foreach($data[2] as $key => &$value) { $value .= ' foo'; var_dump($value); } unset($value); // Some other code... [ $obj, $method, $arguments, ] = $data; var_dump($arguments, $obj->$method(...$arguments)); ?> -- Edit bug report at https://bugs.php.net/bug.php?id=75786&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75786&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75786&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75786&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75786&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75786&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75786&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75786&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75786&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75786&r=support Expected behavior: https://bugs.php.net/fix.php?id=75786&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75786&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75786&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75786&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75786&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75786&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75786&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75786&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75786&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75786&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75786&r=mysqlcfg

« previous php.bugs (#213443) next »