Re: is_scalar

From: Date: Sun, 24 Jun 2001 03:59:46 +0000
Subject: Re: is_scalar
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-57805@lists.php.net to get a copy of this message
At 05:21 PM 6/23/2001 -0600, Zak Greant wrote:
Hello All, I was just reviewing the is_scalar() function and noted that the function does not consider resources to be scalar values. Shouldn't this be changed? I must have missed this when I initially wrote the function...
I don't think resources should be scalar. They are abstract datatypes which happen to be in ID (integer) form. As I've always said, people should count on it being an integer as this could change one day. Andi

« previous php.dev (#57805) next »