com php-src: ensure pcre.jit=1 for these tests: ext/pcre/tests/preg_match_error3.phpt ext/standard /tests/general_functions/ini_get_all.phpt

From: Date: Fri, 22 Mar 2019 14:00:31 +0000
Subject: com php-src: ensure pcre.jit=1 for these tests: ext/pcre/tests/preg_match_error3.phpt ext/standard /tests/general_functions/ini_get_all.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105307@lists.php.net to get a copy of this message
Commit: 2e9dccef78d169be9a4a37c813e0b5d624bd5ac7 Author: Remi Collet <remi@php.net> Fri, 22 Mar 2019 15:00:31 +0100 Parents: da35fa2cb8d454c8e797067e28e647030a5fe5df Branches: PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2e9dccef78d169be9a4a37c813e0b5d624bd5ac7 Log: ensure pcre.jit=1 for these tests Changed paths: M ext/pcre/tests/preg_match_error3.phpt M ext/standard/tests/general_functions/ini_get_all.phpt Diff: diff --git a/ext/pcre/tests/preg_match_error3.phpt b/ext/pcre/tests/preg_match_error3.phpt index 2e91e24..8b9d59f 100644 --- a/ext/pcre/tests/preg_match_error3.phpt +++ b/ext/pcre/tests/preg_match_error3.phpt @@ -5,6 +5,9 @@ Test preg_match() function : error conditions - jit stacklimit exhausted if (ini_get("pcre.jit") === FALSE) { die("skip no jit built"); } +?> +--INI-- +pcre.jit=1 --FILE-- <?php var_dump(preg_match('/^(foo)+$/', str_repeat('foo', 1024*8192))); diff --git a/ext/standard/tests/general_functions/ini_get_all.phpt b/ext/standard/tests/general_functions/ini_get_all.phpt index b97a945..72ce86d 100644 --- a/ext/standard/tests/general_functions/ini_get_all.phpt +++ b/ext/standard/tests/general_functions/ini_get_all.phpt @@ -1,10 +1,16 @@ --TEST-- ini_get_all() tests --INI-- +pcre.jit=1 pcre.backtrack_limit=1000000 pcre.recursion_limit=100000 --SKIPIF-- <?php if (!extension_loaded("reflection")) die("skip"); ?> +<?php +if (ini_get("pcre.jit") === FALSE) { + die("skip no jit built"); +} +?> --FILE-- <?php

« previous php.cvs (#105307) next »