php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6531 xml functions not working correctly, still.
Submitted: 2000-09-04 11:39 UTC Modified: 2001-06-01 15:31 UTC
From: dwmcqueen at yahoo dot com Assigned:
Status: Closed Package: *XML functions
PHP Version: 4.0 Latest CVS (04/09/2000) OS: Mandrake 7.1 2.2.16
Private report: No CVE-ID: None
 [2000-09-04 11:39 UTC] dwmcqueen at yahoo dot com
I noticed this was somewhat fixed in latest CVS, but my objects created during XML processing are all empty, now.  The best way to point this out is to look at the classgen utility at http://kongstud.hibu.no/lars/classgen/classgen.php4 .

Using it with the latest CVS, and executing the test.php4 script within yields these error messages:

Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 354


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 355

# $Id$
#  <>
#  <>
#

# Generated with the PHP Class Generator
# (C) 2000 by Lars Wilhelmsen , All rights reserved.




Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 219


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 220


Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 244


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 245


Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 260


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 262


Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 280


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 282


Warning:  Variable passed to reset() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 301


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 303


Warning:  Variable passed to each() is not an array or object in /usr/local/apache/htdocs/classgen/classgen.class.php4 on line 332

It seems that the objects are not created correctly.  This script worked fine in 4.0.1pl2, was completely broken in 4.0.2, but now only has a hard time with the objects created in the latest CVS.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-07 14:14 UTC] cardinal@php.net
No example script.  Could you provide a short script detailing the bug you're seeing?

Also, this is a year old, have you tested against 4.0.5 or a current CVS?
 [2001-06-01 15:31 UTC] sniper@php.net
No feedback, not enough info.

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 09:01:24 2020 UTC