com php-src: Fix #73436: Setting allow_url_fopen to Off makes several tests fail: Zend/tests/debug_info- error-resource.phpt
ext/standard/tests/file/bug4300 8.phpt ext/standard/tests/streams/bug40459.ph pt ext/standard/tests/streams/bug71323.phpt

From: Date: Tue, 01 Nov 2016 19:13:53 +0000
Subject: com php-src: Fix #73436: Setting allow_url_fopen to Off makes several tests fail: Zend/tests/debug_info- error-resource.phpt
ext/standard/tests/file/bug4300 8.phpt ext/standard/tests/streams/bug40459.ph pt ext/standard/tests/streams/bug71323.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95378@lists.php.net to get a copy of this message
Commit: 2eacb53fc44ce4a0f16113eec96dfc0bb5ea52b6 Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 1 Nov 2016 20:13:53 +0100 Parents: ef75ddd4f98e0155e698387ab7ef052a0174278a Branches: PHP-5.6 PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2eacb53fc44ce4a0f16113eec96dfc0bb5ea52b6 Log: Fix #73436: Setting allow_url_fopen to Off makes several tests fail We make sure that these tests run with allow_url_fopen=1. Bugs: https://bugs..php.net/73436 Changed paths: M Zend/tests/debug_info-error-resource.phpt M ext/standard/tests/file/bug43008.phpt M ext/standard/tests/streams/bug40459.phpt M ext/standard/tests/streams/bug71323.phpt Diff: diff --git a/Zend/tests/debug_info-error-resource.phpt b/Zend/tests/debug_info-error-resource.phpt index ebdc37e..e3bd542 100644 --- a/Zend/tests/debug_info-error-resource.phpt +++ b/Zend/tests/debug_info-error-resource.phpt @@ -1,5 +1,7 @@ --TEST-- Testing __debugInfo() magic method with bad returns RESOURCE +--INI-- +allow_url_fopen=1 --FILE-- <?php diff --git a/ext/standard/tests/file/bug43008.phpt b/ext/standard/tests/file/bug43008.phpt index d2e3efd..3c9411d 100644 --- a/ext/standard/tests/file/bug43008.phpt +++ b/ext/standard/tests/file/bug43008.phpt @@ -4,6 +4,8 @@ Bug #43008 (php://filter uris ignore url encoded filternames and can't handle sl <?php if (!extension_loaded("iconv")) die("skip iconv extension not available"); ?> +--INI-- +allow_url_fopen=1 --FILE-- <?php $url = b"" diff --git a/ext/standard/tests/streams/bug40459.phpt b/ext/standard/tests/streams/bug40459.phpt index 8ee4363..902a1f9 100644 --- a/ext/standard/tests/streams/bug40459.phpt +++ b/ext/standard/tests/streams/bug40459.phpt @@ -1,5 +1,7 @@ --TEST-- bug 40459 - Test whether the constructor of the user-space stream wrapper is called when stream functions are called +--INI-- +allow_url_fopen=1 --FILE-- <?php // Test whether the constructor of the user-space stream wrapper is called when stream functions are called diff --git a/ext/standard/tests/streams/bug71323.phpt b/ext/standard/tests/streams/bug71323.phpt index dfe0bd8..29d7847 100644 --- a/ext/standard/tests/streams/bug71323.phpt +++ b/ext/standard/tests/streams/bug71323.phpt @@ -1,5 +1,7 @@ --TEST-- Bug #71323: Output of stream_get_meta_data can be falsified by its input +--INI-- +allow_url_fopen=1 --FILE-- <?php $file = 'data:text/plain;z=y;uri=eviluri;mediatype=wut?;mediatype2=hello,somedata';

« previous php.cvs (#95378) next »