News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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


blog comments powered by Disqus

Similar Posts

Matthew Turland's Blog: Gotcha on Scraping .NET Applications with PHP and cURL

PHP-Coding-Practices.com: How Table Migrations In CakePHP 1.2 Can Save Your Life

PHPKitchen: Seagull 0.6.0 Released

Jachim Coudenys: Using multiple databases in phpunit/dbunit with Composer

Zend Developer Zone: Fetching multiple random rows from a database


Community Events





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


version security artisanfiles tool release list opinion language framework podcast conference series voicesoftheelephpant library composer laravel introduction symfony community interview

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