|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ?? 1999, Version 4.0 Beta 3
+- count() speedup. (Thies)
- OCI8 supports appending and positioning when saving LOBs (Thies)
- Added metaphone support (Thies)
- OCI8 doesn't use define callbacks any longer. (Thies)
PHP_FUNCTION(count)
{
- pval *array;
+ pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
- target_hash = HASH_OF(array);
+
+ target_hash = HASH_OF(*array);
if (!target_hash) {
- if (array->type == IS_STRING && array->value.str.val==undefined_variable_string) {
+ if ((*array)->type == IS_STRING && (*array)->value.str.val==undefined_variable_string) {
RETURN_LONG(0);
} else {
RETURN_LONG(1);