- Zend branch patches merged in - get the PHP tree uptodate
- Clean
return_value->value.str.val = (char *) safe_estrndup(sql_row[field_offset],return_value->value.str.len);
}
} else {
- return_value->value.str.val = undefined_variable_string;
- return_value->value.str.len=0;
- return_value->type = IS_STRING;
+ return_value->type = IS_UNSET;
}
return_value->type = IS_STRING;
}
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);
#define PHP_MIME_TYPE "application/x-httpd-php"
/* macros */
-#undef MIN
-#undef MAX
#undef COPY_STRING
-#define DO_OR_DIE(retvalue) if (retvalue==FAILURE) { return FAILURE; }
-#define MAX(a,b) (((a)>(b))?(a):(b))
-#define MIN(a,b) (((a)<(b))?(a):(b))
-#define STR_FREE(ptr) if (ptr && ptr!=empty_string && ptr!=undefined_variable_string) { efree(ptr); }
#define COPY_STRING(yy) (yy).value.str.val = (char *) estrndup((yy).value.str.val,(yy).value.str.len)
#define STR_PRINT(str) ((str)?(str):"")