Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line symbol (dashed line + symbol) construction issues in mapserver 6 #4433

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions mapscript/php/class.c
Expand Up @@ -216,6 +216,11 @@ PHP_METHOD(classObj, __set)

php_class = (php_class_object *) zend_object_store_get_object(zobj TSRMLS_CC);

/* special case for "template" which we want to set to NULL and not an empty string */
if(Z_TYPE_P(value)==IS_NULL && !strcmp(property,"template")) {
msFree(php_class->class->template);
php_class->class->template = NULL;
} else
IF_SET_STRING("name", php_class->class->name, value)
else IF_SET_STRING("title", php_class->class->title, value)
else IF_SET_LONG("type", php_class->class->type, value)
Expand Down
5 changes: 5 additions & 0 deletions mapscript/php/layer.c
Expand Up @@ -343,6 +343,11 @@ PHP_METHOD(layerObj, __set)

php_layer = (php_layer_object *) zend_object_store_get_object(zobj TSRMLS_CC);

/* special case for "template" which we want to set to NULL and not an empty string */
if(Z_TYPE_P(value)==IS_NULL && !strcmp(property,"template")) {
msFree(php_layer->layer->template);
php_layer->layer->template = NULL;
} else
IF_SET_LONG("status", php_layer->layer->status, value)
else IF_SET_LONG("debug", php_layer->layer->debug, value)
else IF_SET_STRING("classitem", php_layer->layer->classitem, value)
Expand Down