Req #69489 [Opn]: tempnam() should raise notice if falling back to temp dir

From: Date: Mon, 20 Apr 2015 14:43:00 +0000
Subject: Req #69489 [Opn]: tempnam() should raise notice if falling back to temp dir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192243@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69489&edit=1

 ID:                 69489
 Updated by:         laruence@php.net
 Reported by:        cmb@php.net
 Summary:            tempnam() should raise notice if falling back to
                     temp dir
 Status:             Open
 Type:               Feature/Change Request
 Package:            Filesystem function related
 Operating System:   *
 PHP Version:        5.6.8
 Block user comment: N
 Private report:     N

 New Comment:

make sense to me, maybe you can make a PR for that?


Previous Comments:
------------------------------------------------------------------------
[2015-04-20 14:37:44] cmb@php.net

Description:
------------
As has been pointed out in bug #55804, tempnam() doesn't explicitly
indicate when it is falling back to the system's temp directory. It
might be appropriate to raise a notice in this case.

Test script:
---------------
<?php

tempnam('non/existing/directory', 'pre');

Expected result:
----------------
A file is created in the system's temp directory, and additionally a
notice is raised:

    Notice: tempnam(): file created in the system's temporary
    directory in ... on line ...

Actual result:
--------------
A file is created in the system's temp directory without any
notice.


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



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


Thread (7 messages)

« previous php.bugs (#192243) next »