Another output buffering oddity
| From: | Sebastian Bergmann | Date: | Sun, 25 Aug 2002 09:34:42 +0000 |
| Subject: | Another output buffering oddity | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-87423@lists.php.net to get a copy of this message | ||
Just noticed that PEAR::XML::Transformer doesn't work with current
HEAD, but works fine with PHP 4.2.3-RC1.
This script
<?php
require_once 'XML/Transformer.php';
$t = new XML_Transformer;
$t->overloadElement(
'bold',
'startElementBold',
'endElementBold'
);
$t->start();
function startElementBold($attributes) {
return '<b>';
}
function endElementBold($cdata) {
return $cdata . '</b>';
}
?>
<bold>text</bold>
outputs
<bold>text</bold>
instead of
<b>text</b>
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/