]> granicus.if.org Git - php/commitdiff
Little detection change proposal.
authorDavid Carlier <devnexen@gmail.com>
Fri, 26 Apr 2019 21:56:08 +0000 (22:56 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sat, 27 Apr 2019 19:18:27 +0000 (21:18 +0200)
As pointed out, the further path is called by open rather than shm_open.

ext/opcache/config.m4

index 314a4fed3988625f6b64fd3b3454be08460ac151..149e7c6deeef91869ee290da6d77d30e828176b0 100644 (file)
@@ -294,7 +294,7 @@ int main() {
   char *shm;
   char tmpname[4096];
 
-  sprintf(tmpname,"/opcache.test.shm.%dXXXXXX", getpid());
+  sprintf(tmpname,"opcache.test.shm.%dXXXXXX", getpid());
   if (mktemp(tmpname) == NULL) {
     return 1;
   }