Browse Source

tempnam() creates an empty file..prevent them from going to /

migration/unlabaled-1.3.2
foobar 23 years ago
parent
commit
d7fde48f1d
  1. 3
      ext/interbase/tests/004.phpt
  2. 2
      ext/interbase/tests/interbase.inc

3
ext/interbase/tests/004.phpt

@ -20,8 +20,7 @@ InterBase: BLOB test
/* create 10k blob file */
$blob_str = rand_binstr(10*1024);
$name = tempnam("","blob.tmp");
$name = "blob.tmp";
$name = tempnam(dirname(__FILE__),"blob.tmp");
$ftmp = fopen($name,"w");
fwrite($ftmp,$blob_str);
fclose($ftmp);

2
ext/interbase/tests/interbase.inc

@ -8,7 +8,7 @@ srand((double)microtime()*1000000);
$test_base = dirname(__FILE__)."/ibase_test.tmp";
@unlink($test_base);
$name = dirname(__FILE__).tempnam("","CREATEDB");
$name = tempnam(dirname(__FILE__), "CREATEDB");
$ftmp = fopen($name,"w");
fwrite($ftmp,
"

Loading…
Cancel
Save