diff options
author | Remi Collet <remi@remirepo.net> | 2019-06-13 10:21:44 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-06-13 10:21:44 +0200 |
commit | a817c65b50619aedd807dce0b2c76db33ac4dc86 (patch) | |
tree | 4b82cc7799f9e655a7658a9e56c05c1a715b4635 /b2b0e5246650bc6b63e841614110e471a061d577.patch | |
parent | 7daf162f796d01059e03141c6dc0344d5c652de4 (diff) |
add 3 upstream patches
Diffstat (limited to 'b2b0e5246650bc6b63e841614110e471a061d577.patch')
-rw-r--r-- | b2b0e5246650bc6b63e841614110e471a061d577.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/b2b0e5246650bc6b63e841614110e471a061d577.patch b/b2b0e5246650bc6b63e841614110e471a061d577.patch new file mode 100644 index 0000000..2ab8bcd --- /dev/null +++ b/b2b0e5246650bc6b63e841614110e471a061d577.patch @@ -0,0 +1,39 @@ +From b2b0e5246650bc6b63e841614110e471a061d577 Mon Sep 17 00:00:00 2001 +From: Joe Watkins <krakjoe@php.net> +Date: Wed, 12 Jun 2019 22:39:00 +0200 +Subject: [PATCH] test for bug #78151 + +--- + Zend/tests/bug78151.phpt | 23 +++++++++++++++++++++++ + 1 file changed, 23 insertions(+) + create mode 100644 Zend/tests/bug78151.phpt + +diff --git a/Zend/tests/bug78151.phpt b/Zend/tests/bug78151.phpt +new file mode 100644 +index 000000000000..87b98a4e44aa +--- /dev/null ++++ b/Zend/tests/bug78151.phpt +@@ -0,0 +1,23 @@ ++--TEST-- ++Bug #78151 Segfault caused by indirect expressions in PHP 7.4a1 ++--FILE-- ++<?php ++ ++class Arr ++{ ++ private $foo = ''; ++ ++ public function __construct(array $array = []) ++ { ++ $property = 'foo'; ++ ++ $this->{$property} = &$array[$property]; ++ ++ \var_dump($this->foo); ++ } ++} ++ ++$arr = new Arr(['foo' => 'bar']); ++?> ++--EXPECT-- ++string(3) "bar" |