ID:               22177
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: RedHat
 PHP Version:      4.3.0
 New Comment:

my 2c on this:

yes it worked in 4.2.3 ...

but even in 4.2.3 it didn't do what you wanted,
instead of creating a temp file with a unique
name (or better in addition to it) your fopen
statement opens a file by the name of the 
auto-converted resource number, so if you investigate
this you'll find out that your temporary files
are actualy namend by small numbers, and if
your code always opens the same resources
you'll even get temp files of *equal* names
by different script runs -> not what you want

so 4.3 now warns you about this were 4.3.2 
silently accepted it

"that same exact code block worked 100% under php 4.2.3."
is just not true, as it would create race conditions
if run simultaneous multiple times even in 4.2.3


"Thus one last question, looking at the code I initially posted, what
would be your suggestion if I may ask specifically tailored to my
problem?"

you've been told before in this thread: either use temnam() instead of
tmpfile(), or use the file handle resource returned by temfile() right
away instead of trying to perform unspecified operations on it ...


"I don't appreciate the RTFM remark, but I am glad you replied back. 
I
use the php manual extensively but have not seen that particular
link."

so you use functions without reading their specs and then complain
about them not working as you'd expect? strange concept ...




Previous Comments:
------------------------------------------------------------------------

[2003-02-11 18:28:06] [EMAIL PROTECTED]

Quote: "Now leave this bug as it should be for our stat system."

Now that too is much more of an intelligent remark than "user error". 
On that note: "Bogus".

------------------------------------------------------------------------

[2003-02-11 18:25:34] [EMAIL PROTECTED]

keep it "bogus" please.

------------------------------------------------------------------------

[2003-02-11 18:25:02] [EMAIL PROTECTED]

Thank you for the thank. Now leave this bug as it should be for our
stat system.

BOGUS !

------------------------------------------------------------------------

[2003-02-11 18:22:38] [EMAIL PROTECTED]

Thanks.

------------------------------------------------------------------------

[2003-02-11 18:22:02] [EMAIL PROTECTED]

For support:
http://www.php.net/support.php

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22177

-- 
Edit this bug report at http://bugs.php.net/?id=22177&edit=1

Reply via email to