Re: double val to long val conversion issue

From: Date: Sun, 10 Feb 2013 03:25:15 +0000
Subject: Re: double val to long val conversion issue
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-65746@lists.php.net to get a copy of this message
Hi! > these onto the appropriate visualC / gcc types. As far as I can see, > PHP doesn't and seems to use long and int almost interchangeably which PHP indeed does not use fixed-size types in zvals, etc. but it definitely does not "use long and int almost interchangeably". In almost any place where int is used instead of long or vice versa (unless it is a specific small value that is nowhere near limits of either int or long and used in very restricted context) - it is a bug and should be fixed. If you know of such places, please name them or even better, submit a bug report pointing them out. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227

« previous php.internals (#65746) next »