[PHP-DEV] Bug #10797: tmpfile() Does not work in version PHP4 only in PHP3 From: jsh <email protected>
Date: 05/10/01

From: jsh <email protected>
Operating system: Solaris 2.6
PHP version: 4.0.5
PHP Bug Type: Filesystem function related
Bug description: tmpfile() Does not work in version PHP4 only in PHP3

<?php
$MAIL_SERVER = "some.mail.server.com";
$FORWARD_TMP = tmpfile();

$connect = ftp_connect("$MAIL_SERVER");

ftp_fget($connect, "$FORWARD_TMP", ".forward", FTP_ASCII);

?>

Following code above give this error message:

Warning: Supplied argument is not a valid File-Handle resource in /export1/www/docs/users/jsh/testtmp.php on line 7

In PHP3 it works on Solaris 2.6

-- 
Edit Bug report at: http://bugs.php.net/?id=10797&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>