From a7a035ce0c44abae1591d9816a46292ccf8f09a1 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 6 Feb 2007 18:46:18 +0000 Subject: Fix it_xml recursion (and hence apache crash) by overwriting base constructor --- xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3