Segmentation fault while accessing objects ...
| From: | CHristian Niss | Date: | Tue, 12 Dec 2000 17:12:00 +0000 |
| Subject: | Segmentation fault while accessing objects ... | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41020@lists.php.net to get a copy of this message | ||
Hi everyone,
I discovered a very strange behaviour of PHP. My php-module returns objects
containing simple variables and two-dimensional arrays and arrays of
objects. The result objects are O.K. (as var_dump tells me), BUT when I want
to access some of the properties (especially the arrays) I get segmentation
faults, sometimes even when I assign parts of the object to another variable
(like $dummy = $myresult->square ).
Moreover it seems that PHP does not like expressions like
"$test=$result->square[$i]->property" while "$dummy=$result->square;
test=$dummy[$i]" works without a segmentation violation ...
Any clues ???
Thanks in advance
CHris
--
Christian Niss Avinci Region Mitte GmbH
tel. +49(178)8855-617 The Know How Company
fax. +49(178)998855-617
mailto:christian.niss@avinci.de http://www.avinci.de