Skip to content

Commit

Permalink
install PHPNG required file 'mapscript.php'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 28, 2020
1 parent 15cdb3a commit 610a8b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapscript/phpng/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ set_target_properties(${SWIG_MODULE_mapscript_REAL_NAME} PROPERTIES PREFIX "")

if(NOT WIN32)
install(TARGETS php_mapscriptng DESTINATION ${PHP_EXTENSION_DIR})
# install the required file containing MapServer constants and functions
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mapscript.php DESTINATION ${PHP_EXTENSION_DIR} COMPONENT dev)
endif()
2 changes: 2 additions & 0 deletions mapscript/phpng/php7module.i
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%module mapscriptng;

%pragma(php) phpinfo="
php_info_print_table_start();
php_info_print_table_row(2, \"MapServer Version\", msGetVersion());
Expand Down

0 comments on commit 610a8b6

Please sign in to comment.