MCPcopy Create free account
hub / github.com/MapServer/MapServer / mapscript_style_object_clone

Function mapscript_style_object_clone

mapscript/php/style.c:693–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693static zend_object_value mapscript_style_object_clone(zval *zobj TSRMLS_DC)
694{
695 php_style_object *php_style_old, *php_style_new;
696 zend_object_value new_ov;
697
698 php_style_old = (php_style_object *) zend_object_store_get_object(zobj TSRMLS_CC);
699
700 new_ov = mapscript_style_object_new_ex(mapscript_ce_style, &php_style_new TSRMLS_CC);
701 zend_objects_clone_members(&php_style_new->std, new_ov, &php_style_old->std, Z_OBJ_HANDLE_P(zobj) TSRMLS_CC);
702
703 php_style_new->style = styleObj_clone(php_style_old->style);
704
705 return new_ov;
706}
707
708PHP_MINIT_FUNCTION(style)
709{

Callers

nothing calls this directly

Calls 2

styleObj_cloneFunction · 0.85

Tested by

no test coverage detected