note 112003 added to function.setproctitle

From: Date: Sun, 21 Apr 2013 05:16:05 +0000
Subject: note 112003 added to function.setproctitle
Groups: php.notes 
Request: Send a blank email to php-notes+get-194579@lists.php.net to get a copy of this message
Note that this extension is considered buggy. See https://wiki.php.net/rfc/cli_process_title, which says: "...but it is incomplete and might lead to memory corruption on Linux (or any OS which does not support setproctitle. The reason is the extension only has access to original argv[0] (that comes from main()). argv and environ(7) are in contiguous memory space on Linux. The extension presumes that argv[0] can accomodate 128 characters, but usually that is not possible because argv[0] is “php”. When this happens, the extension will scribble on argv[1], argv[2], etc., and maybe even environ and this can have destructive side effects on the running program." ---- Server IP: 69.147.83.199 Probable Submitter: 72.82.170.215 ---- Manual Page -- http://php.net/manual/en/function.setproctitle.php Edit -- https://master.php.net/note/edit/112003 Del: integrated -- https://master.php.net/note/delete/112003/integrated Del: useless -- https://master.php.net/note/delete/112003/useless Del: bad code -- https://master.php.net/note/delete/112003/bad+code Del: spam -- https://master.php.net/note/delete/112003/spam Del: non-english -- https://master.php.net/note/delete/112003/non-english Del: in docs -- https://master.php.net/note/delete/112003/in+docs Del: other reasons-- https://master.php.net/note/delete/112003 Reject -- https://master.php.net/note/reject/112003 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194579) next »