Replying to myself, as I didn't know it would go back to the list! :) My patch fixes the eregi calls, but not this one: $err = &new XML_Parser_Error($msg, $ecode); return parent::raiseError($err); What's the way to fix for php 5.3.x? Thomas