php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #66591
Patch kill-tmpnam-usage.patch revision 2014-01-28 11:37 UTC by ondrej@php.net
revision 2014-01-28 11:19 UTC by ondrej@php.net

Patch kill-tmpnam-usage.patch for phpdbg Bug #66591

Patch version 2014-01-28 11:37 UTC

Return to Bug #66591 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions: 2014-01-28 11:37 UTC | 2014-01-28 11:19 UTC

Developer: ondrej@php.net



   			phpdbg_error("Unable to create temporary file");
   		}
  +#ifndef HAVE_MKSTEMP
  +		{
 +			char *ptr = mktemp(buf);
 +			char *ptr = mktemp(bp_tmp_file);
  +			tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600);
  +		}
  +#else
  +		{
 +			tfd = mkstemp(buf);
 +			tfd = mkstemp(bp_tmp_file);
  +		}
  +#endif
  +		if (tfd == -1) {
  +			phpdbg_error("Unable to create temporary file");
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 14:01:29 2024 UTC