slhemanthkumar / google-checkout-php-sample-code

Automatically exported from code.google.com/p/google-checkout-php-sample-code
0 stars 0 forks source link

XmlParser returns incorrect results #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue #1. When error_reporting is set to E_ALL, get

Notice: Undefined variable: value in /path/to/xmlparser.php on line 148

Issue #2. XmlParser does not honor tag case (that is, <tag> and <TAG> are
understood as the same tag).
Issue #3. XmlParser ignores complete and empty tags (<tag/>, <tag></tag>).
Additionaly, a notice is issued:

Notice:  Undefined offset:  <number> in /path/to/xmlparser.php on line 119

Issue #4. XmlParser's output depends upon line breaks/spaces in the input. 

What steps will reproduce the problem?
Issue #1: Please see issue1.php attached
Issue #2: Please see issue1.php attached
Issue #3: Please see issue3.php attached

What is the expected output? What do you see instead?
Issue #1: please see issue1.php attached
Expected: not to see any notices/warning from PHP

Issue #2.
  * Input: please see issue1.php attached
  * Expected: please see issue2_expected.html attached
  * Received: please see issue2_received.html attached

Issue #3.
  * Input: please see issue3.php attached
  * Expected: please see issue3_expected.html attached
  * Received: please see issue3_received.html attached

Issue #4
  * Input: please see issue4.php attached
  * Expected: please see issue4_expected.html attached
  * Received: please see issue4_received.html attached

What version of the product are you using? On what operating system?
Version 1.1.2 (SVN Revision 38), FreeBSD 5.4 (PHP 4.4.4), Windows XP SP2
(PHP 5.1.2?)

Please provide any additional information below.
Please find a patch (unified diff), patch.diff, attached

Original issue reported on code.google.com by g.cheers...@gtempaccount.com on 9 May 2007 at 1:41

Attachments:

GoogleCodeExporter commented 9 years ago
xmlparser changed in v1.2

http://google-checkout-php-sample-code.googlecode.com/svn/branches/1.2beta/CHANG
ELOG

Original comment by rovagn...@gmail.com on 13 Jun 2007 at 4:23