com php-src: Removed unused code: Zend/zend_API.c Zend/ze nd_API.h
| From: | JulienPauli | Date: | Tue, 18 Aug 2015 12:33:04 +0000 |
| Subject: | com php-src: Removed unused code: Zend/zend_API.c Zend/ze nd_API.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88586@lists.php.net to get a copy of this message | ||
Commit: 9a138b47c955c60f13062ff7bb60a4d0f5ec7532
Author: Julien Pauli <jpauli@php.net> Tue, 18 Aug 2015 14:32:56 +0200
Parents: a1c9c318ea5b96e9f1a4622c1bc8b6d7e527b764
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9a138b47c955c60f13062ff7bb60a4d0f5ec7532
Log:
Removed unused code
Changed paths:
M Zend/zend_API.c
M Zend/zend_API.h
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 4a29c9e..559a1d2 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1321,13 +1321,6 @@ ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC) /* {{{ */
}
/* }}} */
-ZEND_API int add_assoc_function(zval *arg, const char *key, void
(*function_ptr)(INTERNAL_FUNCTION_PARAMETERS)) /* {{{ */
-{
- zend_error(E_WARNING, "add_assoc_function() is no longer supported");
- return FAILURE;
-}
-/* }}} */
-
ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ */
{
zval *ret, tmp;
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 8dc3e8a..0fc0584 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -386,9 +386,6 @@ ZEND_API void object_properties_load(zend_object *object, HashTable *properties)
ZEND_API void zend_merge_properties(zval *obj, HashTable *properties);
-/* no longer supported */
-ZEND_API int add_assoc_function(zval *arg, const char *key, void
(*function_ptr)(INTERNAL_FUNCTION_PARAMETERS));
-
ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);