summaryrefslogtreecommitdiffstats
path: root/b2b0e5246650bc6b63e841614110e471a061d577.patch
diff options
context:
space:
mode:
Diffstat (limited to 'b2b0e5246650bc6b63e841614110e471a061d577.patch')
-rw-r--r--b2b0e5246650bc6b63e841614110e471a061d577.patch39
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"