Skip to content

Commit

Permalink
- Make gettype() behave like it used to where it returned "object" for
Browse files Browse the repository at this point in the history
  objects.
  • Loading branch information
Andi Gutmans committed Apr 17, 1999
1 parent 1e2474b commit 593e603
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/standard/basic_functions.c
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 593e603

Please sign in to comment.