Test results for 4.3.7 [failed]

From: Date: Fri, 02 Jul 2004 23:53:49 +0000
Subject: Test results for 4.3.7 [failed]
Groups: php.qa 
Request: Send a blank email to php-qa+get-18836@lists.php.net to get a copy of this message
===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- bug compatibility: unset($c) with enabled register_globals [ext/session/tests/007.phpt] ===================================================================== ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 77 Exts tested : 10 --------------------------------------------------------------------- Number of tests : 596 Tests skipped : 281 (47.1%) Tests warned : 0 ( 0.0%) Tests failed : 1 ( 0.2%) Tests passed : 314 (52.7%) --------------------------------------------------------------------- Time taken : 31 seconds ===================================================================== ================================================================================ /usr/local/src/php-4.3.7/ext/session/tests/007.phpt ================================================================================ ---- EXPECTED OUTPUT float(3.14) array(1) { ["c"]=> &float(3.14) } float(3.14) array(1) { ["c"]=> &float(3.14) } ---- ACTUAL OUTPUT string(23) "/usr/local/apache2/conf" array(1) { ["c"]=> &string(23) "/usr/local/apache2/conf" } string(23) "/usr/local/apache2/conf" array(1) { ["c"]=> &string(23) "/usr/local/apache2/conf" } ---- FAILED ================================================================================ 001- float(3.14) 001+ string(23) "/usr/local/apache2/conf" 004- &float(3.14) 004+ &string(23) "/usr/local/apache2/conf" 006- float(3.14) 006+ string(23) "/usr/local/apache2/conf" 009- &float(3.14) 009+ &string(23) "/usr/local/apache2/conf" ================================================================================ ================================================================================ BUILD ENVIRONMENT ================================================================================ OS: Linux - Linux burly 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686 Automake: automake (GNU automake) 1.6.3 Written by Tom Tromey <tromey@redhat.com>. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Autoconf: autoconf (GNU Autoconf) 2.53 Written by David J. MacKenzie and Akim Demaille. Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libtool: ltmain.sh (GNU libtool) 1.4.3 (1.922.2.110 2002/10/23 01:39:54) Compiler: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) Bison: bison (GNU Bison) 1.35 Copyright 1984, 1986, 1989, 1992, 2000, 2001, 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Libraries: libcrypt.so.1 => /lib/libcrypt.so.1 (0x4002f000) libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x4005d000) libresolv.so.2 => /lib/libresolv.so.2 (0x40093000) libm.so.6 => /lib/i686/libm.so.6 (0x400a5000) libdl.so.2 => /lib/libdl.so.2 (0x400c7000) libnsl.so.1 => /lib/libnsl.so.1 (0x400ca000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libz.so.1 => /usr/lib/libz.so.1 (0x400e0000) libnss_files.so.2 => /lib/libnss_files.so.2 (0x400ee000) libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x400f8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) User's E-mail: relay at pobox dot com ================================================================================ PHPINFO ================================================================================ phpinfo() PHP Version => 4.3.7 System => Linux burly 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686 Build Date => Jul 2 2004 16:28:27 Configure Command => './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr' '--with-gettext' '--with-xml' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/lib/php.ini PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies _______________________________________________________________________ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => On => On allow_url_fopen => On => On always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => On => On display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => 2039 => 2039 expose_php => On => On extension_dir => ./ => ./ file_uploads => On => On gpc_order => GPC => GPC highlight.bg => #FFFFFF => #FFFFFF highlight.comment => #FF8000 => #FF8000 highlight.default => #0000BB => #0000BB highlight.html => #000000 => #000000 highlight.keyword => #007700 => #007700 highlight.string => #DD0000 => #DD0000 html_errors => Off => On ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => Off => Off log_errors_max_len => 1024 => 1024 magic_quotes_gpc => On => On magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off max_execution_time => 0 => 30 max_input_time => 60 => 60 open_basedir => no value => no value output_buffering => 0 => no value output_handler => no value => no value post_max_size => 8M => 8M precision => 12 => 12 register_argc_argv => On => On register_globals => Off => Off report_memleaks => On => On safe_mode => Off => Off safe_mode_exec_dir => no value => no value safe_mode_gid => Off => Off safe_mode_include_dir => no value => no value sendmail_from => no value => no value sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => 100 => 100 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sql.safe_mode => Off => Off track_errors => Off => Off unserialize_callback_func => no value => no value upload_max_filesize => 2M => 2M upload_tmp_dir => no value => no value user_dir => no value => no value variables_order => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off y2k_compliance => On => On ctype ctype functions => enabled gettext GetText Support => enabled mysql MySQL Support => enabled Active Persistent Links => 0 Active Links => 0 Client API version => 4.0.17 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /var/lib/mysql/mysql.sock MYSQL_INCLUDE => -I/usr/include/mysql MYSQL_LIBS => -L/usr/lib -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => 60 => 60 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => no value => no value mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off overload User-Space Object Overloading Support => enabled pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 4.5 01-December-2003 posix Revision => $Revision: 1.51.2.2 $ session Session Support => enabled Registered save handlers => files user Directive => Local Value => Master Value session.auto_start => Off => Off session.bug_compat_42 => On => On session.bug_compat_warn => On => On session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => Off => Off session.entropy_file => no value => no value session.entropy_length => 0 => 0 session.gc_divisor => 100 => 100 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => /tmp => /tmp session.serialize_handler => php => php session.use_cookies => On => On session.use_only_cookies => Off => Off session.use_trans_sid => Off => Off standard Regex Library => Bundled library enabled Dynamic Library Support => enabled Path to sendmail => /usr/sbin/sendmail -t -i Directive => Local Value => Master Value assert.active => 1 => 1 assert.bail => 0 => 0 assert.callback => no value => no value assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 60 => 60 safe_mode_allowed_env_vars => PHP_ => PHP_ safe_mode_protected_env_vars => LD_LIBRARY_PATH => LD_LIBRARY_PATH url_rewriter.tags => a=href,area=href,frame=src,input=src,form=,fieldset= => a=href,area=href,frame=src,input=src,form=,fieldset= user_agent => no value => no value tokenizer Tokenizer Support => enabled xml XML Support => active XML Namespace Support => active EXPAT Version => 1.95.6 Additional Modules Module Name Environment Variable => Value SUPPORTED => en_US.UTF-8:en_US:en HOSTNAME => burly TEST_PHP_SRCDIR => /usr/local/src/php-4.3.7 IFS => PVM_RSH => /usr/bin/rsh TERM => screen SHELL => /bin/sh HISTSIZE => 1000 MAKEFLAGS => BOX_LIST => aristotle burly onasis uni westnile prion BASH => /bin/sh QTDIR => /usr/lib/qt3-gcc3.2 HISTFILESIZE => 1000 USER => root EUID => 0 SCRIPT_FILENAME => MAILCHECK => 60 PVM_ROOT => /usr/share/pvm3 HOSTTYPE => i686 USERNAME => root MAKELEVEL => 1 COLUMNS => 85 MFLAGS => FTP_PASSIVE => 1 PATH => /usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/root/bin MAIL => /var/spool/mail/root OPTIND => 1 _ => /usr/local/src/php-4.3.7/sapi/cli/php OPTERR => 1 PWD => /usr/local/src/php-4.3.7 a => /usr/local/apache2 INPUTRC => /etc/inputrc c => /usr/local/apache2/conf LANG => C TEST_PHP_EXECUTABLE => /usr/local/src/php-4.3.7/sapi/cli/php REDIRECT_STATUS => LAMHELPFILE => /etc/lam/lam-helpfile i => libphp4.so LINES => 61 PATH_TRANSLATED => SSH_ASKPASS => /usr/libexec/openssh/gnome-ssh-askpass l => /usr/local/apache2/logs PS4 => + HOME => /root SHLVL => 3 CONTENT_LENGTH => OSTYPE => linux-gnu XPVM_ROOT => /usr/share/pvm3/xpvm BASH_ENV => /root/.bashrc LOGNAME => root MACHTYPE => i686-pc-linux-gnu QUERY_STRING => UID => 0 LESSOPEN => |/usr/bin/lesspipe.sh %s PROMPT_COMMAND => echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\033\\" CONTENT_TYPE => DISPLAY => :0.0 CC => gcc REQUEST_METHOD => RSYNC_RSH => /usr/bin/ssh G_BROKEN_FILENAMES => 1 langfile => /root/.i18n HISTFILE => /root/.bash_history XAUTHORITY => /root/.xauthIZxleQ BASH_VERSION => 2.05b.0(1)-release les => () { less $* } set_classpath => () { echo Setting javas CLASSPATH; CLASSPATH=find /usr/local/java -follow -type f -a -name "[a-zA-Z]*zip" -o -name "[a-zA-Z]*jar" -print|perl -ne 'unless (/demo/i || /example/i) {s/\n/:/; print}'; echo "new CLASSPATH=$CLASSPATH" } lcd => () { FILE=locate $1|egrep "${1}$"|head -1; echo "geussing where you want go where $FILE lives"; cd dirname $FILE; echo -ne "YOU MAY BE AT THE WRONG STOP - you are at: "; pwd } _magic_cd => () { cd $1; pwd } lart => () { ls -lart } ul => () { cd /usr/local; pwd } C => () { echo "Using type -path javac to compile"; javac $* } rs => () { eval resize } Fsort => () { sort -rn +4 -5 - } mplay => () { mpg123 -C -@ $* } sps => () { PS1="> " } _id => () { echo "id is:"; echo " id"; echo "machine is:"; echo " uname -a" } uls => () { cd /usr/local/src; pwd } J => () { echo "Using type -path java to run"; java $(basename $* .java) } uunet => () { cd ~/src; mftp ftp.uu.net } getmime => () { ftp -n ftp.isi.edu <<eof u ftp tonyh@ cd /in-notes/iana/assignments/media-types bin hash get media-types ~/in/MIME.types quit eof } biguns => () { find $1 -mount -size +${2:-2000} -exec ls -ld {} \; } llll => () { if [ $* ]; then for i in $*; do echo $(hostname):$(\ls pwd/$i); done; else echo $(hostname):pwd; fi } vstd => () { vi /etc/profile.d/std.aliases.* } _screen => () { export AUTOSCREEN=~/env/autoscreen.txt; if [ -f $AUTOSCREEN ]; then wxcopy -display $DISPLAY --cutbuffer 0 <$AUTOSCREEN; else echo ""; fi; screen -RADO } sec2date => () { eval date -d \'1970-01-01 + $1 sec\' +\"%Y-%m-%d %T %z\" } ulj => () { cd /usr/local/java; pwd } lll => () { if [ $* ]; then for i in $*; do \ls pwd/$i; done; else pwd; fi } cdlist => () { perl -e '$end = 30;for (1 .. $end) {print "$_" . ($_ < $end ? "," : "\n") ;}' } ull => () { cd /usr/local/lib; pwd } Fuser => () { if [[ "${LOGNAME}" != "root" ]]; then echo "Need to be root to read /dev/kmem."; return; fi; typeset -L RESPONSE; RESPONSE=fuser $1 2>/dev/null; if [ -n "${RESPONSE}" ]; then ps -f -p "$RESPONSE"; else echo "No processes associated with $1"; fi } ulb => () { cd /usr/local/bin; pwd } fmp => () { fold $1 | mpage -4 | lpr } le => () { less $* } b => () { _magic_cd ~/bin } d => () { banner date +%m/%d } untar_and_cd => () { j=tar ztvf $1|perl -ane '$F[5] =~ s!/.*$!!;print "$F[5]\n";'|head -1; tar zxf $1; cd $j; pwd } ll => () { lart } prep => () { cd ~/src; mftp prep.ai.mit.edu } ldot => () { ls -al $1 | perl -n -e 'if ( /^-/ ) {split;if (@_[-1] =~ /^\..*$/) {print "@_[-1] \n";}}' } pst => () { ps -ef | grep $LOGIN | grep -v grep } cv => () { echo "Using type -path javac to compile verbose"; javac -verbose $* 2>&1 | less } _su => () { OS=uname -s; echo "in case you want to come back ($OS):"; pwd; if [ $# -ne 0 -o X$OS = XLinux ]; then su - $*; else if [ X$OS = XFreeBSD -o X$OS = XOpenBSD]; then su - root -c "exec /usr/bin/env bash -ao emacs"; else ( LOGNAME=root; USER=root; su - root -c "exec /usr/bin/ksh -ao emacs" ); fi; fi } p => () { _magic_cd ~/src/perlmod } cpan => () { echo "Starting the interactive CPAN shell"; perl -MCPAN -e shell } pushenv => () { cd ~/env; make env; cd; scp -r .profile .bashrc .shosts env $1: } sbiguns => () { biguns $1 $2 | Fsort } vp => () { vi ~/.profile } r => () { eval resize } pd => () { echo "starting perl in debug mode, lib ~/bin and ~/perl/lib are included"; perl -I$HOME/bin -I$HOME/perl/lib -de 34 } _ps => () { ps -wweo pid,pgid,user,group,args --sort user } mc => () { mkdir -p $HOME/.mc/tmp 2>/dev/null; chmod 700 $HOME/.mc/tmp; MC=$HOME/.mc/tmp/mc-$$; /usr/bin/mc -P "$@" >"$MC"; cd "cat $MC"; /bin/rm -f "$MC"; unset MC } nag => () { links http://nag } x => () { echo $* } pwau => () { for i in $*; do perl -e '(($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwnam($ARGV[0])) or die "no user: $ARGV[0]\n"; print "useradd -m -d $dir -c \"$gcos\" -u $uid -s $shell $ARGV[0]\n";' $i; done } sp => () { . ~/.profile } ss => () { _magic_cd ~/src } oggplay => () { ogg123 -C -@ $* } roar => () { ssh tony@freja.roarmouse.org } pse => () { ps -ef | egrep -i $1 | grep -v grep } srcprep => () { for i in ls -1 ${1}*; do ( echo $i | egrep "gz$" ) && tartarget=$i; ( echo $i | egrep "readme$" ) && readmetarget=$i; done; startPWD=pwd; echo "The File to untar is: $tartarget "; echo "The readme file is: $readmetarget "; echo "The structure of the tar file is:"; [ -a $i ] || ( zcat ${1}*gz | tar -tvf - | head ); echo "Should I create a $1 directory to extract the tar file in [ y or n ]?"; read loosetar; ( [ "y" = $loosetar ] && mkdir $1 && mv $tartarget $1 && mv $readmetarget $1 ) && cd $i && ( zcat ${1}*gz | tar -xvf - ); ( [ "y" = $loosetar ] || ( zcat ${1}*gz | tar -xvf - ) ); mv $tartarget $startPWD/used.tar.files && echo "moved $tartarget to $startPWD/used.tar.files" } Fsum => () { awk '{ s+=$5 } END {print s, "bytes" }' } PHP Variables Variable => Value _SERVER["SUPPORTED"] => en_US.UTF-8:en_US:en _SERVER["HOSTNAME"] => burly _SERVER["TEST_PHP_SRCDIR"] => /usr/local/src/php-4.3.7 _SERVER["IFS"] => _SERVER["PVM_RSH"] => /usr/bin/rsh _SERVER["TERM"] => screen _SERVER["SHELL"] => /bin/sh _SERVER["HISTSIZE"] => 1000 _SERVER["MAKEFLAGS"] => _SERVER["BOX_LIST"] => aristotle burly onasis uni westnile prion _SERVER["BASH"] => /bin/sh _SERVER["QTDIR"] => /usr/lib/qt3-gcc3.2 _SERVER["HISTFILESIZE"] => 1000 _SERVER["USER"] => root _SERVER["EUID"] => 0 _SERVER["SCRIPT_FILENAME"] => _SERVER["MAILCHECK"] => 60 _SERVER["PVM_ROOT"] => /usr/share/pvm3 _SERVER["HOSTTYPE"] => i686 _SERVER["USERNAME"] => root _SERVER["MAKELEVEL"] => 1 _SERVER["COLUMNS"] => 85 _SERVER["MFLAGS"] => _SERVER["FTP_PASSIVE"] => 1 _SERVER["PATH"] => /usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/root/bin _SERVER["MAIL"] => /var/spool/mail/root _SERVER["OPTIND"] => 1 _SERVER["_"] => /usr/local/src/php-4.3.7/sapi/cli/php _SERVER["OPTERR"] => 1 _SERVER["PWD"] => /usr/local/src/php-4.3.7 _SERVER["a"] => /usr/local/apache2 _SERVER["INPUTRC"] => /etc/inputrc _SERVER["c"] => /usr/local/apache2/conf _SERVER["LANG"] => C _SERVER["TEST_PHP_EXECUTABLE"] => /usr/local/src/php-4.3.7/sapi/cli/php _SERVER["REDIRECT_STATUS"] => _SERVER["LAMHELPFILE"] => /etc/lam/lam-helpfile _SERVER["i"] => libphp4.so _SERVER["LINES"] => 61 _SERVER["PATH_TRANSLATED"] => _SERVER["SSH_ASKPASS"] => /usr/libexec/openssh/gnome-ssh-askpass _SERVER["l"] => /usr/local/apache2/logs _SERVER["PS4"] => + _SERVER["HOME"] => /root _SERVER["SHLVL"] => 3 _SERVER["CONTENT_LENGTH"] => _SERVER["OSTYPE"] => linux-gnu _SERVER["XPVM_ROOT"] => /usr/share/pvm3/xpvm _SERVER["BASH_ENV"] => /root/.bashrc _SERVER["LOGNAME"] => root _SERVER["MACHTYPE"] => i686-pc-linux-gnu _SERVER["QUERY_STRING"] => _SERVER["UID"] => 0 _SERVER["LESSOPEN"] => |/usr/bin/lesspipe.sh %s _SERVER["PROMPT_COMMAND"] => echo -ne \"\\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\\033\\\\\" _SERVER["CONTENT_TYPE"] => _SERVER["DISPLAY"] => :0.0 _SERVER["CC"] => gcc _SERVER["REQUEST_METHOD"] => _SERVER["RSYNC_RSH"] => /usr/bin/ssh _SERVER["G_BROKEN_FILENAMES"] => 1 _SERVER["langfile"] => /root/.i18n _SERVER["HISTFILE"] => /root/.bash_history _SERVER["XAUTHORITY"] => /root/.xauthIZxleQ _SERVER["BASH_VERSION"] => 2.05b.0(1)-release _SERVER["les"] => () { less $* } _SERVER["set_classpath"] => () { echo Setting javas CLASSPATH; CLASSPATH=find /usr/local/java -follow -type f -a -name \"[a-zA-Z]*zip\" -o -name \"[a-zA-Z]*jar\" -print|perl -ne \'unless (/demo/i || /example/i) {s/\\n/:/; print}\'; echo \"new CLASSPATH=$CLASSPATH\" } _SERVER["lcd"] => () { FILE=locate $1|egrep \"${1}$\"|head -1; echo \"geussing where you want go where $FILE lives\"; cd dirname $FILE; echo -ne \"YOU MAY BE AT THE WRONG STOP - you are at: \"; pwd } _SERVER["_magic_cd"] => () { cd $1; pwd } _SERVER["lart"] => () { ls -lart } _SERVER["ul"] => () { cd /usr/local; pwd } _SERVER["C"] => () { echo \"Using type -path javac to compile\"; javac $* } _SERVER["rs"] => () { eval resize } _SERVER["Fsort"] => () { sort -rn +4 -5 - } _SERVER["mplay"] => () { mpg123 -C -@ $* } _SERVER["sps"] => () { PS1=\"> \" } _SERVER["_id"] => () { echo \"id is:\"; echo \" id\"; echo \"machine is:\"; echo \" uname -a\" } _SERVER["uls"] => () { cd /usr/local/src; pwd } _SERVER["J"] => () { echo \"Using type -path java to run\"; java $(basename $* .java) } _SERVER["uunet"] => () { cd ~/src; mftp ftp.uu.net } _SERVER["getmime"] => () { ftp -n ftp.isi.edu <<eof u ftp tonyh@ cd /in-notes/iana/assignments/media-types bin hash get media-types ~/in/MIME.types quit eof } _SERVER["biguns"] => () { find $1 -mount -size +${2:-2000} -exec ls -ld {} \\; } _SERVER["llll"] => () { if [ $* ]; then for i in $*; do echo $(hostname):$(\\ls pwd/$i); done; else echo $(hostname):pwd; fi } _SERVER["vstd"] => () { vi /etc/profile.d/std.aliases.* } _SERVER["_screen"] => () { export AUTOSCREEN=~/env/autoscreen.txt; if [ -f $AUTOSCREEN ]; then wxcopy -display $DISPLAY --cutbuffer 0 <$AUTOSCREEN; else echo \"\"; fi; screen -RADO } _SERVER["sec2date"] => () { eval date -d \\\'1970-01-01 + $1 sec\\\' +\\\"%Y-%m-%d %T %z\\\" } _SERVER["ulj"] => () { cd /usr/local/java; pwd } _SERVER["lll"] => () { if [ $* ]; then for i in $*; do \\ls pwd/$i; done; else pwd; fi } _SERVER["cdlist"] => () { perl -e \'$end = 30;for (1 .. $end) {print \"$_\" . ($_ < $end ? \",\" : \"\\n\") ;}\' } _SERVER["ull"] => () { cd /usr/local/lib; pwd } _SERVER["Fuser"] => () { if [[ \"${LOGNAME}\" != \"root\" ]]; then echo \"Need to be root to read /dev/kmem.\"; return; fi; typeset -L RESPONSE; RESPONSE=fuser $1 2>/dev/null; if [ -n \"${RESPONSE}\" ]; then ps -f -p \"$RESPONSE\"; else echo \"No processes associated with $1\"; fi } _SERVER["ulb"] => () { cd /usr/local/bin; pwd } _SERVER["fmp"] => () { fold $1 | mpage -4 | lpr } _SERVER["le"] => () { less $* } _SERVER["b"] => () { _magic_cd ~/bin } _SERVER["d"] => () { banner date +%m/%d } _SERVER["untar_and_cd"] => () { j=tar ztvf $1|perl -ane \'$F[5] =~ s!/.*$!!;print \"$F[5]\\n\";\'|head -1; tar zxf $1; cd $j; pwd } _SERVER["ll"] => () { lart } _SERVER["prep"] => () { cd ~/src; mftp prep.ai.mit.edu } _SERVER["ldot"] => () { ls -al $1 | perl -n -e \'if ( /^-/ ) {split;if (@_[-1] =~ /^\\..*$/) {print \"@_[-1] \\n\";}}\' } _SERVER["pst"] => () { ps -ef | grep $LOGIN | grep -v grep } _SERVER["cv"] => () { echo \"Using type -path javac to compile verbose\"; javac -verbose $* 2>&1 | less } _SERVER["_su"] => () { OS=uname -s; echo \"in case you want to come back ($OS):\"; pwd; if [ $# -ne 0 -o X$OS = XLinux ]; then su - $*; else if [ X$OS = XFreeBSD -o X$OS = XOpenBSD]; then su - root -c \"exec /usr/bin/env bash -ao emacs\"; else ( LOGNAME=root; USER=root; su - root -c \"exec /usr/bin/ksh -ao emacs\" ); fi; fi } _SERVER["p"] => () { _magic_cd ~/src/perlmod } _SERVER["cpan"] => () { echo \"Starting the interactive CPAN shell\"; perl -MCPAN -e shell } _SERVER["pushenv"] => () { cd ~/env; make env; cd; scp -r .profile .bashrc .shosts env $1: } _SERVER["sbiguns"] => () { biguns $1 $2 | Fsort } _SERVER["vp"] => () { vi ~/.profile } _SERVER["r"] => () { eval resize } _SERVER["pd"] => () { echo \"starting perl in debug mode, lib ~/bin and ~/perl/lib are included\"; perl -I$HOME/bin -I$HOME/perl/lib -de 34 } _SERVER["_ps"] => () { ps -wweo pid,pgid,user,group,args --sort user } _SERVER["mc"] => () { mkdir -p $HOME/.mc/tmp 2>/dev/null; chmod 700 $HOME/.mc/tmp; MC=$HOME/.mc/tmp/mc-$$; /usr/bin/mc -P \"$@\" >\"$MC\"; cd \"cat $MC\"; /bin/rm -f \"$MC\"; unset MC } _SERVER["nag"] => () { links http://nag } _SERVER["x"] => () { echo $* } _SERVER["pwau"] => () { for i in $*; do perl -e \'(($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwnam($ARGV[0])) or die \"no user: $ARGV[0]\\n\"; print \"useradd -m -d $dir -c \\\"$gcos\\\" -u $uid -s $shell $ARGV[0]\\n\";\' $i; done } _SERVER["sp"] => () { . ~/.profile } _SERVER["ss"] => () { _magic_cd ~/src } _SERVER["oggplay"] => () { ogg123 -C -@ $* } _SERVER["roar"] => () { ssh tony@freja.roarmouse.org } _SERVER["pse"] => () { ps -ef | egrep -i $1 | grep -v grep } _SERVER["srcprep"] => () { for i in ls -1 ${1}*; do ( echo $i | egrep \"gz$\" ) && tartarget=$i; ( echo $i | egrep \"readme$\" ) && readmetarget=$i; done; startPWD=pwd; echo \"The File to untar is: $tartarget \"; echo \"The readme file is: $readmetarget \"; echo \"The structure of the tar file is:\"; [ -a $i ] || ( zcat ${1}*gz | tar -tvf - | head ); echo \"Should I create a $1 directory to extract the tar file in [ y or n ]?\"; read loosetar; ( [ \"y\" = $loosetar ] && mkdir $1 && mv $tartarget $1 && mv $readmetarget $1 ) && cd $i && ( zcat ${1}*gz | tar -xvf - ); ( [ \"y\" = $loosetar ] || ( zcat ${1}*gz | tar -xvf - ) ); mv $tartarget $startPWD/used.tar.files && echo \"moved $tartarget to $startPWD/used.tar.files\" } _SERVER["Fsum"] => () { awk \'{ s+=$5 } END {print s, \"bytes\" }\' } _SERVER["PHP_SELF"] => _SERVER["SCRIPT_NAME"] => _SERVER["DOCUMENT_ROOT"] => _SERVER["argv"] => Array ( ) _SERVER["argc"] => 0 _ENV["SUPPORTED"] => en_US.UTF-8:en_US:en _ENV["HOSTNAME"] => burly _ENV["TEST_PHP_SRCDIR"] => /usr/local/src/php-4.3.7 _ENV["IFS"] => _ENV["PVM_RSH"] => /usr/bin/rsh _ENV["TERM"] => screen _ENV["SHELL"] => /bin/sh _ENV["HISTSIZE"] => 1000 _ENV["MAKEFLAGS"] => _ENV["BOX_LIST"] => aristotle burly onasis uni westnile prion _ENV["BASH"] => /bin/sh _ENV["QTDIR"] => /usr/lib/qt3-gcc3.2 _ENV["HISTFILESIZE"] => 1000 _ENV["USER"] => root _ENV["EUID"] => 0 _ENV["SCRIPT_FILENAME"] => _ENV["MAILCHECK"] => 60 _ENV["PVM_ROOT"] => /usr/share/pvm3 _ENV["HOSTTYPE"] => i686 _ENV["USERNAME"] => root _ENV["MAKELEVEL"] => 1 _ENV["COLUMNS"] => 85 _ENV["MFLAGS"] => _ENV["FTP_PASSIVE"] => 1 _ENV["PATH"] => /usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin:/root/bin _ENV["MAIL"] => /var/spool/mail/root _ENV["OPTIND"] => 1 _ENV["_"] => /usr/local/src/php-4.3.7/sapi/cli/php _ENV["OPTERR"] => 1 _ENV["PWD"] => /usr/local/src/php-4.3.7 _ENV["a"] => /usr/local/apache2 _ENV["INPUTRC"] => /etc/inputrc _ENV["c"] => /usr/local/apache2/conf _ENV["LANG"] => C _ENV["TEST_PHP_EXECUTABLE"] => /usr/local/src/php-4.3.7/sapi/cli/php _ENV["REDIRECT_STATUS"] => _ENV["LAMHELPFILE"] => /etc/lam/lam-helpfile _ENV["i"] => libphp4.so _ENV["LINES"] => 61 _ENV["PATH_TRANSLATED"] => _ENV["SSH_ASKPASS"] => /usr/libexec/openssh/gnome-ssh-askpass _ENV["l"] => /usr/local/apache2/logs _ENV["PS4"] => + _ENV["HOME"] => /root _ENV["SHLVL"] => 3 _ENV["CONTENT_LENGTH"] => _ENV["OSTYPE"] => linux-gnu _ENV["XPVM_ROOT"] => /usr/share/pvm3/xpvm _ENV["BASH_ENV"] => /root/.bashrc _ENV["LOGNAME"] => root _ENV["MACHTYPE"] => i686-pc-linux-gnu _ENV["QUERY_STRING"] => _ENV["UID"] => 0 _ENV["LESSOPEN"] => |/usr/bin/lesspipe.sh %s _ENV["PROMPT_COMMAND"] => echo -ne \"\\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\\033\\\\\" _ENV["CONTENT_TYPE"] => _ENV["DISPLAY"] => :0.0 _ENV["CC"] => gcc _ENV["REQUEST_METHOD"] => _ENV["RSYNC_RSH"] => /usr/bin/ssh _ENV["G_BROKEN_FILENAMES"] => 1 _ENV["langfile"] => /root/.i18n _ENV["HISTFILE"] => /root/.bash_history _ENV["XAUTHORITY"] => /root/.xauthIZxleQ _ENV["BASH_VERSION"] => 2.05b.0(1)-release _ENV["les"] => () { less $* } _ENV["set_classpath"] => () { echo Setting javas CLASSPATH; CLASSPATH=find /usr/local/java -follow -type f -a -name \"[a-zA-Z]*zip\" -o -name \"[a-zA-Z]*jar\" -print|perl -ne \'unless (/demo/i || /example/i) {s/\\n/:/; print}\'; echo \"new CLASSPATH=$CLASSPATH\" } _ENV["lcd"] => () { FILE=locate $1|egrep \"${1}$\"|head -1; echo \"geussing where you want go where $FILE lives\"; cd dirname $FILE; echo -ne \"YOU MAY BE AT THE WRONG STOP - you are at: \"; pwd } _ENV["_magic_cd"] => () { cd $1; pwd } _ENV["lart"] => () { ls -lart } _ENV["ul"] => () { cd /usr/local; pwd } _ENV["C"] => () { echo \"Using type -path javac to compile\"; javac $* } _ENV["rs"] => () { eval resize } _ENV["Fsort"] => () { sort -rn +4 -5 - } _ENV["mplay"] => () { mpg123 -C -@ $* } _ENV["sps"] => () { PS1=\"> \" } _ENV["_id"] => () { echo \"id is:\"; echo \" id\"; echo \"machine is:\"; echo \" uname -a\" } _ENV["uls"] => () { cd /usr/local/src; pwd } _ENV["J"] => () { echo \"Using type -path java to run\"; java $(basename $* .java) } _ENV["uunet"] => () { cd ~/src; mftp ftp.uu.net } _ENV["getmime"] => () { ftp -n ftp.isi.edu <<eof u ftp tonyh@ cd /in-notes/iana/assignments/media-types bin hash get media-types ~/in/MIME.types quit eof } _ENV["biguns"] => () { find $1 -mount -size +${2:-2000} -exec ls -ld {} \\; } _ENV["llll"] => () { if [ $* ]; then for i in $*; do echo $(hostname):$(\\ls pwd/$i); done; else echo $(hostname):pwd; fi } _ENV["vstd"] => () { vi /etc/profile.d/std.aliases.* } _ENV["_screen"] => () { export AUTOSCREEN=~/env/autoscreen.txt; if [ -f $AUTOSCREEN ]; then wxcopy -display $DISPLAY --cutbuffer 0 <$AUTOSCREEN; else echo \"\"; fi; screen -RADO } _ENV["sec2date"] => () { eval date -d \\\'1970-01-01 + $1 sec\\\' +\\\"%Y-%m-%d %T %z\\\" } _ENV["ulj"] => () { cd /usr/local/java; pwd } _ENV["lll"] => () { if [ $* ]; then for i in $*; do \\ls pwd/$i; done; else pwd; fi } _ENV["cdlist"] => () { perl -e \'$end = 30;for (1 .. $end) {print \"$_\" . ($_ < $end ? \",\" : \"\\n\") ;}\' } _ENV["ull"] => () { cd /usr/local/lib; pwd } _ENV["Fuser"] => () { if [[ \"${LOGNAME}\" != \"root\" ]]; then echo \"Need to be root to read /dev/kmem.\"; return; fi; typeset -L RESPONSE; RESPONSE=fuser $1 2>/dev/null; if [ -n \"${RESPONSE}\" ]; then ps -f -p \"$RESPONSE\"; else echo \"No processes associated with $1\"; fi } _ENV["ulb"] => () { cd /usr/local/bin; pwd } _ENV["fmp"] => () { fold $1 | mpage -4 | lpr } _ENV["le"] => () { less $* } _ENV["b"] => () { _magic_cd ~/bin } _ENV["d"] => () { banner date +%m/%d } _ENV["untar_and_cd"] => () { j=tar ztvf $1|perl -ane \'$F[5] =~ s!/.*$!!;print \"$F[5]\\n\";\'|head -1; tar zxf $1; cd $j; pwd } _ENV["ll"] => () { lart } _ENV["prep"] => () { cd ~/src; mftp prep.ai.mit.edu } _ENV["ldot"] => () { ls -al $1 | perl -n -e \'if ( /^-/ ) {split;if (@_[-1] =~ /^\\..*$/) {print \"@_[-1] \\n\";}}\' } _ENV["pst"] => () { ps -ef | grep $LOGIN | grep -v grep } _ENV["cv"] => () { echo \"Using type -path javac to compile verbose\"; javac -verbose $* 2>&1 | less } _ENV["_su"] => () { OS=uname -s; echo \"in case you want to come back ($OS):\"; pwd; if [ $# -ne 0 -o X$OS = XLinux ]; then su - $*; else if [ X$OS = XFreeBSD -o X$OS = XOpenBSD]; then su - root -c \"exec /usr/bin/env bash -ao emacs\"; else ( LOGNAME=root; USER=root; su - root -c \"exec /usr/bin/ksh -ao emacs\" ); fi; fi } _ENV["p"] => () { _magic_cd ~/src/perlmod } _ENV["cpan"] => () { echo \"Starting the interactive CPAN shell\"; perl -MCPAN -e shell } _ENV["pushenv"] => () { cd ~/env; make env; cd; scp -r .profile .bashrc .shosts env $1: } _ENV["sbiguns"] => () { biguns $1 $2 | Fsort } _ENV["vp"] => () { vi ~/.profile } _ENV["r"] => () { eval resize } _ENV["pd"] => () { echo \"starting perl in debug mode, lib ~/bin and ~/perl/lib are included\"; perl -I$HOME/bin -I$HOME/perl/lib -de 34 } _ENV["_ps"] => () { ps -wweo pid,pgid,user,group,args --sort user } _ENV["mc"] => () { mkdir -p $HOME/.mc/tmp 2>/dev/null; chmod 700 $HOME/.mc/tmp; MC=$HOME/.mc/tmp/mc-$$; /usr/bin/mc -P \"$@\" >\"$MC\"; cd \"cat $MC\"; /bin/rm -f \"$MC\"; unset MC } _ENV["nag"] => () { links http://nag } _ENV["x"] => () { echo $* } _ENV["pwau"] => () { for i in $*; do perl -e \'(($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwnam($ARGV[0])) or die \"no user: $ARGV[0]\\n\"; print \"useradd -m -d $dir -c \\\"$gcos\\\" -u $uid -s $shell $ARGV[0]\\n\";\' $i; done } _ENV["sp"] => () { . ~/.profile } _ENV["ss"] => () { _magic_cd ~/src } _ENV["oggplay"] => () { ogg123 -C -@ $* } _ENV["roar"] => () { ssh tony@freja.roarmouse.org } _ENV["pse"] => () { ps -ef | egrep -i $1 | grep -v grep } _ENV["srcprep"] => () { for i in ls -1 ${1}*; do ( echo $i | egrep \"gz$\" ) && tartarget=$i; ( echo $i | egrep \"readme$\" ) && readmetarget=$i; done; startPWD=pwd; echo \"The File to untar is: $tartarget \"; echo \"The readme file is: $readmetarget \"; echo \"The structure of the tar file is:\"; [ -a $i ] || ( zcat ${1}*gz | tar -tvf - | head ); echo \"Should I create a $1 directory to extract the tar file in [ y or n ]?\"; read loosetar; ( [ \"y\" = $loosetar ] && mkdir $1 && mv $tartarget $1 && mv $readmetarget $1 ) && cd $i && ( zcat ${1}*gz | tar -xvf - ); ( [ \"y\" = $loosetar ] || ( zcat ${1}*gz | tar -xvf - ) ); mv $tartarget $startPWD/used.tar.files && echo \"moved $tartarget to $startPWD/used.tar.files\" } _ENV["Fsum"] => () { awk \'{ s+=$5 } END {print s, \"bytes\" }\' } PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

« previous php.qa (#18836) next »