Bug #10797: tmpfile() Does not work in version PHP4 only in PHP3

From: Date: Thu, 10 May 2001 17:24:27 +0000
Subject: Bug #10797: tmpfile() Does not work in version PHP4 only in PHP3
Groups: php.dev 
Request: Send a blank email to php-dev+get-54766@lists.php.net to get a copy of this message
From: jsh@so.estec.esa.nl 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

« previous php.dev (#54766) next »