Hello,

i know that this post should better been sent to bugs.php but making my
first experiences on segmentation faults i can't identify the right causes
to report it... have a look and help me getting right informations to post
the bug so that it can be solved.

Error type:
'''''''''''
error_log sais segmentation fault sometimes; while running the script the
server (not all the time!) starts a proc with 50-90% of users processor
resources?!

Source:
'''''''
Using todays snapshot php5-200403041230.tar.gz

Concerning extensions:
''''''''''''''''''''''
- ext/dom: XPath query function
(- maybe referencing behavior of variables in general??)

Code:
'''''
[The code is VERY BIG... here is just a snippet causing the error]

<?php
        ...
        // $xpath is a DomXPath Object
        // $filesystem holds a wellformed expression string
        if(is_string($this->filesystem)) {
                $this->filesystem = $xpath->query($this->filesystem);
        }
        // $this->filesystem should store a DomNodeList
        // and sometimes it does!!
        ...
?>


This code (i think) works fine:
<?php
        ...
        // $xpath is a DomXPath Object
        // $filesystem holds a wellformed expression string
        if(is_string($this->filesystem)) {
                $nodeList = $xpath->query($this->filesystem);
        }
        // $nodeList should store a DomNodeList
        ...
?>
 
Problem description:
''''''''''''''''''''
Other tests in my script showed that the problem occurs if I try to store in
an $object->var.


Maybe you need some more informations to fix this problem?
Comments are appreciated!

Thanks in advance,
vivi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to