]> granicus.if.org Git - php/commitdiff
- Make gettype() behave like it used to where it returned "object" for
authorAndi Gutmans <andi@php.net>
Sat, 17 Apr 1999 07:02:58 +0000 (07:02 +0000)
committerAndi Gutmans <andi@php.net>
Sat, 17 Apr 1999 07:02:58 +0000 (07:02 +0000)
  objects.

ext/standard/basic_functions.c

index 5b7b807024792bff8b8ee17a13c6f80e9f066132..2c881812749bb595fff7b39e41c12f6429e313d8 100644 (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);