|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-30 16:14 UTC] yavo@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
Description: ------------ There is trivial syntax mistake in Auth.php and Container.php: Patches: $ diff -u Auth.php-CVS Auth.php --- Auth.php-CVS Sat Aug 30 22:38:06 2003 +++ Auth.php Sat Aug 30 22:44:40 2003 @@ -441,7 +441,7 @@ function getAuthData($name = null) { $session = &Auth::_importGlobalVariable("session"); - if(!isset($session[$this->_sessionName]['data']){ + if(!isset($session[$this->_sessionName]['data'])) { return(null); } $ diff -u Container.php-CVS Container.php --- Container.php-CVS Sat Aug 30 22:35:54 2003 +++ Container.php Sat Aug 30 22:46:10 2003 @@ -98,7 +98,7 @@ default : if (function_exists($cryptType)) { return ($cryptType($password1) == $password2); - else if (method_exists($this,$cryptType)) { + } else if (method_exists($this,$cryptType)) { return ($this->$cryptType($password1) == $password2); } else { return false; Actual result: -------------- Parse error: parse error, unexpected '{' in Auth\Auth.php on line 444 Parse error: parse error, unexpected T_ELSE in Auth\Container.php on line 101