How should one check if a zval is "undefined" ?
From: Aaron Lewis Date: Wed, 07 May 2014 02:45:27 +0000 Subject: How should one check if a zval is "undefined" ? Groups: php.internals Request: Send a blank email to internals+get-73990@lists.php.net to get a copy of this message
Hi, I'm trying to check if a zval is undefined, But Z_STRLEN_P(return_value) == 0 seems incorrect, 'case the strlen part sometimes returns a negative value So, what's the right way to do it? Even regardless of the zval type -- Best Regards, Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Thread (2 messages)
| « previous | php.internals (#73990) | next » |
|---|