From 98d53ada83b8612547cd5e8b0999d35cfad081d3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 28 Jul 2016 12:54:30 +0200 Subject: php-pecl-ds: 1.0.1 --- php_common_handlers.c | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 php_common_handlers.c (limited to 'php_common_handlers.c') diff --git a/php_common_handlers.c b/php_common_handlers.c deleted file mode 100644 index 73e5006..0000000 --- a/php_common_handlers.c +++ /dev/null @@ -1,21 +0,0 @@ -#include "php_common_handlers.h" -#include "zend_smart_str.h" - -int ds_default_cast_object(zval *obj, zval *return_value, int type) -{ - switch (type) { - case IS_STRING: { - smart_str buffer = {0}; - - smart_str_appendl(&buffer, "object(", 7); - smart_str_append (&buffer, Z_OBJCE_P(obj)->name); - smart_str_appendc(&buffer, ')'); - - smart_str_0(&buffer); - ZVAL_STR(return_value, buffer.s); - return SUCCESS; - } - } - - return FAILURE; -} -- cgit