» Be Careful with PHP’s version_compare
Be Careful with PHP’s version_compare
var_dump(version_compare("5.2.8-0.dotdeb.1", "5.2.8", "<="));
Expected result: bool(true)
Actual result: bool(false)
The moral of the story: use < or >.
Agavi Debug Tools now supports Propel query logging (both FirePHP and HTML output). Just configure Propel to use DebugPDO and AdtFilter to use AdtPropelDataSource. Nothing else required.
» Agavi 1.0.0 Beta 6
Agavi 1.0.0 Beta 6 - Even More Secure
Default: Strict Validation ALWAYS
Agavi has a very special input validation system which, by default, will not let your application use any unvalidated input data. And this doesn’t mean only POST or GET parameters in HTTP world but also cookies and headers. Remember, those too are user input and must be considered insecure.
This strict validation mode has been the default setting for production environment for quite some time already but after Agavi was blamed for somebody’s poor input validation it was made default for development environments too. It had already been discussed earlier because different defaults for different environments was sometimes confusing and caused applications to break when moved to production.
Production-ready Exception Templates
Because people seem to be too lazy to configure exception templates for production use a new set of default templates was added to Agavi 1.0.0 Beta 6.
Download Agavi: http://www.agavi.org/download
Thanks to Harald “digitarald” Kirschner ADT’s FirePHP output is now 174% nicer. And a few bugs was fixed too. Check out ADT at http://adt.projectbin.org/.
» ADT Agavi Debug Tools
I’ve released a first public version of a debug toolbar for Agavi. It supports traditional HTML output but you can also use it with FirePHP - extremely helpful when developing AJAX stuff with Agavi. Check it out at http://adt.projectbin.org/.
» Hans explains what is wrong with PHP
(via wombert)
I just had to reblog this for two reasons - I wanted to learn how rebloging works with Tumblr AND BECAUSE HE IS SO RIGHT…
