php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #16377 allow_url_fopen = Off cuts the ability to open php://*
Submitted: 2002-04-01 11:32 UTC Modified: 2002-05-10 15:55 UTC
From: cox at idecnet dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.2 OS: Red Hat 6.x & 7.x
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cox at idecnet dot com
New email:
PHP Version: OS:

 

 [2002-04-01 11:32 UTC] cox at idecnet dot com
<?php
ini_set('allow_url_fopen',false);
if (!fopen('php://stderr','w')) echo "No\n";
ini_set('allow_url_fopen',true);
if (fopen('php://stderr','w')) echo "Yes\n";
?>

Ouput:
Warning: fopen("php://stderr", "w") - No existe el fichero o el directorio in /root/temp/basura/fopen.php on line 3
No
Yes

-- Tomas V.V.Cox

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-01 16:07 UTC] derick@php.net
Not a bug, making it a documentation issue.

Derick
 [2002-04-16 18:22 UTC] wez@php.net
As of PHP 4.3.0 (current CVS HEAD) this no longer applies.
 [2002-05-10 15:55 UTC] derick@php.net
Fixed (per 4.3.x)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 17:01:33 2025 UTC