Bug #81447 [Opn->Csd]: php8.1-fpm ERROR: Unable to open primary script
From: bukka@php.net Date: Sat, 27 Nov 2021 22:59:56 +0000 Subject: Bug #81447 [Opn->Csd]: php8.1-fpm ERROR: Unable to open primary script References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-238012@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81447&edit=1
ID: 81447
Updated by: bukka@php.net
Reported by: vyboh at zoner dot com
Summary: php8.1-fpm ERROR: Unable to open primary script
-Status: Open
+Status: Closed
Type: Bug
Package: FPM related
Operating System: Debian 10.10
PHP Version: 8.1.0RC1
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
This has been fixed by https://github.com/php/php-src/commit/435a5aca899d1ab199cc224f533bb42f7e567ff8
Previous Comments:
------------------------------------------------------------------------
[2021-11-16 15:37:42] cmb@php.net
The following pull request has been associated:
Patch Name: Fix for bug in file handling refactor.
On GitHub: https://github.com/php/php-src/pull/7660
Patch: https://github.com/php/php-src/pull/7660.patch
------------------------------------------------------------------------
[2021-09-16 14:58:03] vyboh at zoner dot com
Description:
------------
I have file:
trialhosting:/# stat /www/sites/2/site75302/public_html/info.php
File: /www/sites/2/site75302/public_html/info.php
Size: 25 Blocks: 8 IO Block: 4096 regular file
Device: 851h/2129d Inode: 168047394 Links: 1
Access: (0660/-rw-rw----) Uid: (175302/site75302) Gid: (175302/site75302)
I called url: https://floyd.php5.cz/info.php
and then I hooked the php-fpm process
trialhosting:/# ltrace -S -s 200 -p 102770
(some lines skipped)
strcasecmp("files", "files")
= 0
strlen("/www/sites/2/site75302/public_html/info.php")
= 43
strlen(".php")
= 4
strcmp(".php", ".php")
= 0
strlen("/www/sites/2/site75302/public_html/info.php")
= 43
memcpy(0x7f1a7b002030, "/www/sites/2/site75302/public_html/info.php\0", 44)
= 0x7f1a7b002030
strlen("/www/sites/2/site75302/public_html")
= 34
strlen("/info.php")
= 9
memcpy(0x7f1a7b065000, "/www/sites/2/site75302/public_html", 34)
= 0x7f1a7b065000
strncpy(0x7f1a7b06503a, "/info.php", 10)
= 0x7f1a7b06503a
SYS_getcwd("/", 4096)
= 2
SYS_fcntl(3, 6, 0x7ffd03b8bb10, 0x65000)
= 0
strlen("ublic_html")
= 10
_setjmp(0x7ffd03b8c1b0, 0x7f1a7b000000, 0x7f1a7b002060, 0x7ffd03b8c010)
= 0
__errno_location()
= 0x7f1a7b3be1c0
strerror(0)
= "Success"
__ctype_b_loc()
= 0x7f1a7b3be1d8
strlen("/www/sites/2/site75302/public_html/info.php")
= 43
__ctype_b_loc()
= 0x7f1a7b3be1d8
strlen("Success")
= 7
memcpy(0x556f9b2ceed0, "Unable to open primary script:
/www/sites/2/site75302/public_html/info.php (Success)", 84) =
0x556f9b2ceed0
(some lines skipped)
In strlen("ublic_html") missing character "p" on the beginning.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81447&edit=1
Thread (3 messages)
- Bug #81447 [PATCH]: php8.1-fpm ERROR: Unable to open primary script
- Bug #81447 [Opn->Csd]: php8.1-fpm ERROR: Unable to open primary script
| « previous | php.bugs (#238012) | next » |
|---|