summaryrefslogtreecommitdiffstats
path: root/0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-29 12:11:33 +0200
committerRemi Collet <fedora@famillecollet.com>2017-03-29 12:11:33 +0200
commitcfc4a9c05ac8a53ecbe9f7b0bc79db15a3b796a7 (patch)
tree2a3f2b08d59ccba06aa690e9d728909bd82ad998 /0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch
parentfd30a403755e1b88507e283376437b9d3c481d26 (diff)
add upstream patch for PHP 7.1.4RC1, fix FTBFS detected by Koschei
Diffstat (limited to '0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch')
-rw-r--r--0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch b/0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch
new file mode 100644
index 0000000..062543e
--- /dev/null
+++ b/0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d.patch
@@ -0,0 +1,44 @@
+From 0aa5b47574a6c4e6a034bfdb41a91f4a0699fb9d Mon Sep 17 00:00:00 2001
+From: Nikita Popov <nikita.ppv@gmail.com>
+Date: Fri, 17 Mar 2017 18:20:25 +0100
+Subject: [PATCH] Fix ast_dump_with_linenos.phpt test
+
+---
+ tests/ast_dump_with_linenos.phpt | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/tests/ast_dump_with_linenos.phpt b/tests/ast_dump_with_linenos.phpt
+index 2b7c67a..abba57a 100644
+--- a/tests/ast_dump_with_linenos.phpt
++++ b/tests/ast_dump_with_linenos.phpt
+@@ -1,7 +1,11 @@
+ --TEST--
+ ast_dump() with AST_DUMP_LINENOS
+ --SKIPIF--
+-<?php if (!extension_loaded("ast")) print "skip"; ?>
++<?php
++if (!extension_loaded("ast")) print "skip";
++if (PHP_VERSION_ID >= 70000 && PHP_VERSION_ID < 70018) print "skip buggy PHP version";
++if (PHP_VERSION_ID >= 70100 && PHP_VERSION_ID < 70104) print "skip buggy PHP version";
++?>
+ --FILE--
+ <?php
+
+@@ -22,8 +26,6 @@ PHP;
+ $ast = ast\parse_code($code, $version=30);
+ echo ast_dump($ast, AST_DUMP_LINENOS);
+
+-// The lineno for AST_ARG_LIST is wrong...
+-
+ ?>
+ --EXPECT--
+ AST_STMT_LIST @ 1
+@@ -37,7 +39,7 @@ AST_STMT_LIST @ 1
+ expr: AST_NAME @ 6
+ flags: NAME_NOT_FQ (1)
+ name: "var_dump"
+- args: AST_ARG_LIST @ 8
++ args: AST_ARG_LIST @ 7
+ 0: AST_VAR @ 7
+ name: "foo"
+ returnType: null