| 49 | } |
| 50 | |
| 51 | zend_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 | |
| 68 | int mapscript_extract_associative_array(HashTable *php, char **array) |
| 69 | { |
no outgoing calls
no test coverage detected