List of reports associated
Test name:Version: 7.2.11
Goto: PHPInfo Build environment
PHPInfo
phpinfo() PHP Version => 7.2.11 System => FreeBSD freebsd 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Build Date => Oct 24 2018 11:00:00 Configure Command => './configure' '--datarootdir=/usr/share' '--prefix=' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /lib Loaded Configuration File => (none) Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) PHP API => 20170718 PHP Extension => 20170718 Zend Extension => 320170718 Zend Extension Build => API320170718,NTS PHP Extension Build => API20170718,NTS Debug Build => no Thread Safety => disabled Zend Signal Handling => enabled Zend Memory Manager => enabled Zend Multibyte Support => disabled IPv6 Support => enabled DTrace Support => disabled Registered PHP Streams => php, file, glob, data, http, ftp, phar Registered Stream Socket Transports => tcp, udp, unix, udg Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk This program makes use of the Zend Scripting Language Engine: Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies _______________________________________________________________________ Configuration Core PHP Version => 7.2.11 Directive => Local Value => Master Value allow_url_fopen => On => On allow_url_include => Off => Off arg_separator.input => & => & arg_separator.output => & => & auto_append_file => no value => no value auto_globals_jit => On => On auto_prepend_file => no value => no value browscap => no value => no value default_charset => UTF-8 => UTF-8 default_mimetype => text/html => text/html disable_classes => no value => no value disable_functions => no value => no value display_errors => STDERR => STDERR 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 enable_post_data_reading => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => no value => no value expose_php => On => On extension_dir => /lib/php/extensions/no-debug-non-zts-20170718 => /lib/php/extensions/no-debug-non-zts-20170718 file_uploads => On => On hard_timeout => 2 => 2 highlight.comment => <font style="color: #FF8000">#FF8000</font> => <font style="color: #FF8000">#FF8000</font> highlight.default => <font style="color: #0000BB">#0000BB</font> => <font style="color: #0000BB">#0000BB</font> highlight.html => <font style="color: #000000">#000000</font> => <font style="color: #000000">#000000</font> highlight.keyword => <font style="color: #007700">#007700</font> => <font style="color: #007700">#007700</font> highlight.string => <font style="color: #DD0000">#DD0000</font> => <font style="color: #DD0000">#DD0000</font> html_errors => Off => Off ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => On include_path => .:/lib/php => .:/lib/php input_encoding => no value => no value internal_encoding => no value => no value log_errors => Off => Off log_errors_max_len => 1024 => 1024 mail.add_x_header => Off => Off mail.force_extra_parameters => no value => no value mail.log => no value => no value max_execution_time => 0 => 0 max_file_uploads => 20 => 20 max_input_nesting_level => 64 => 64 max_input_time => -1 => -1 max_input_vars => 1000 => 1000 memory_limit => 128M => 128M open_basedir => no value => no value output_buffering => 0 => 0 output_encoding => no value => no value output_handler => no value => no value post_max_size => 8M => 8M precision => 14 => 14 realpath_cache_size => 4096K => 4096K realpath_cache_ttl => 120 => 120 register_argc_argv => On => On report_memleaks => On => On report_zend_debug => Off => Off request_order => no value => no value sendmail_from => no value => no value sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i serialize_precision => -1 => -1 short_open_tag => On => On SMTP => localhost => localhost smtp_port => 25 => 25 sys_temp_dir => no value => no value 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 user_ini.cache_ttl => 300 => 300 user_ini.filename => .user.ini => .user.ini variables_order => EGPCS => EGPCS xmlrpc_error_number => 0 => 0 xmlrpc_errors => Off => Off zend.assertions => 1 => 1 zend.detect_unicode => On => On zend.enable_gc => On => On zend.multibyte => Off => Off zend.script_encoding => no value => no value zend.signal_check => Off => Off ctype ctype functions => enabled date date/time support => enabled timelib version => 2017.06 "Olson" Timezone Database Version => 2018.5 Timezone Database => internal Default timezone => UTC Directive => Local Value => Master Value date.default_latitude => 31.7667 => 31.7667 date.default_longitude => 35.2333 => 35.2333 date.sunrise_zenith => 90.583333 => 90.583333 date.sunset_zenith => 90.583333 => 90.583333 date.timezone => no value => no value dom DOM/XML => enabled DOM/XML API Version => 20031129 libxml Version => 2.9.7 HTML Support => enabled XPath Support => enabled XPointer Support => enabled Schema Support => enabled RelaxNG Support => enabled fileinfo fileinfo support => enabled version => 1.0.5 libmagic => 531 filter Input Validation and Filtering => enabled Revision => $Id: 5a34caaa246b9df197f4b43af8ac66a07464fe4b $ Directive => Local Value => Master Value filter.default => unsafe_raw => unsafe_raw filter.default_flags => no value => no value hash hash support => enabled Hashing Engines => md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 iconv iconv support => enabled iconv implementation => unknown iconv library version => unknown Directive => Local Value => Master Value iconv.input_encoding => no value => no value iconv.internal_encoding => no value => no value iconv.output_encoding => no value => no value json json support => enabled json version => 1.6.0 libxml libXML support => active libXML Compiled Version => 2.9.7 libXML Loaded Version => 20907 libXML streams => enabled pcre PCRE (Perl Compatible Regular Expressions) Support => enabled PCRE Library Version => 8.41 2017-07-05 PCRE JIT Support => enabled Directive => Local Value => Master Value pcre.backtrack_limit => 1000000 => 1000000 pcre.jit => 1 => 1 pcre.recursion_limit => 100000 => 100000 PDO PDO support => enabled PDO drivers => sqlite pdo_sqlite PDO Driver for SQLite 3.x => enabled SQLite Library => 3.20.1 Phar Phar: PHP Archive support => enabled Phar EXT version => 2.0.2 Phar API version => 1.1.1 SVN revision => $Id: 11c9d270a69dbd9589cbea10a0ad9731a286a147 $ Phar-based phar archives => enabled Tar-based phar archives => enabled ZIP-based phar archives => enabled gzip compression => disabled (install ext/zlib) bzip2 compression => disabled (install pecl/bz2) OpenSSL support => disabled (install ext/openssl) Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive => Local Value => Master Value phar.cache_list => no value => no value phar.readonly => On => On phar.require_hash => On => On posix Revision => $Id: 0a764bab332255746424a1e6cfbaaeebab998e4c $ Reflection Reflection => enabled Version => $Id: 3bd31e48a84f686e08d99aa98943ae42bea65682 $ session Session Support => enabled Registered save handlers => files user Registered serializer handlers => php_serialize php php_binary Directive => Local Value => Master Value session.auto_start => Off => Off session.cache_expire => 180 => 180 session.cache_limiter => nocache => nocache session.cookie_domain => no value => no value session.cookie_httponly => 0 => 0 session.cookie_lifetime => 0 => 0 session.cookie_path => / => / session.cookie_secure => 0 => 0 session.gc_divisor => 100 => 100 session.gc_maxlifetime => 1440 => 1440 session.gc_probability => 1 => 1 session.lazy_write => On => On session.name => PHPSESSID => PHPSESSID session.referer_check => no value => no value session.save_handler => files => files session.save_path => no value => no value session.serialize_handler => php => php session.sid_bits_per_character => 4 => 4 session.sid_length => 32 => 32 session.upload_progress.cleanup => On => On session.upload_progress.enabled => On => On session.upload_progress.freq => 1% => 1% session.upload_progress.min_freq => 1 => 1 session.upload_progress.name => PHP_SESSION_UPLOAD_PROGRESS => PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix => upload_progress_ => upload_progress_ session.use_cookies => 1 => 1 session.use_only_cookies => 1 => 1 session.use_strict_mode => 0 => 0 session.use_trans_sid => 0 => 0 SimpleXML Simplexml support => enabled Revision => $Id: 341daed0ee94ea8f728bfd0ba4626e6ed365c0d1 $ Schema support => enabled SPL SPL support => enabled Interfaces => OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException sqlite3 SQLite3 support => enabled SQLite3 module version => 7.2.11 SQLite Library => 3.20.1 Directive => Local Value => Master Value sqlite3.extension_dir => no value => no value standard 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.exception => 0 => 0 assert.quiet_eval => 0 => 0 assert.warning => 1 => 1 auto_detect_line_endings => 0 => 0 default_socket_timeout => 60 => 60 from => no value => no value session.trans_sid_hosts => no value => no value session.trans_sid_tags => a=href,area=href,frame=src,form= => a=href,area=href,frame=src,form= url_rewriter.hosts => no value => no value url_rewriter.tags => form= => form= user_agent => no value => no value tokenizer Tokenizer Support => enabled xml XML Support => active XML Namespace Support => active libxml2 Version => 2.9.7 xmlreader XMLReader => enabled xmlwriter XMLWriter => enabled Additional Modules Module Name Environment Variable => Value VENDOR => amd SSH_CLIENT => deleted LOGNAME => root LANG => en_US.UTF-8 PAGER => more BASH_FUNC_comma-format%% => () { [[ $1 =~ ^([-])?([0-9]+)(\.[0-9]*)? ]] || { echo INVAL; return 1 }; local X Y=${BASH_REMATCH[2]}; local n=${#Y}; while ((n>3)); do X=",${Y:n-3:3}$X"; ((n-=3)); done; echo ${BASH_REMATCH[1]}${Y:0:n}${X}${BASH_REMATCH[3]} } MAKELEVEL => 1 OSTYPE => FreeBSD MACHTYPE => x86_64 CC => cc MAIL => /var/mail/root MDF => %Y:%m:%d-%T MAKEFLAGS => .MAKE.LEVEL.ENV=MAKELEVEL META_MODE => normal PATH => /sbin:/bin:/usr/sbin:/usr/bin:/root/bin EDITOR => nano ENV => /etc/PREFIX HOST => freebsd REMOTEHOST => 197.50.78.82 .MAKE.LEVEL.ENV => MAKELEVEL OLDPWD => /root TEST_PHP_SRCDIR => /root/php-7.2.11 SSH_AUTH_SOCK => deleted PWD => /root/php-7.2.11 _ => /usr/bin/make GROUP => wheel PROMPT_COMMAND => [ "$LWD" = "$PWD" ] || { LWD="$PWD"; PWD_TRUNC_LAST=`pwd_trunc`; } TERM => xterm TEST_PHPDBG_EXECUTABLE => /root/php-7.2.11/sapi/phpdbg/phpdbg SSH_TTY => deleted BASH_FUNC_size-format%% => () { [[ $1 =~ ^[1-9][0-9]* ]] || return 1; (($1<0 || ${#1} >19)) && return 1; (($1<1024)) && { echo ${1}B; return 0 }; local SUFFIX="KMGTPEZY"; local -i n j; for ((j=$1, n=0; (j>>=10); n++)) do :; done; echo $1 $n ${SUFFIX:$n-1:1} | gawk '{printf("%.2f%sB\n", $1/2^($2*10), $3)}' } USER => root HOME => /root TEST_PHP_EXECUTABLE => /root/php-7.2.11/sapi/cli/php SSH_CONNECTION => deleted PS1 => \t $PWD_TRUNC_LAST :\!: HOSTTYPE => FreeBSD SHELL => /bin/csh LC_ALL => en_US.UTF-8 LOCALBASE => / TIMEFORMAT => %R BLOCKSIZE => K SHLVL => 2 BASH_FUNC_pwd_trunc%% => () { [ "$1" ] && { [[ $1 =~ ^[[:digit:]]+$ ]] || return 1 }; local MAX_LEN="${1:-20}" D="$PWD"; [ "${D#$HOME}" != "$D" ] && D="~${D#$HOME}"; local -i i NE LEN=${#D} ADJ_LEN; ((LEN<=MAX_LEN)) && { echo "$D"; return 0 }; local -a DIRS=($(D="${D// /\\}"; D="${D//\// }"; echo $D)); NE=${#DIRS[@]}; FALLBACK='{ echo "...${D:$LEN-$MAX_LEN+3}"; return; }'; ((NE<3)) && eval $FALLBACK; TOP="/${DIRS[0]}/" BOTTOM="/${DIRS[NE-1]}"; TOP="${TOP/\/\~/\~}"; unset DIRS[0] DIRS[NE-1]; DIRS=(`echo ${DIRS[@]}`); ((NE-=2)); ((ADJ_LEN=MAX_LEN-${#TOP}-${#BOTTOM}-2)); ((ADJ_LEN>0)) || eval $FALLBACK; local ANSWER='D="${TOP#\\}${BOTTOM}"; echo "${D//\\/ }"; return'; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}==ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~/${DIRS[i]}"; eval $ANSWER; else TOP="${TOP}~"; eval $ANSWER; fi; fi; fi; done; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}<=ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~${DIRS[i]}"; eval $ANSWER; fi; fi; fi; done; TOP="${TOP}~"; eval $ANSWER } PHP Variables Variable => Value $_SERVER['VENDOR'] => amd $_SERVER['SSH_CLIENT'] => deleted $_SERVER['LOGNAME'] => root $_SERVER['LANG'] => en_US.UTF-8 $_SERVER['PAGER'] => more $_SERVER['BASH_FUNC_comma-format%%'] => () { [[ $1 =~ ^([-])?([0-9]+)(\.[0-9]*)? ]] || { echo INVAL; return 1 }; local X Y=${BASH_REMATCH[2]}; local n=${#Y}; while ((n>3)); do X=",${Y:n-3:3}$X"; ((n-=3)); done; echo ${BASH_REMATCH[1]}${Y:0:n}${X}${BASH_REMATCH[3]} } $_SERVER['MAKELEVEL'] => 1 $_SERVER['OSTYPE'] => FreeBSD $_SERVER['MACHTYPE'] => x86_64 $_SERVER['CC'] => cc $_SERVER['MAIL'] => /var/mail/root $_SERVER['MDF'] => %Y:%m:%d-%T $_SERVER['MAKEFLAGS'] => .MAKE.LEVEL.ENV=MAKELEVEL $_SERVER['META_MODE'] => normal $_SERVER['PATH'] => /sbin:/bin:/usr/sbin:/usr/bin:/root/bin $_SERVER['EDITOR'] => nano $_SERVER['ENV'] => /etc/PREFIX $_SERVER['HOST'] => freebsd $_SERVER['REMOTEHOST'] => 197.50.78.82 $_SERVER['_MAKE_LEVEL_ENV'] => MAKELEVEL $_SERVER['OLDPWD'] => /root $_SERVER['TEST_PHP_SRCDIR'] => /root/php-7.2.11 $_SERVER['SSH_AUTH_SOCK'] => deleted $_SERVER['PWD'] => /root/php-7.2.11 $_SERVER['_'] => /usr/bin/make $_SERVER['GROUP'] => wheel $_SERVER['PROMPT_COMMAND'] => [ "$LWD" = "$PWD" ] || { LWD="$PWD"; PWD_TRUNC_LAST=`pwd_trunc`; } $_SERVER['TERM'] => xterm $_SERVER['TEST_PHPDBG_EXECUTABLE'] => /root/php-7.2.11/sapi/phpdbg/phpdbg $_SERVER['SSH_TTY'] => deleted $_SERVER['BASH_FUNC_size-format%%'] => () { [[ $1 =~ ^[1-9][0-9]* ]] || return 1; (($1<0 || ${#1} >19)) && return 1; (($1<1024)) && { echo ${1}B; return 0 }; local SUFFIX="KMGTPEZY"; local -i n j; for ((j=$1, n=0; (j>>=10); n++)) do :; done; echo $1 $n ${SUFFIX:$n-1:1} | gawk '{printf("%.2f%sB\n", $1/2^($2*10), $3)}' } $_SERVER['USER'] => root $_SERVER['HOME'] => /root $_SERVER['TEST_PHP_EXECUTABLE'] => /root/php-7.2.11/sapi/cli/php $_SERVER['SSH_CONNECTION'] => deleted $_SERVER['PS1'] => \t $PWD_TRUNC_LAST :\!: $_SERVER['HOSTTYPE'] => FreeBSD $_SERVER['SHELL'] => /bin/csh $_SERVER['LC_ALL'] => en_US.UTF-8 $_SERVER['LOCALBASE'] => / $_SERVER['TIMEFORMAT'] => %R $_SERVER['BLOCKSIZE'] => K $_SERVER['SHLVL'] => 2 $_SERVER['BASH_FUNC_pwd_trunc%%'] => () { [ "$1" ] && { [[ $1 =~ ^[[:digit:]]+$ ]] || return 1 }; local MAX_LEN="${1:-20}" D="$PWD"; [ "${D#$HOME}" != "$D" ] && D="~${D#$HOME}"; local -i i NE LEN=${#D} ADJ_LEN; ((LEN<=MAX_LEN)) && { echo "$D"; return 0 }; local -a DIRS=($(D="${D// /\\}"; D="${D//\// }"; echo $D)); NE=${#DIRS[@]}; FALLBACK='{ echo "...${D:$LEN-$MAX_LEN+3}"; return; }'; ((NE<3)) && eval $FALLBACK; TOP="/${DIRS[0]}/" BOTTOM="/${DIRS[NE-1]}"; TOP="${TOP/\/\~/\~}"; unset DIRS[0] DIRS[NE-1]; DIRS=(`echo ${DIRS[@]}`); ((NE-=2)); ((ADJ_LEN=MAX_LEN-${#TOP}-${#BOTTOM}-2)); ((ADJ_LEN>0)) || eval $FALLBACK; local ANSWER='D="${TOP#\\}${BOTTOM}"; echo "${D//\\/ }"; return'; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}==ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~/${DIRS[i]}"; eval $ANSWER; else TOP="${TOP}~"; eval $ANSWER; fi; fi; fi; done; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}<=ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~${DIRS[i]}"; eval $ANSWER; fi; fi; fi; done; TOP="${TOP}~"; eval $ANSWER } $_SERVER['PHP_SELF'] => $_SERVER['SCRIPT_NAME'] => $_SERVER['SCRIPT_FILENAME'] => $_SERVER['PATH_TRANSLATED'] => $_SERVER['DOCUMENT_ROOT'] => $_SERVER['REQUEST_TIME_FLOAT'] => 1540379357.2006 $_SERVER['REQUEST_TIME'] => 1540379357 $_SERVER['argv'] => Array ( ) $_SERVER['argc'] => 0 $_ENV['VENDOR'] => amd $_ENV['SSH_CLIENT'] => deleted $_ENV['LOGNAME'] => root $_ENV['LANG'] => en_US.UTF-8 $_ENV['PAGER'] => more $_ENV['BASH_FUNC_comma-format%%'] => () { [[ $1 =~ ^([-])?([0-9]+)(\.[0-9]*)? ]] || { echo INVAL; return 1 }; local X Y=${BASH_REMATCH[2]}; local n=${#Y}; while ((n>3)); do X=",${Y:n-3:3}$X"; ((n-=3)); done; echo ${BASH_REMATCH[1]}${Y:0:n}${X}${BASH_REMATCH[3]} } $_ENV['MAKELEVEL'] => 1 $_ENV['OSTYPE'] => FreeBSD $_ENV['MACHTYPE'] => x86_64 $_ENV['CC'] => cc $_ENV['MAIL'] => /var/mail/root $_ENV['MDF'] => %Y:%m:%d-%T $_ENV['MAKEFLAGS'] => .MAKE.LEVEL.ENV=MAKELEVEL $_ENV['META_MODE'] => normal $_ENV['PATH'] => /sbin:/bin:/usr/sbin:/usr/bin:/root/bin $_ENV['EDITOR'] => nano $_ENV['ENV'] => /etc/PREFIX $_ENV['HOST'] => freebsd $_ENV['REMOTEHOST'] => 197.50.78.82 $_ENV['_MAKE_LEVEL_ENV'] => MAKELEVEL $_ENV['OLDPWD'] => /root $_ENV['TEST_PHP_SRCDIR'] => /root/php-7.2.11 $_ENV['SSH_AUTH_SOCK'] => deleted $_ENV['PWD'] => /root/php-7.2.11 $_ENV['_'] => /usr/bin/make $_ENV['GROUP'] => wheel $_ENV['PROMPT_COMMAND'] => [ "$LWD" = "$PWD" ] || { LWD="$PWD"; PWD_TRUNC_LAST=`pwd_trunc`; } $_ENV['TERM'] => xterm $_ENV['TEST_PHPDBG_EXECUTABLE'] => /root/php-7.2.11/sapi/phpdbg/phpdbg $_ENV['SSH_TTY'] => deleted $_ENV['BASH_FUNC_size-format%%'] => () { [[ $1 =~ ^[1-9][0-9]* ]] || return 1; (($1<0 || ${#1} >19)) && return 1; (($1<1024)) && { echo ${1}B; return 0 }; local SUFFIX="KMGTPEZY"; local -i n j; for ((j=$1, n=0; (j>>=10); n++)) do :; done; echo $1 $n ${SUFFIX:$n-1:1} | gawk '{printf("%.2f%sB\n", $1/2^($2*10), $3)}' } $_ENV['USER'] => root $_ENV['HOME'] => /root $_ENV['TEST_PHP_EXECUTABLE'] => /root/php-7.2.11/sapi/cli/php $_ENV['SSH_CONNECTION'] => deleted $_ENV['PS1'] => \t $PWD_TRUNC_LAST :\!: $_ENV['HOSTTYPE'] => FreeBSD $_ENV['SHELL'] => /bin/csh $_ENV['LC_ALL'] => en_US.UTF-8 $_ENV['LOCALBASE'] => / $_ENV['TIMEFORMAT'] => %R $_ENV['BLOCKSIZE'] => K $_ENV['SHLVL'] => 2 $_ENV['BASH_FUNC_pwd_trunc%%'] => () { [ "$1" ] && { [[ $1 =~ ^[[:digit:]]+$ ]] || return 1 }; local MAX_LEN="${1:-20}" D="$PWD"; [ "${D#$HOME}" != "$D" ] && D="~${D#$HOME}"; local -i i NE LEN=${#D} ADJ_LEN; ((LEN<=MAX_LEN)) && { echo "$D"; return 0 }; local -a DIRS=($(D="${D// /\\}"; D="${D//\// }"; echo $D)); NE=${#DIRS[@]}; FALLBACK='{ echo "...${D:$LEN-$MAX_LEN+3}"; return; }'; ((NE<3)) && eval $FALLBACK; TOP="/${DIRS[0]}/" BOTTOM="/${DIRS[NE-1]}"; TOP="${TOP/\/\~/\~}"; unset DIRS[0] DIRS[NE-1]; DIRS=(`echo ${DIRS[@]}`); ((NE-=2)); ((ADJ_LEN=MAX_LEN-${#TOP}-${#BOTTOM}-2)); ((ADJ_LEN>0)) || eval $FALLBACK; local ANSWER='D="${TOP#\\}${BOTTOM}"; echo "${D//\\/ }"; return'; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}==ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~/${DIRS[i]}"; eval $ANSWER; else TOP="${TOP}~"; eval $ANSWER; fi; fi; fi; done; for ((i=0; i<NE; i++)) do if ((${#DIRS[i]}<=ADJ_LEN)); then if ((i==0)); then TOP="${TOP}${DIRS[i]}/~"; eval $ANSWER; else if ((i==NE-1)); then TOP="${TOP}~${DIRS[i]}"; eval $ANSWER; fi; fi; fi; done; TOP="${TOP}~"; eval $ANSWER } 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.
Build environment
OS: FreeBSD - FreeBSD freebsd 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 Autoconf: autoconf (GNU Autoconf) 2.69 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+/Autoconf: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David J. MacKenzie and Akim Demaille. Bundled Libtool: ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56) Copyright (C) 2008 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. System Libtool: N/A Compiler: FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) Target: x86_64-unknown-freebsd11.2 Thread model: posix InstalledDir: /usr/bin Bison: Libraries: /root/php-7.2.11/sapi/cli/php: libcrypt.so.5 => //lib/libcrypt.so.5 (0x80131a000) librt.so.1 => /usr/lib/librt.so.1 (0x801539000) libm.so.5 => //lib/libm.so.5 (0x80173f000) libxml2.so.2 => //lib/libxml2.so.2 (0x80196c000) libz.so.6 => //lib/libz.so.6 (0x801cff000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x801f17000) libc.so.7 => //lib/libc.so.7 (0x802140000) libthr.so.3 => /lib/libthr.so.3 (0x8024fc000) User's E-mail: