cvs: pear /LiveUser_Admin Admin.php

From: Date: Tue, 07 Jun 2005 15:37:38 +0000
Subject: cvs: pear /LiveUser_Admin Admin.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32415@lists.php.net to get a copy of this message
lsmith Tue Jun 7 11:37:38 2005 EDT Modified files: /pear/LiveUser_Admin Admin.php Log: - raise php error when a non existant method was called inside the __call() method http://cvs.php.net/diff.php/pear/LiveUser_Admin/Admin.php?r1=1.36&r2=1.37&ty=u Index: pear/LiveUser_Admin/Admin.php diff -u pear/LiveUser_Admin/Admin.php:1.36 pear/LiveUser_Admin/Admin.php:1.37 --- pear/LiveUser_Admin/Admin.php:1.36 Tue Jun 7 07:40:57 2005 +++ pear/LiveUser_Admin/Admin.php Tue Jun 7 11:37:37 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Admin.php,v 1.36 2005/06/07 11:40:57 lsmith Exp $ + * @version CVS: $Id: Admin.php,v 1.37 2005/06/07 15:37:37 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -715,9 +715,6 @@ if (is_object($this->auth) && method_exists($this->auth, $method)) { return call_user_func_array(array(&$this->auth, $method), $params); } - $this->_stack->push(LIVEUSER_ADMIN_ERROR, 'exception', - array('msg' => 'Could not find method: '.$method)); - return false; + trigger_error(sprintf('Call to undefined function: %s::%s().', get_class($this), $method), E_USER_ERROR); } - }

« previous php.pear.cvs (#32415) next »