PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Parser » Bug #3277

allow_url_fopen-Trouble in setInputFile

Details

Submitted2005-01-24 05:21 UTC
Frompear-bugs at jensthebrain dot de
Assignedschst
StatusClosed
PackageXML_Parser
PHP Version4.3.10
Roadmaps(Not assigned)

Comments

[2005-01-24 05:21 UTC] pear-bugs at jensthebrain dot de

Description:
------------
I run into troubles with the following code in the xml-parser:
function setInputFile($file)
{
$oldVal = false;
/**
* check, if file is a remote file
*/
if (eregi('^(http|ftp)://', substr($file, 0, 10))) {
if (!ini_get('safe_mode')) {
$oldVal = ini_set('allow_url_fopen', 1);
} else {
return $this->raiseError('Remote files cannot be parsed, as safe mode is enabled.', XML_PARSER_ERROR_REMOTE);
}
}

How could it set allow_url_fopen to 1? allow_url_fopen is only setable in php.ini or httpd.conf(PHP_INI_SYSTEM)..