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

Bug #3277 allow_url_fopen-Trouble in setInputFile
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 OS:
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 38 - 23 = ?

 [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)..


 [2005-02-25 17: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 In case this was a 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.