MCPcopy Index your code
hub / github.com/MapServer/MapServer / mapscript_object_new_ex

Function mapscript_object_new_ex

mapscript/php/php_mapscript_util.c:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51zend_object_value mapscript_object_new_ex(zend_object *zobj,
52 zend_class_entry *ce,
53 void (*zend_objects_free_object),
54 zend_object_handlers *object_handlers TSRMLS_DC)
55{
56 zend_object_value retval;
57 zval *temp;
58
59 zobj->ce = ce;
60 ALLOC_HASHTABLE(zobj->properties);
61 zend_hash_init(zobj->properties, 0, NULL, ZVAL_PTR_DTOR, 0);
62 zend_hash_copy(zobj->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref,(void *) &temp, sizeof(zval *));
63 retval.handle = zend_objects_store_put(zobj, NULL, (zend_objects_free_object_storage_t)zend_objects_free_object, NULL TSRMLS_CC);
64 retval.handlers = object_handlers;
65 return retval;
66}
67
68int mapscript_extract_associative_array(HashTable *php, char **array)
69{

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected