Home » XML » XML_Parser » Bug #3277
allow_url_fopen-Trouble in setInputFile
Details
| Submitted | 2005-01-24 05:21 UTC |
|---|---|
| From | pear-bugs at jensthebrain dot de |
| Assigned | schst |
| Status | Closed |
| Package | XML_Parser |
| PHP Version | 4.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)..