Skip to content

Commit fb35dfc

Browse files
committed
Register constants in userspace
1 parent 177f09a commit fb35dfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

geospatial.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ ZEND_GET_MODULE(geospatial)
7272
*/
7373
PHP_MINIT_FUNCTION(geospatial)
7474
{
75+
REGISTER_DOUBLE_CONSTANT("GEO_DEG_TO_RAD", GEO_DEG_TO_RAD, CONST_CS | CONST_PERSISTENT);
76+
REGISTER_DOUBLE_CONSTANT("GEO_EARTH_RADIUS", GEO_EARTH_RADIUS, CONST_CS | CONST_PERSISTENT);
7577
return SUCCESS;
7678
}
7779
/* }}} */

0 commit comments

Comments
 (0)