note 126765 added to function.getmyuid

From: Date: Fri, 14 Jan 2022 11:10:10 +0000
Subject: note 126765 added to function.getmyuid
Groups: php.notes 
Request: Send a blank email to php-notes+get-217493@lists.php.net to get a copy of this message
warning, at least 7.4-8.1 returns the owner of the initial entrypoint file rather the currently executing file, meaning, if you have a.php owned by 1 containing <?php var_dump(getmyuid());require_once("b.php"); ?> and b.php owned by 2 containing <?php var_dump(getmyuid());require_once("a.php"); ?> running "php a.php" will get you int(1) int(1), and running "php b.php" will get you int(2) int(2), you won't get "int(1) int(2)" ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 84.48.252.146) ---- Manual Page -- https://php.net/manual/en/function.getmyuid.php Edit -- https://main.php.net/note/edit/126765 Del: integrated -- https://main.php.net/note/delete/126765/integrated Del: useless -- https://main.php.net/note/delete/126765/useless Del: bad code -- https://main.php.net/note/delete/126765/bad+code Del: spam -- https://main.php.net/note/delete/126765/spam Del: non-english -- https://main.php.net/note/delete/126765/non-english Del: in docs -- https://main.php.net/note/delete/126765/in+docs Del: other reasons-- https://main.php.net/note/delete/126765 Reject -- https://main.php.net/note/reject/126765 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217493) next »