Re: [PHP-DEV] Functions for getting long / double from zval with casts

2012-11-19 Thread Nikita Popov
On Mon, Nov 19, 2012 at 5:09 AM, Stas Malyshev wrote: > Hi! > > > Hi internals! > > > > It happens quite often that you need to extract an integer from a zval > and > > you also want it to work for integers in strings, etc. In order to do so > > you currently have to cast the zval to integer. This

Re: [PHP-DEV] Functions for getting long / double from zval with casts

2012-11-18 Thread Stas Malyshev
Hi! > Hi internals! > > It happens quite often that you need to extract an integer from a zval and > you also want it to work for integers in strings, etc. In order to do so > you currently have to cast the zval to integer. This is always rather > complicated because you often don't want to actua

Re: [PHP-DEV] Functions for getting long / double from zval with casts

2012-11-17 Thread Levi Morrison
On Sat, Nov 17, 2012 at 8:15 AM, Nikita Popov wrote: > Hi internals! > > It happens quite often that you need to extract an integer from a zval and > you also want it to work for integers in strings, etc. In order to do so > you currently have to cast the zval to integer. This is always rather > c

[PHP-DEV] Functions for getting long / double from zval with casts

2012-11-17 Thread Nikita Popov
Hi internals! It happens quite often that you need to extract an integer from a zval and you also want it to work for integers in strings, etc. In order to do so you currently have to cast the zval to integer. This is always rather complicated because you often don't want to actually change the pa