note 33347 deleted from function.xslt-set-error-handler by didou

From: Date: Wed, 19 May 2004 19:46:46 +0000
Subject: note 33347 deleted from function.xslt-set-error-handler by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69846@lists.php.net to get a copy of this message
Note Submitter: tk.lists@fastmail.fm ---- With regards to using object methods for the xslt_set_error_handler callback: It works OK provided you do not try to assign the processor resource (created from xslt_create()) to a member variable. This will crash PHP! ie. do NOT do this! $this->xt = @xslt_create(); xslt_set_error_handler( $this->xt, array(&$this,"_SablotronErrorTrap") ); but you CAN do this :-) $xt = @xslt_create(); xslt_set_error_handler( $xt, array(&$this,"_SablotronErrorTrap") ); removing the "&" in front of $this will not make any difference. Leaving it there may be more efficient (dunno).

« previous php.notes (#69846) next »