#21828 [Asn->Bgs]: printer_list doesn't list any printers

From: Date: Tue, 02 Dec 2003 22:27:20 +0000
Subject: #21828 [Asn->Bgs]: printer_list doesn't list any printers
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24064@lists.php.net to get a copy of this message
ID: 21828 Updated by: fmk@php.net Reported By: p dot williams at calvarytas dot com dot au -Status: Assigned +Status: Bogus Bug Type: PECL related Operating System: Win/XP PHP Version: 4.3.0 Assigned To: fmk New Comment: This is a security issue. Windows NT/2000/XP uses a gues account to run all web requests under IIS. This account does not have access to manage the printers, but it should be possible to print if the user has access to the printer. One way of 'correcting' this is to make sure the script that calls printer_list is executed by a user with enough rights. This can be done by disabling the anonymous aceces to the file. Previous Comments: ------------------------------------------------------------------------ [2003-07-27 12:24:47] arnaud@php.net This PECL so php 4.3.2 shouldn't have changed anything. ------------------------------------------------------------------------ [2003-07-27 10:25:06] nicos@php.net Any news ? does it work now with php4.3.3-rc2 ? ------------------------------------------------------------------------ [2003-02-27 20:41:21] iliaa@php.net The printer extension has been moved to PECL repository, changing the bug category accordingly. ------------------------------------------------------------------------ [2003-01-22 19:16:15] p dot williams at calvarytas dot com dot au should read printer_list(PRINTER_ENUM_LOCAL) ------------------------------------------------------------------------ [2003-01-22 19:12:16] p dot williams at calvarytas dot com dot au printer_list(PRINTER_NUM_LOCAL) does not return any printers. We have successfully used this function on a Win98/PWS configuration, but fails on Win/XP with IIS. I noted the advice in bug 14301 to install 4.3 but still no go. Any advice would be appreciated. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21828&edit=1

« previous php.pear.dev (#24064) next »