Re: XML_Parser:setInput()
| From: | Marshall Roch | Date: | Thu, 28 Aug 2003 09:35:50 +0000 |
| Subject: | Re: XML_Parser:setInput() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20726@lists.php.net to get a copy of this message | ||
Stephan Schmidt wrote:
So users could get lazy (they tend to do this sometimes) and always use the setInput() method. If the location of the file changes from remote to local, they may forget to use setInputFile() instead.Actually, that was the idea. If we can come up with a reliable way to differentiate between a string and a URL, then you shouldn't need to call different functions. Of course, setInputFile() still works just fine, in case you still want to call it specifically. I'm interested to hear what other people have to think about this. Personally, I don't think there's a problem with it, but it was my patch so I'm biased. -- Marshall Roch