#25324 [NEW]: Broken syntax in Auth.php and Container.php

From: Date: Sat, 30 Aug 2003 20:04:10 +0000
Subject: #25324 [NEW]: Broken syntax in Auth.php and Container.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20896@lists.php.net to get a copy of this message
From: laurynas dot alekna at sc dot vu dot lt Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: PEAR related Bug description: Broken syntax in Auth.php and Container.php 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 -- Edit bug report at http://bugs.php.net/?id=25324&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25324&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25324&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25324&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25324&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25324&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25324&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25324&r=support Expected behavior: http://bugs.php.net/fix.php?id=25324&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25324&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25324&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25324&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25324&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25324&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25324&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25324&r=gnused

« previous php.pear.dev (#20896) next »