--TEST-- Protect against null bytes in LOB filenames --SKIPIF-- --INI-- display_errors = On --FILE-- savefile("/tmp/abc\0def"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } echo "Test 2: Export\n"; try { $lob->export("/tmp/abc\0def"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECTF-- Test 1: Import OCILob::savefile(): Argument #1 ($filename) must not contain any null bytes Test 2: Export OCILob::export(): Argument #1 ($filename) must not contain any null bytes