Re: GMP object and is_scalar()
| From: | Stas Malyshev | Date: | Mon, 30 Dec 2013 20:45:58 +0000 |
| Subject: | Re: GMP object and is_scalar() | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-70927@lists.php.net to get a copy of this message | ||
Hi!
> Since GMP object works just like numbers, this could cause bug that
> users assume it is "number" or "scalar".
is_scalar checks if the value is a scalar. Objects and resources are not
scalars. If someone doesn't understand that, he should read manual page
of is_scalar before using it.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227