summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-31 14:06:31 +0000
committerZeev Suraski <zeev@php.net>1999-12-31 14:06:31 +0000
commitccb4b183489aef5d076a0c84e587084ccffc0f0f (patch)
treed24fc346ee4f553447b763f797ef65b733264b8b /ext/standard/array.c
parentf2d703e916e767e86c2d6434e809f29f6906f5fc (diff)
downloadphp-git-ccb4b183489aef5d076a0c84e587084ccffc0f0f.tar.gz
Happy new year (especially to Thies :)
- Zend branch patches merged in - get the PHP tree uptodate - Clean
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 22bf7e97c8..c13eaeabee 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -246,7 +246,7 @@ PHP_FUNCTION(count)
}
target_hash = HASH_OF(*array);
if (!target_hash) {
- if ((*array)->type == IS_STRING && (*array)->value.str.val==undefined_variable_string) {
+ if ((*array)->type == IS_UNSET) {
RETURN_LONG(0);
} else {
RETURN_LONG(1);