php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24865 [patch] let XML_RSS, XML_Parser accept string inputs
Submitted: 2003-07-30 01:37 UTC Modified: 2003-09-09 19:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: marshall at exclupen dot com Assigned: mj (profile)
Status: Closed Package: PEAR related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
MUST BE VALID
Solve the problem:
18 - 3 = ?
Subscribe to this entry?

 
 [2003-07-30 01:37 UTC] marshall at exclupen dot com
Description:
------------
There is no way to pass a string to XML_Parser, such as a cached RSS feed from a database.  These diffs modify XML_Parser to accept strings in addition to the current URLs and existing resources, and XML_RSS to be able to pass a string to XML_Parser (backwards-compatibility is maintained as far as I can see).

[note: see the original post on pear-dev @ http://marc.theaimsgroup.com/?l=pear-dev&m=105935331827366&w=2]

Reproduce code:
---------------
http://www.exclupen.com/misc/php/pear_patches/XML_Parser.diff
http://www.exclupen.com/misc/php/pear_patches/XML_RSS.diff


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-23 04:54 UTC] mj@php.net
I've applied your patches to CVS, but I'm leaving this bug report unclosed until we have rolled new releases.

Thanks for your help.
 [2003-08-26 13:18 UTC] marshall at exclupen dot com
Should XML_RSS be dependent on the new version of XML_Parser?
 [2003-08-26 18:02 UTC] marshall at exclupen dot com
Stephan Schmidt has pointed out that scripts would fail with a very large input file, as it is all read into memory.

I've fixed this problem and applied the diff to 1.6 (Martin's patch of Aug 23):

http://www.exclupen.com/misc/php/pear_patches/XML_Parser/XML_Parser-1.6.diff
 [2003-09-09 19:54 UTC] cox@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC