November 26th, 2008
To help anyone else in their quest to implement Zend_OpenId in their code, I’ve created a small patch against trunk which adds error internal error messages in most places where there’s a return false;. This should help when debugging your code, both if you’re implementing an authentication service and use Zend_OpenId as a consumer or if you’re implementing just the consumer part of the equation.
I’ve uploaded the diff: Consumer.php.patch (Consumer.php.patch.txt).
The only thing that seemed a bit weird was that one of the error messages that were present in 1.6.0 had been removed in trunk:
-
if ($status != 200) {
-
this->_setError("'Dumb' signature verification HTTP request failed");
-
return false;
-
}
I’ve readded this message in my patch, but I feel that the error message should be something like:
-
$this->_setError("The server responded with HTTP status code: " . $status);
instead.
Oh well. Hopefully someone will find this useful.
Tags: openid, PHP, Programming, Zend Framework
Posted in PHP, Zend Framework | No Comments »
May 9th, 2008
Christer had the pleasure of hunting down a bug in Zend Framework a couple of days ago, and he has just posted a nice article about the bug in Zend MVC Components and how he debugged it. If you’ve never used a debugger before, this article is probably also going to be a bit helpful, and it gives a little insight into how the Zend Framework MVC-components work.
Tags: christer, debugging, PHP, Zend Framework, zend mvc
Posted in PHP, Zend Framework | No Comments »
April 25th, 2008
Christer has obviously been having a good day today too, as he’s actually made yet ANOTHER blog post about something related to Zend Framework: Using Objects with Zend_View’s PartialLoop Helper. This time he’s examining why some methods suddenly has disappeared in his PartialLoop. I’m a bit surprised his father hasn’t helped him with his view scripts, tho. It’s probably just something he’s saying to don’t appear too incompetent.
Tags: PHP, Zend Framework
Posted in PHP, Zend Framework | No Comments »