--TEST-- Testing shp_open() shp_close() --FILE-- <?php error_reporting(E_ALL & ~E_STRICT); if (!extension_loaded('shp')) dl('shp.so'); echo "Opening a file with rb+: "; $shph = shp_open("/tmp/lakes.shp", "rb"); var_dump($shph); echo "Closing a file: "; $res = shp_close($shph); var_dump($res); echo "\n-END-\n"; ?> --EXPECTF-- Opening a file with rb+: resource(%d) of type (SHP Handle) Closing a file: bool(true) -END-