Bug #77175 [NEW]: Old script executed after update
| From: | olafvdspek at gmail dot com | Date: | Mon, 19 Nov 2018 10:34:00 +0000 |
| Subject: | Bug #77175 [NEW]: Old script executed after update | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218041@lists.php.net to get a copy of this message | ||
From: olafvdspek at gmail dot com
Operating system: Debian 10
PHP version: 7.3.0RC5
Package: *General Issues
Bug Type: Bug
Bug description:Old script executed after update
Description:
------------
I've updated a script but PHP doesn't appear to detect this. Could it be
a caching issue?
The 'update' is a bit weird, I've replaced phpMyAdmin by Adminer.
/var/www/html/pma used to be a symlink to /srv/pma
Now it's a directory containing adminer's index.php:
https://github.com/vrana/adminer/releases/download/v4.6.3/adminer-4.6.3-mysql-en.php
Web server is nginx.
The request is for /var/www/html/pma/index.php.
> getcwd("/usr/share/phpmyadmin", 4095) = 22
Not sure why it does this.
> chdir("/var/www/html/pma") = 0
OK
> stat("/srv/pma/libraries/common.inc.php", {st_mode=S_IFREG|0644,
st_size=13837, ...}) = 0
Hmm, that's from the OLD script.
Test script:
---------------
https://github.com/vrana/adminer/releases/download/v4.6.3/adminer-4.6.3-mysql-en.php
Expected result:
----------------
200 OK
Actual result:
--------------
nginx log:
2018/11/19 11:25:41 [error] 12306#12306: *3 FastCGI sent in stderr: "PHP
message: PHP Warning: require_once(./libraries/vendor_config.php):
failed to open stream: No such file or directory in
/srv/pma/libraries/common.inc.php on line 74PHP message: PHP Fatal
error: require_once(): Failed opening required
'./libraries/vendor_config.php' (include_path='.:/usr/share/php') in
/srv/pma/libraries/common.inc.php on line 74" while reading response
header from upstream, client: 192.168.127.1, server: _, request: "GET
/pma/ HTTP/1.1", upstream:
"fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "unstable"
# strace -s 999 -p 917
strace: Process 917 attached
accept(9, {sa_family=AF_UNIX}, [112->2]) = 4
poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])
times({tms_utime=26, tms_stime=32, tms_cutime=0, tms_cstime=0}) =
1718394780
read(4, "\1\1\0\1\0\10\0\0", 8) = 8
read(4, "\0\1\0\0\0\0\0\0", 8) = 8
read(4, "\1\4\0\1\3\313\5\0", 8) = 8
read(4,
"\t\0PATH_INFO\17\33SCRIPT_FILENAME/var/www/html/pma/index.php\f\0QUERY_STRING\16\3REQUEST_METHODGET\f\0CONTENT_TYPE\16\0CONTENT_LENGTH\v\16SCRIPT_NAME/pma/index.php\v\5REQUEST_URI/pma/\f\16DOCUMENT_URI/pma/index.php\r\rDOCUMENT_ROOT/var/www/html\17\10SERVER_PROTOCOLHTTP/1.1\16\4REQUEST_SCHEMEhttp\21\7GATEWAY_INTERFACECGI/1.1\17\fSERVER_SOFTWAREnginx/1.14.1\v\rREMOTE_ADDR192.168.127.1\v\5REMOTE_PORT64518\v\17SERVER_ADDR192.168.127.135\v\2SERVER_PORT80\v\1SERVER_NAME_\17\3REDIRECT_STATUS200\t\10HTTP_HOSTunstable\17\nHTTP_CONNECTIONkeep-alive\22\tHTTP_CACHE_CONTROLmax-age=0\22\36HTTP_AUTHORIZATIONBasic
cm9vdDp0ODFsZW8wQmNpbWk=\36\1HTTP_UPGRADE_INSECURE_REQUESTS1\17sHTTP_USER_AGENTMozilla/5.0
(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/70.0.3538.102
Safari/537.36\vUHTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\24\rHTTP_ACCEPT_ENCODINGgzip,
deflate\24\27HTTP_ACCEPT_LANGUAGEen-US,en;q=0.9,nl;q=0.8\v2HTTP_COOKIEpma_lang=en;
phpMyAdmin=i7sk4evlhdcld3s7aun6mm7ds0\0\0\0\0\0", 976) = 976
read(4, "\1\4\0\1\0\0\0\0", 8) = 8
lstat("/var/www/html/pma/index.php", {st_mode=S_IFREG|0644,
st_size=208150, ...}) = 0
lstat("/var/www/html/pma", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat("/var/www/html", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
rt_sigaction(SIGPROF, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGHUP, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGINT, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGUSR1, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
rt_sigaction(SIGUSR2, NULL, {sa_handler=0x5573360402a0, sa_mask=~[ILL
TRAP ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, 8) = 0
setitimer(ITIMER_PROF, {it_interval={tv_sec=0, tv_usec=0},
it_value={tv_sec=60, tv_usec=0}}, NULL) = 0
rt_sigaction(SIGPROF, {sa_handler=0x5573360402a0, sa_mask=~[ILL TRAP
ABRT BUS FPE KILL SEGV CONT STOP TSTP TTIN TTOU SYS RTMIN RT_1],
sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f18207b6fc0}, NULL, 8) =
0
rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0
getcwd("/usr/share/phpmyadmin", 4095) = 22
chdir("/var/www/html/pma") = 0
setitimer(ITIMER_PROF, {it_interval={tv_sec=0, tv_usec=0},
it_value={tv_sec=30, tv_usec=0}}, NULL) = 0
fcntl(3, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1,
l_len=1}) = 0
stat("/srv/pma/index.php", {st_mode=S_IFREG|0644, st_size=20359, ...}) =
0
getcwd("/var/www/html/pma", 4096) = 18
stat("/srv/pma/libraries/common.inc.php", {st_mode=S_IFREG|0644,
st_size=13837, ...}) = 0
getcwd("/var/www/html/pma", 4096) = 18
getcwd("/var/www/html/pma", 4096) = 18
lstat("/var/www/html/pma/./libraries/vendor_config.php", 0x7fff12726dc0)
= -1 ENOENT (No such file or directory)
getcwd("/var/www/html/pma", 4096) = 18
lstat("/var/www/html/pma/./libraries/vendor_config.php", 0x7fff12726c60)
= -1 ENOENT (No such file or directory)
getcwd("/var/www/html/pma", 4096) = 18
lstat("/var/www/html/pma/./libraries/vendor_config.php", 0x7fff12727dd0)
= -1 ENOENT (No such file or directory)
lstat("/var/www/html/pma/./libraries", 0x7fff12727c50) = -1 ENOENT (No
such file or directory)
openat(AT_FDCWD, "/var/www/html/pma/libraries/vendor_config.php",
O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "NOTICE: PHP message: PHP Warning:
require_once(./libraries/vendor_config.php): failed to open stream: No
such file or directory in /srv/pma/libraries/common.inc.php on line
74\n", 177) = 177
write(2, "NOTICE: PHP message: PHP Fatal error: require_once(): Failed
opening required './libraries/vendor_config.php'
(include_path='.:/usr/share/php') in /srv/pma/libraries/common.inc.php
on line 74\n", 193) = 193
chdir("/usr/share/phpmyadmin") = 0
times({tms_utime=26, tms_stime=32, tms_cutime=0, tms_cstime=0}) =
1718394782
write(2, "\0", 1) = 1
setitimer(ITIMER_PROF, {it_interval={tv_sec=0, tv_usec=0},
it_value={tv_sec=0, tv_usec=0}}, NULL) = 0
fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0,
l_len=0}) = 0
write(4, "\1\7\0\1\1`\0\0PHP message: PHP Warning:
require_once(./libraries/vendor_config.php): failed to open stream: No
such file or directory in /srv/pma/libraries/common.inc.php on line
74PHP message: PHP Fatal error: require_once(): Failed opening required
'./libraries/vendor_config.php' (include_path='.:/usr/share/php') in
/srv/pma/libraries/common.inc.php on line 74\1\6\0\1\0M\3\0Status: 500
Internal Server Error\r\nContent-type: text/html;
charset=UTF-8\r\n\r\n\0\0\0\1\3\0\1\0\10\0\0\0\0\0\0\0HTG", 464) = 464
shutdown(4, SHUT_WR) = 0
recvfrom(4, "\1\5\0\1\0\0\0\0", 8, 0, NULL, NULL) = 8
recvfrom(4, "", 8, 0, NULL, NULL) = 0
close(4) = 0
setitimer(ITIMER_PROF, {it_interval={tv_sec=0, tv_usec=0},
it_value={tv_sec=0, tv_usec=0}}, NULL) = 0
accept(9,
--
Edit bug report at https://bugs.php.net/bug.php?id=77175&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77175&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77175&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77175&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77175&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77175&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77175&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77175&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77175&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77175&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77175&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77175&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77175&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77175&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77175&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77175&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77175&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77175&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77175&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77175&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77175&r=mysqlcfg