ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] php tmpfile() bug ?
@ 2004-11-29 12:21 Artem Pastukhov
  2004-11-29 15:55 ` Mikhael Korneev
  0 siblings, 1 reply; 4+ messages in thread
From: Artem Pastukhov @ 2004-11-29 12:21 UTC (permalink / raw)
  To: community

Здравствуйте все,

Столкнулся на мастере 2.4 со странным багом

Пример из описания tmpfile():
<?php
$temp=tmpfile();
fwrite($temp, "writing to tempfile");
fseek($temp, 0);
echo fread($temp, 1024);
fclose($temp);
?>

Вылетает с ошибками:

Warning: fwrite(): supplied argument is not a valid stream resource 
in /var/www/html/test.php on line 3
 
 Warning: fseek(): supplied argument is not a valid stream resource 
in /var/www/html/test.php on line 4
 
 Warning: fread(): supplied argument is not a valid stream resource 
in /var/www/html/test.php on line 5
 
 Warning: fclose(): supplied argument is not a valid stream resource 
in /var/www/html/test.php on line 6

Вот такой вот глюк.
-- 
С уважением 
Артем Пастухов, past (at) yam.ru
YAM International

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-29 16:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 12:21 [Comm] php tmpfile() bug ? Artem Pastukhov
2004-11-29 15:55 ` Mikhael Korneev
2004-11-29 13:29   ` Artem Pastukhov
2004-11-29 16:50     ` Mikhael Korneev

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git