just got my first patch accepted in Zend Framework trunk ! thanks @ralphschindler for cleaning it up and commiting

About a year and a hlaf ago I submitted a small patch to the Zend Framework, http://framework.zend.com/issues/browse/ZF-9577 , great to see that if has now been commited in and will be in the next 1.11 release

thanks to @ralphschindler for cleaning it up and writing the test http://framework.zend.com/code/comp.php?repname=Zend+Framework&compare[]=/@24411&compare[]=/@24412

@posterous - posting code samples is impossible using your markdown thing

yeah i read yours docs

i tried posting from within a plain text email, wasnt happy, tried in the HTML editor for the post and normal view still nothing

and yes I used 4 spaces before the code within markdown tags

please can you update your editor to something good - think Google Sites editor - not some crappy TinyMCE clone

for any code more than 1 line i just use a gist in the post - its just works

PHP int filter, Facebook user IDs, and 32 bit servers dont mix

just working on a facebook app and wondering why is it always inserting the Facebook user ID as 2147483647 when the ID is something else.

I've been using the (int) filter as detailed in th the zend framework docs and examples, but as Facebook user IDs are larger than the largest integer a 32 bit server can handle so (int) doesn't work Simple solution if your such on a 32 bit server is just to use 'is_numeric'

$id = is_numeric($id) ? $id : ''; // makes Facebook IDs work on 32bit

Filed under  //