From:             php at poni dot no
Operating system: CentOS 6.8
PHP version:      5.6.27
Package:          Testing related
Bug Type:         Bug
Bug description:Setting allow_url_fopen to Off makes several build tests fail

Description:
------------
with configure: ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-zlib --with-curl --without-sqlite3 --without-cdb
--without-pdo-sqlite --enable-exif --with-gd --with-png-dir=/usr/lib64
--with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64 --with-mysql
--with-mysqli --enable-opcache

When allow_url_fopen is set to Off in php.ini, running "make test" will
result in multiple failed tests.

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Testing __debugInfo() magic method with bad returns RESOURCE
[Zend/tests/debug_info-error-resource.phpt]
Bug #43008 (php://filter uris ignore url encoded filternames and can't
handle slashes) [ext/standard/tests/file/bug43008.phpt]
bug 40459 - Test whether the constructor of the user-space stream
wrapper is called when stream functions are called
[ext/standard/tests/streams/bug40459.phpt]
Bug #71323: Output of stream_get_meta_data can be falsified by its input
[ext/standard/tests/streams/bug71323.phpt]

>From the test log:

---- EXPECTED OUTPUT
Fatal error: __debuginfo() must return an array in
%s%eZend%etests%edebug_info-error-resource.php on line %d
---- ACTUAL OUTPUT
Warning: fopen(): data:// wrapper is disabled in the server
configuration by allow_url_fopen=0 in
/root/install/php-5.6.27/Zend/tests/debug_info-error-resource.php on
line 13

Warning: fopen(data:text/plain,Foo): failed to open stream: no suitable
wrapper could be found in
/root/install/php-5.6.27/Zend/tests/debug_info-error-resource.php on
line 13

Fatal error: __debuginfo() must return an array in
/root/install/php-5.6.27/Zend/tests/debug_info-error-resource.php on
line 14
---- FAILED

Setting allow_url_fopen to On and re-running the tests results in no
failures.

Test script:
---------------
make test

Expected result:
----------------
Test results should either be SKIP or PASS.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=73436&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=73436&r=trysnapshot54
Try a snapshot (PHP 5.5):   
https://bugs.php.net/fix.php?id=73436&r=trysnapshot55
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=73436&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=73436&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=73436&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=73436&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=73436&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=73436&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=73436&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=73436&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=73436&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=73436&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=73436&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73436&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=73436&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=73436&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=73436&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73436&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=73436&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=73436&r=mysqlcfg


-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to