|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-19 17:45 UTC] rasmus@php.net
-Type: Bug
+Type: Feature/Change Request
[2012-05-19 17:45 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ The "copy" function can't copy files from /proc. This is the "configure" line I used to compile PHP. (Don't be misled by the value for "prefix"; I'm using PHP 5.3.13, not PHP 5.3.12.) ./configure --prefix=/usr/local/php/5.3.12 --disable-cgi --with- pgsql=shared,/usr --with-xmlrpc=shared --with-tidy=shared,/usr --with- mssql=shared,/usr --with-sqlite=shared,/usr --with-snmp=shared,/usr --with- xsl=shared,/usr --with-recode=shared,/usr --with-unixODBC=shared,/usr --with- pspell=shared,/usr --with-mysqli=shared,/usr/bin/mysql_config --with- mysql=shared,/usr --with-mcrypt=shared,/usr --with-ldap-sasl=/usr --with- ldap=shared,/usr --with-t1lib=shared,/usr --with-ttf=shared,/usr --enable- intl=shared --with-pdo-firebird=shared,/usr --with-interbase=shared,/usr --with- imap-ssl --with-freetype-dir=shared,/usr --with-png-dir=shared,/usr --with-xpm- dir=shared,/usr/X11R6 --with-jpeg-dir=shared,/usr --with-gmp=shared,/usr -- enable-gd-native-ttf --with-gd=shared,/usr --with-zlib-dir=/usr --with- enchant=shared,/usr --with-curl=shared,/usr --without-mm --with-mhash=yes -- enable-zip --enable-soap --with-openssl=/usr --with-kerberos=/usr --with-zlib -- with-libxml-dir=/usr --enable-wddx --enable-sockets --enable-shmop --with-pcre- regex=/usr --with-onig=/usr --enable-mbstring --with-gettext --enable-ftp -- enable-exif --with-iconv --without-gdbm --with-db4 --enable-ctype --with-bz2 -- enable-bcmath --enable-sysvmsg --enable-sysvshm --enable-sysvsem --enable- calendar --with-pic --disable-static --disable-rpath --with-regex=php --disable- debug --enable-pcntl --with-readline Test script: --------------- <?php copy("/proc/self/stat", "php://stdout"); Expected result: ---------------- I expect the script to print the contents of /proc/self/stat. Actual result: -------------- The script prints nothing.