summaryrefslogtreecommitdiff
path: root/xml.class
diff options
context:
space:
mode:
authorChristian Schneider2007-02-06 18:46:18 +0000
committerChristian Schneider2007-02-06 18:46:18 +0000
commita7a035ce0c44abae1591d9816a46292ccf8f09a1 (patch)
treeb66173a1b3a19f59d24a9499afbf94f71d881f87 /xml.class
parent5e3bb33edd612d84e071dbad3d29866b8bacbb7c (diff)
downloaditools-a7a035ce0c44abae1591d9816a46292ccf8f09a1.tar.gz
itools-a7a035ce0c44abae1591d9816a46292ccf8f09a1.tar.bz2
itools-a7a035ce0c44abae1591d9816a46292ccf8f09a1.zip
Fix it_xml recursion (and hence apache crash) by overwriting base constructor
Diffstat (limited to 'xml.class')
-rw-r--r--xml.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.class b/xml.class
index 1aa03a1..7f07fe0 100644
--- a/xml.class
+++ b/xml.class
@@ -127,7 +127,7 @@ function start_element($parser, $name, $attrs)
$name = $this->_p['prefix'] . $name;
if (!class_exists($name))
- eval("class $name extends $this->_baseclass {}");
+ eval("class $name extends $this->_baseclass { function $name() {} }"); # Extend base class but overwrite constructor with an empty one
if (!$this->_stack && !$this->_p['factory'])
array_unshift($this->_stack, &$this);