From:             [EMAIL PROTECTED]
Operating system: Redhat 8
PHP version:      4.3.0RC3
PHP Bug Type:     Class/Object related
Bug description:  Cant find internal referened functions within a class

Since i have upgraded my entire class script is buggered up.

Call to undefined function: _crypt()

here is the snippets

function login($username,$password,$remember,$page){
$this->db = $GLOBALS['db'];
$this->password = $this->_crypt($password);
$this->_check_username($username);
$this->_check_password($username);
$this->_is_confirmed($username);

if ($this->username_result && $this->pass_result &&
$this->confirmed_result){
$this->_setSession($remember,true);
        redirect($page);
//return true;
        }
else
        // login/pass check failed
        {
        $this->logout($_SERVER['PHP_SELF'].$this->_build_errorquery($this->result));
        }
  }

//pass password :: private
function _crypt($password){
        return md5($password);
}


i cant honestly see what the reason for this is, i suggest its a bug , as
my script was working before , what is even more wierd , my function was
called _encrypt it wasnt working so i changed it to _crypt and it started
working fine , i have reloaded my page today and its back to the same
error.
-- 
Edit bug report at http://bugs.php.net/?id=21021&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21021&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21021&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21021&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21021&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21021&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21021&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21021&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21021&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21021&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21021&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21021&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21021&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21021&r=isapi

Reply via email to