Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 696ab6d939cc7bb56b651a0a3a4eaf41 > files > 12

php-shp-0.9.2-14.x86_64.rpm

--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-