Package: php5-cli Version: 5.3.3-7+squeeze3 Severity: normal STDIN does not seem to be defined in CLI mode, despite the documentation (http://www.php.net/manual/en/features.commandline.io-streams.php). Same goes for STDOUT and STDERR. "The CLI SAPI defines a few constants for I/O streams to make programming for the command line a bit easier."
Test case: <?php $fd = STDIN; ?> Expected output: none Produced output: PHP Notice: Use of undefined constant STDIN - assumed 'STDIN' in - on line 2 Notice: Use of undefined constant STDIN - assumed 'STDIN' in - on line 2 PHP version string: PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40) -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages php5-cli depends on: ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libcomerr2 1.41.12-4stable1 common error description library ii libdb4.8 4.8.30-2 Berkeley v4.8 Database Libraries [ ii libgssapi-krb5-2 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - k ii libk5crypto3 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries - C ii libkrb5-3 1.8.3+dfsg-4squeeze1 MIT Kerberos runtime libraries ii libmagic1 5.04-5 File type determination library us ii libonig2 5.9.1-1 Oniguruma regular expressions libr ii libpcre3 8.02-1.1 Perl 5 Compatible Regular Expressi ii libqdbm14 1.8.77-4 QDBM Database Libraries [runtime] ii libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries ii libxml2 2.7.8.dfsg-2+squeeze1 GNOME XML library ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap ii php5-common 5.3.3-7+squeeze3 Common files for packages built fr ii tzdata 2011d-0squeeze1 time zone and daylight-saving time ii ucf 3.0025+nmu1 Update Configuration File: preserv ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime php5-cli recommends no packages. Versions of packages php5-cli suggests: ii php-pear 5.3.3-7+squeeze3 PEAR - PHP Extension and Applicati -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org