--TEST-- Testing shp_read_object() shp_rewind_object() shp_destroy_object() --FILE-- --EXPECTF-- Opening again for reading: resource(%d) of type (SHP Handle) Reading object 0: resource(%d) of type (SHP Object) Destroying object 0: bool(true) Reading object 999999: Warning: shp_read_object(): Reading of object 999999 failed in %s on line %d NULL Extracting object 2 and rewinding: resource(%d) of type (SHP Object) bool(false) Now writing at the end (should generate an error because read only mode): Error in fseek() or fwrite(). int(-1) -END-