- Make gettype() behave like it used to where it returned "object" for

objects.
This commit is contained in:
Andi Gutmans 1999-04-17 07:02:58 +00:00
parent 1e2474b18c
commit 593e603e4b

View file

@ -1273,7 +1273,11 @@ void php3_gettype(INTERNAL_FUNCTION_PARAMETERS)
case IS_ARRAY:
RETVAL_STRING("array",1);
break;
case IS_OBJECT: {
case IS_OBJECT:
RETVAL_STRING("object",1);
break;
/*
{
char *result;
int res_len;
@ -1282,6 +1286,7 @@ void php3_gettype(INTERNAL_FUNCTION_PARAMETERS)
sprintf(result, "object of type %s", arg->value.obj.ce->name);
RETVAL_STRINGL(result, res_len, 0);
}
*/
break;
default:
RETVAL_STRING("unknown type",1);