Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28427 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97213 invoked by uid 1010); 19 Mar 2007 15:43:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 97197 invoked from network); 19 Mar 2007 15:43:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2007 15:43:16 -0000 X-Host-Fingerprint: 147.229.212.212 a03-0106a.kn.vutbr.cz Received: from [147.229.212.212] ([147.229.212.212:4142] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7D/10-33476-19FAEF54 for ; Mon, 19 Mar 2007 10:43:14 -0500 Message-ID: <7D.10.33476.19FAEF54@pb1.pair.com> To: internals@lists.php.net Date: Mon, 19 Mar 2007 16:43:07 +0100 User-Agent: Thunderbird 1.5.0.10 (X11/20070313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 147.229.212.212 Subject: getpass() wrapper From: daniel@rozsnyo.com (Daniel Rozsnyo) Hello, I am working on a command line client (written in php, run by php-cli) and I'd like to use a password entry as in mysql client - with no echoing etc. I've found the function which I need: #include char *getpass( const char * prompt ); But in man getpass it is marked as "This function is obsolete. Do not use it.". More from the manpage: "Present in SUSv2, but marked LEGACY. Removed in POSIX.1-2001." Can this function be somehow included in next release of PHP, at least in coditional way so I can check its availability with function_exists? (a). Or I should patch my instance of PHP (b) or stick forever to a small binary written in C which then I call with backtick operator (c). What you recommend, developers of PHP ? regards, Daniel Rozsnyo