PHP 4.0 Bug #6156: Object loosing an array property
| From: | tite at wolstudios dot com | Date: | Mon, 14 Aug 2000 20:11:22 +0000 |
| Subject: | PHP 4.0 Bug #6156: Object loosing an array property | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-28855@lists.php.net to get a copy of this message | ||
From: tite@wolstudios.com
Operating system: SuSe 6.4
PHP version: 4.0.1
PHP Bug Type: Other
Bug description: Object loosing an array property
Hello.
I am using php 4.0.1 with Apache 1.3.12, I have a problem in
my php script with a bidimensional array that gets lost.
My script reads an html template from a file. The neat part
of it is that it supports nested loops in the templates to
be able to nest results from querys.
Source code is at:
- start :
http://212.85.33.69/~tite/cvs/burladero/encuestas.phps
- template engine:
http://212.85.33.69/~tite/cvs/burladero/func_plant.phps
- db engine :
http://212.85.33.69/~tite/cvs/burladero/db.inc.phps
- Template :
http://212.85.33.69/~tite/cvs/burladero/plts/res.tite
Executable:
http://212.85.33.69/~tite/cvs/burladero/encuestas.php?INIT=1&ID=16
To do so I read the template and make a tree structure with
objects bucle. While I read the template I create the tree.
There is no problem doing that. If you see the source code,
there is a function called salida() that just does an echo.
Through those outputs I check that the objects is filled up
propperly, even the propperty tablas which has a bidimensional array with a table name at position 0
and field names at the rest of positions.
Once filled up the memory, I use the function scanner to go through all the objects, make que querys
to the mysql, and mix data and template.
My problem is that when I get to the next element to the root object ($raiz) I have all propperties
set up, but the
bidimensional array tablas. Which when I checked at undo_where() and datos_db() it was ok, along
with the rest
of the propperies of the object.
If you need some more information, please don´t doubt to contact me.
Thank You
Josafat Moragrega Fernandez
tite@wolstudios.com