News Feed
Sections




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

MySQL Performance Blog:
Integers in PHP, running with scissors, and portability
March 29, 2007 @ 09:30:00

According to this new post on the MySQL Performance Blog, PHP has a bit of an issue when it comes to working with integers.

Until recently I thought that currently popular scripting languages, which mostly evolved over last 10 years or something, must allow for easier portability across different platforms compared to ye good olde C/C++.

However, PHP just brought me a new definition of "portable" - and that was when working with... integers.

He points out that PHP isn't able to correctly handle unsigned integers ("and converts values over 2^31 to signed"). He goes on to talk about how this differs between platforms too (32 vs 64 bit) and some of the research he did to find out just what was going on (including some code examples to illustrate the point).

0 comments voice your opinion now!
integer pertability unsigned convert research example integer pertability unsigned convert research example


blog comments powered by Disqus

Similar Posts

php|architect Blog: Less Code isnít Always Better

Smarx.com: PHP for Microsoft AJAX Library

Alexander Netkachev's Blog: 404 error with Zend Framework Front Controller

Developer.com: Build your own MVC Framework: Getting your Framework Up And Running

PHP Thinktank Blog: PHP-GTK with scottmattocks (IRC Talk Series)


Community Events





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


list developer symfony configure code threedevsandamaybe release laravel install series application community wordpress bugfix interview language podcast library introduction api

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