Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.4

Bug #3277 allow_url_fopen-Trouble in setInputFile
Submitted: 2005-01-24 00:21 UTC Modified: 2006-12-17 05:04 UTC
From: pear-bugs at jensthebrain dot de Assigned: schst
Status: Closed Package: XML_Parser
PHP Version: 4.3.10 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2005-01-24 00: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)..

Comments

 [2005-02-25 12:02 UTC] schst
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.