|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch kill-tmpnam-usage.patch for phpdbg Bug #66591Patch version 2014-01-28 11:19 UTC Return to Bug #66591 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions: 2014-01-28 11:37 UTC | 2014-01-28 11:19 UTCDeveloper: ondrej@php.net
phpdbg_error("Unable to create temporary file");
}
+#ifndef HAVE_MKSTEMP
+ {
+ char *ptr = mktemp(bp_tmp_file);
+ char *ptr = mktemp(buf);
+ tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600);
+ }
+#else
+ {
+ tfd = mkstemp(bp_tmp_file);
+ tfd = mkstemp(buf);
+ }
+#endif
+ if (tfd == -1) {
+ phpdbg_error("Unable to create temporary file");
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 13:00:01 2025 UTC |