Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.4

Bug #1655 page hangs with no error display
Submitted: 2004-06-16 13:06 UTC
From: alessio dot f at cost dot it Assigned:
Status: Bogus Package: Auth
PHP Version: 5.0.0RC3 (Release Candidate 3) OS: fedora core 1
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2004-09-20 12:14 UTC
Package:
Bug Type:
Summary:
From: alessio dot f at cost dot it
New email:
PHP Version: Package Version: OS:

 

 [2004-06-16 13:06 UTC] alessio dot f at cost dot it
Description: ------------ Just a test using the simple code found in domentation. I can see nothing. No errors, no warnings, no html. The page simply hangs. Reproduce code: --------------- <?php require_once 'DB.php'; require_once "Auth/Auth.php"; function loginFunction () { /** * Change the HTML output so that it fits to your * application. */ echo "<form method=\"post\" action=\"" . $_SERVER['PHP_SELF'] . "\">"; echo "<input type=\"text\" name=\"username\">"; echo "<input type=\"password\" name=\"password\">"; echo "<input type=\"submit\">"; echo "</form>"; } $dsn = "mysql://dbuser:dbpassword@localhost/test"; $a = new Auth("DB", $dsn, "loginFunction"); $a->start(); echo "Everybody can see this text!<br />"; if (!isset($_GET['login'])) { echo "<a href=\"testAuth.php\">Click here to log in</a>\n"; } //if ($a->getAuth()) { echo "One can only see this if he is logged in!"; } ?>

Comments

 [2004-07-05 22:02 UTC] slhutson at gmail dot com
I'm having the same issue, with version 1.3.0r2 on fedora core 2, and same php version. getAuth is returning false but seesion is being registed. When I downgrade to version 1.3.0r1, everything works properly.
 [2004-07-08 10:32 UTC] alpha at losc dot net
same issue, getAuth() return nothing... PHP 4.3.7 (cgi)
 [2004-07-11 20:41 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-13 10:54 UTC] martind at boltblue dot com
I think this is a slight bug in: Auth.php function getAuth() { if ( isset($this->session['registered']) ) { $this->session['registered']; } return false; } As can be seen, getAuth never returns true... I think the return has been ommitted, should be: function getAuth() { if ( isset($this->session['registered']) ) { return $this->session['registered']; } return false; }
 [2004-07-13 11:21 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-09-20 12:14 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!