News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
PHPEverywhere:
Octopussy numbers in PHP
February 01, 2008 @ 09:21:00

John Lim has posted about an interesting bug he's come across when working with the output of two strings that should look the same:

Someone reported a bug in ADOdb, the open source db library i maintain. I went crazy for half an hour until i realised the problem.

According to him, "if you expect the above code to produce the same values, you are sadly mistaken". His example gives an interesting result for the first echo statement - not echoing the 9 in the first character like it seems would make sense. Check out his post for the code and try it out for yourself.

0 comments voice your opinion now!
number echo adodb database gotcha



Similar Posts

Ryan Malesevich's Blog: iTunes Stats for Macintosh with PHP & MySQL Part 2

Stoyan Stefanov's Blog: Reusing an existing database connection with MDB2

PHP-it.net: Creating a chat script with PHP and Ajax (Part 2)

Chris Hartjes' Blog: The Devil’s In The Details (or, Handling Sequences in Postgres in CakePHP)

WebDigity.com: PHP geotargeting techniques


Community Events







Don't see your event here?
Let us know!


framework application release ajax code releases developer PHP5 zend mysql package job zendframework security book PEAR cakephp database conference example

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework