[PHP-DEV] Bug #11645 Updated: tempnam( ) does not use TMP environment variable

2001-06-27 Thread danbeck

ID: 11645
Updated by: danbeck
Reported By: [EMAIL PROTECTED]
Old-Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

Documentation has been updated to reflect this issue.

Previous Comments:
---

[2001-06-24 17:02:10] [EMAIL PROTECTED]
This is documentation problem. The given path takes precedence over TMPDIR environment 
variable (not TMP environment variable as it is in docs)

From php4/main/php_open_temporary_file.c:

/* {{{ php_open_temporary_file
 *
 * Unlike tempnam(), the supplied dir argument takes precedence
 * over the TMPDIR environment variable
 * This function should do its best to return a file pointer to a newly created
 * unique file, on every platform.
 */

This makes the function behave the same way on every system.


---

[2001-06-24 14:17:51] [EMAIL PROTECTED]
The PHP manual states:

The behaviour of the tempnam() function is system dependent. On Windows the TMP 
environment variable will override the dir parameter.

However testing the following when my TMP env variable is set to WINDOWSTMP:

  print tempnam('/','z')

the result is:

  C:zB312.TMP

This used to work fine in PHP 4.0.4pl1.

Thanks again, John




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11645edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11645 Updated: tempnam( ) does not use TMP environment variable

2001-06-24 Thread sniper

ID: 11645
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Analyzed
Old-Bug Type: Filesystem function related
Bug Type: Documentation problem
Operating system: 
PHP Version: 4.0.6
Assigned To: 
Comments:

This is documentation problem. The given path takes precedence over TMPDIR environment 
variable (not TMP environment variable as it is in docs)

From php4/main/php_open_temporary_file.c:

/* {{{ php_open_temporary_file
 *
 * Unlike tempnam(), the supplied dir argument takes precedence
 * over the TMPDIR environment variable
 * This function should do its best to return a file pointer to a newly created
 * unique file, on every platform.
 */

This makes the function behave the same way on every system.


Previous Comments:
---

[2001-06-24 14:17:51] [EMAIL PROTECTED]
The PHP manual states:

The behaviour of the tempnam() function is system dependent. On Windows the TMP 
environment variable will override the dir parameter.

However testing the following when my TMP env variable is set to WINDOWSTMP:

  print tempnam('/','z')

the result is:

  C:zB312.TMP

This used to work fine in PHP 4.0.4pl1.

Thanks again, John




---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11645edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #11645 Updated: tempnam( ) does not use TMP environment variable

2001-06-24 Thread lenar


[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 ID: 11645
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Analyzed
 Old-Bug Type: Filesystem function related
 Bug Type: Documentation problem
 Operating system: 
 PHP Version: 4.0.6
 Assigned To: 
 Comments:
 
 This is documentation problem. The given path takes precedence over TMPDIR 
environment variable (not TMP environment variable as it is in docs)
This should be platform dependent. On Win32 it's usually TEMP (or TMP too with later 
wdozes) environment variable which specifies the location of directory for temporary 
files.
TMPDIR is used on linux (maybe other *nix too, don't know - propably).

This is suggestion for implementation/documentation change.

lenar.

 
 From php4/main/php_open_temporary_file.c:
 
 /* {{{ php_open_temporary_file
  *
  * Unlike tempnam(), the supplied dir argument takes precedence
  * over the TMPDIR environment variable
  * This function should do its best to return a file pointer to a newly created
  * unique file, on every platform.
  */
 
 This makes the function behave the same way on every system.
 
 
 Previous Comments:
 ---
 
 [2001-06-24 14:17:51] [EMAIL PROTECTED]
 The PHP manual states:
 
 The behaviour of the tempnam() function is system dependent. On Windows the TMP 
environment variable will override the dir parameter.
 
 However testing the following when my TMP env variable is set to WINDOWSTMP:
 
   print tempnam('/','z')
 
 the result is:
 
   C:zB312.TMP
 
 This used to work fine in PHP 4.0.4pl1.
 
 Thanks again, John
 
 
 
 
 ---
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=11645edit=2
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #11645 Updated: tempnam( ) does not use TMP environment variable

2001-06-24 Thread jeroen

 This is documentation problem.

=

This brings me to another point, since not-so-long-ago there is a
phpdoc/TODO file, and we would greatly appreciate it that an entry is added
whenever there is a substantial change to PHP which should be documented. Of
course, it'd even better if you instead update the docs yourself ;-).
Updating the TODO will increase the likelyhood that the documentation will
be updated soon. If you don't have Karma to phpdoc, get it, or simply mail
[EMAIL PROTECTED]

This also applies to documenation problems like this one. They should IMO at
least be cross-posted to phpdoc@, so the phpdoc ppl don't need to follow
phpdev.

Jeroen






-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] Bug #11645 Updated: tempnam( ) does not use TMP environment variable

2001-06-24 Thread Daniel Beckham

It's not so much that we can not go and view the open documentation bugs,
but that due to the very tiny number of documenation bugs that are
submitted, looking at it on a daily basis is a waste of time.

I imagine that, the reason it hasn't happened yet is due to technical
issues, but it's a very valid point.  It would be best if the documenation
bugs submitted were cc'ed to this list.

Daniel

- Original Message -
From: Jani Taskinen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, June 24, 2001 7:19 PM
Subject: [PHP-DOC] Re: [PHP-DEV] Bug #11645 Updated: tempnam( ) does not use
TMP environment variable



 You don't have to follow php-dev to catch these,
 just point your browser to this URL:


http://www.php.net/bugs.php?cmd=Display+Bugsstatus=Openbug_type=Documentat
ion+problemby=Any

 --Jani


 On Mon, 25 Jun 2001 [EMAIL PROTECTED] wrote:

  This is documentation problem.
 
 =
 
 This brings me to another point, since not-so-long-ago there is a
 phpdoc/TODO file, and we would greatly appreciate it that an entry is
added
 whenever there is a substantial change to PHP which should be documented.
Of
 course, it'd even better if you instead update the docs yourself ;-).
 Updating the TODO will increase the likelyhood that the documentation
will
 be updated soon. If you don't have Karma to phpdoc, get it, or simply
mail
 [EMAIL PROTECTED]
 
 This also applies to documenation problems like this one. They should IMO
at
 least be cross-posted to phpdoc@, so the phpdoc ppl don't need to follow
 phpdev.
 
 Jeroen
 
 
 
 
 
 
 





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]