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
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:
28 + 18 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC