Brew & manage PHP versions in pure PHP at HOME

Overview

PHPBrew

Read this in other languages: English, Português - BR, 日本語, 中文.

Build Status Coverage Status Gitter

phpbrew builds and installs multiple version php(s) in your $HOME directory.

What phpbrew can do for you:

  • Configure options are simplified into variants, no worries about the path anymore!
  • Build php with different variants like PDO, mysql, sqlite, debug ...etc.
  • Compile apache php module and separate them by different versions.
  • Build and install php(s) in your home directory, so you don't need root permission.
  • Switch versions very easily and is integrated with bash/zsh shell.
  • Automatic feature detection.
  • Install & enable php extensions into current environment with ease.
  • Install multiple php into system-wide environment.
  • Path detection optimization for HomeBrew and MacPorts.

Requirement

Please see Requirement before you get started. you need to install some development packages for building PHP.

QUICK START

Please see Quick Start if you're impatient. :-p

GETTING STARTED

OK, I assume you have more time to work on this, this is a step-by-step tutorial that helps you get started.

Installation

curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar
chmod +x phpbrew.phar

# Move the file to some directory within your $PATH
sudo mv phpbrew.phar /usr/local/bin/phpbrew

Init a bash script for your shell environment:

phpbrew init

Add these lines to your .bashrc or .zshrc file:

[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc

For fish shell users, add following lines to your ~/.config/fish/config.fish file:

source ~/.phpbrew/phpbrew.fish

If you're using system-wide phpbrew, you may setup a shared phpbrew root, for example:

mkdir -p /opt/phpbrew
phpbrew init --root=/opt/phpbrew

Setting up lookup prefix

You may setup your preferred default prefix for looking up libraries, available options are macports, homebrew, debian, ubuntu or a custom path:

For Homebrew users:

phpbrew lookup-prefix homebrew

For Macports users:

phpbrew lookup-prefix macports

Basic usage

To list known versions:

phpbrew known

7.0: 7.0.3, 7.0.2, 7.0.1, 7.0.0 ...
5.6: 5.6.18, 5.6.17, 5.6.16, 5.6.15, 5.6.14, 5.6.13, 5.6.12, 5.6.11 ...
5.5: 5.5.32, 5.5.31, 5.5.30, 5.5.29, 5.5.28, 5.5.27, 5.5.26, 5.5.25 ...
5.4: 5.4.45, 5.4.44, 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38 ...
5.3: 5.3.29, 5.3.28 ...

To show more minor versions:

$ phpbrew known --more

To update the release info:

$ phpbrew update

To get older versions (less than 5.4)

Please note that we don't guarantee that you can build the php versions that are not supported by offical successfully, please don't fire any issue about the older versions, these issues won't be fixed.

$ phpbrew update --old

To list known older versions (less than 5.4)

$ phpbrew known --old

Starting Building Your Own PHP

Simply build and install PHP with default variant:

$ phpbrew install 5.4.0 +default

Here we suggest default variant set, which includes most commonly used variants, if you need a minimum install, just remove the default variant set.

You can enable parallel compilation by passing -j or --jobs option and the following is an example:

$ phpbrew install -j $(nproc) 5.4.0 +default

With tests:

$ phpbrew install --test 5.4.0

With debug messages:

$ phpbrew -d install --test 5.4.0

To install older versions (less than 5.3):

$ phpbrew install --old 5.2.13

To install the latest patch version of a given release:

$ phpbrew install 5.6

To install a pre-release version:

$ phpbrew install 7.2.0alpha1
$ phpbrew install 7.2.0beta2
$ phpbrew install 7.2.0RC3

To install from a GitHub tag or branch name:

$ phpbrew install github:php/[email protected] as php-7.2.0-dev

To install the next (unstable) version:

$ phpbrew install next as php-7.3.0-dev

Cleaning up build directory

$ phpbrew clean php-5.4.0

Variants

PHPBrew arranges configure options for you, you can simply specify variant name, and phpbrew will detect include paths and build options for configuring.

PHPBrew provides default variants and some virtual variants, to the default variants, which includes the most commonly used variants, to the virtual variants, which defines a variant set, you may use one virtual variant to enable multiple variants at one time.

To check out what is included in these variants, run phpbrew variants to list these variants.

To enable one variant, add a prefix + before the variant name, eg

+mysql

To disable one variant, add a prefix - before the variant name.

-debug

For example, if we want to build PHP with the default options and database supports (mysql, sqlite, postgresql), you may simply run:

$ phpbrew install 5.4.5 +default+dbs

You may also build PHP with extra variants:

$ phpbrew install 5.3.10 +mysql+sqlite+cgi

$ phpbrew install 5.3.10 +mysql+debug+pgsql +apxs2

$ phpbrew install 5.3.10 +pdo +mysql +pgsql +apxs2=/usr/bin/apxs2

To build PHP with pgsql (PostgreSQL) extension:

$ phpbrew install 5.4.1 +pgsql+pdo

Or build pgsql extension with postgresql base dir on Mac OS X:

$ phpbrew install 5.4.1 +pdo+pgsql=/opt/local/lib/postgresql91/bin

The pgsql path is the location of pg_config, you could find pg_config in the /opt/local/lib/postgresql91/bin

To build PHP with neutral compile options, you can specify neutral virtual variant, which means that phpbrew doesn't add any additional compile options including --disable-all. But some options(for example --enable-libxml) are still automatically added to support pear installation. You can build PHP with neutral:

$ phpbrew install 5.4.1 +neutral

For more details, please check out PHPBrew Cookbook.

Extra Configure Options

To pass extra configure arguments, you can do this:

$ phpbrew install 5.3.10 +mysql +sqlite -- \
    --enable-ftp --apxs2=/opt/local/apache2/bin/apxs

Use And Switch

Use (switch version temporarily):

$ phpbrew use 5.4.22

Switch PHP version (switch default version)

$ phpbrew switch 5.4.18

Turn Off:

$ phpbrew off

If you enable apache PHP modules, remember to comment out or remove the settings.

$ sudo vim /etc/httpd/conf/httpd.conf
# LoadModule php5_module        /usr/lib/httpd/modules/libphp5.3.21.so
# LoadModule php5_module        /usr/lib/httpd/modules/libphp5.3.20.so

The Extension Installer

See Extension Installer

Configuring the php.ini for current php version

Simply run:

$ phpbrew config

You may specify the EDITOR environment variable to your favorite editor:

export EDITOR=vim
phpbrew config

Upgrade phpbrew

To upgrade phpbrew, you may simply run the self-update command, this command enables you to install the latest version of master branch from GitHub:

$ phpbrew self-update

The Installed PHP(s)

To list all installed php(s), you could run:

$ phpbrew list

The installed phps are located in ~/.phpbrew/php, for example, php 5.4.20 is located at:

~/.phpbrew/php/5.4.20/bin/php

And you should put your configuration file in:

~/.phpbrew/php/5.4.20/etc/php.ini

Extension configuration files should be put in:

~/.phpbrew/php/5.4.20/var/db
~/.phpbrew/php/5.4.20/var/db/xdebug.ini
~/.phpbrew/php/5.4.20/var/db/apc.ini
~/.phpbrew/php/5.4.20/var/db/memcache.ini
... etc

Quick commands to switch between directories

Switching to PHP build directory

$ phpbrew build-dir

Switching to PHP dist directory

$ phpbrew dist-dir

Switching to PHP etc directory

$ phpbrew etc-dir

Switching to PHP var directory

$ phpbrew var-dir

PHP FPM

phpbrew also provides useful fpm managing sub-commands. to use them, please remember to enable +fpm variant when building your own php.

To start php-fpm, simply type:

$ phpbrew fpm start

To stop php-fpm, type:

$ phpbrew fpm stop

To show php-fpm modules:

phpbrew fpm module

To test php-fpm config:

phpbrew fpm test

To edit php-fpm config:

phpbrew fpm config

The installed php-fpm is located in ~/.phpbrew/php/php-*/sbin.

The correspond php-fpm.conf is located in ~/.phpbrew/php/php-*/etc/php-fpm.conf.default, you may copy the default config file to the desired location. e.g.,

cp -v ~/.phpbrew/php/php-*/etc/php-fpm.conf.default
    ~/.phpbrew/php/php-*/etc/php-fpm.conf

php-fpm --php-ini {php config file} --fpm-config {fpm config file}

Enabling Version Info Prompt

To add PHP version info in your shell prompt, you can use "PHPBREW_SET_PROMPT=1" variable.

The default is "PHPBREW_SET_PROMPT=0" (disable). To enable it, you can add this line to your ~/.bashrc file and put this line before you source ~/.phpbrew/bashrc.

export PHPBREW_SET_PROMPT=1

To embed version info in your prompt, you can use phpbrew_current_php_version shell function, which is defined in .phpbrew/bashrc. and you can set the version info in your PS1 var. e.g.

PS1=" \$(phpbrew_current_php_version) \$ "

Known Issues

  • For PHP-5.3+ versions, "Building intl 64-bit fails on OS X" https://bugs.php.net/bug.php?id=48795

  • To build PHP with GD extension, you need to specify your libpng dir and libjpeg dir, for example,

    $ phpbrew install php-5.4.10 +default +mysql +intl +gettext +apxs2=/usr/bin/apxs2
    -- --with-libdir=lib/x86_64-linux-gnu
    --with-gd=shared
    --enable-gd-natf
    --with-jpeg-dir=/usr
    --with-png-dir=/usr

Troubleshooting

Please see TroubleShooting

FAQ

Q: How do I have the same version with different compile option?

A: Currently, you can install php-5.x.x and rename the /Users/phpbrew/.phpbrew/php/php-5.x.x folder to the new name, for example, php-5.x.x-super , and install another php-5.x.x

Contribution

Please see Contribution

Documentation

Please see Wiki

Author

  • Yo-An Lin (c9s)
  • Márcio Almad

License

See LICENSE file.

Comments
  • phpbrew install and use not using the version installed nor listing the version

    phpbrew install and use not using the version installed nor listing the version

    Congratulations! Now you have PHP with php-5.3.29.
    To use the newly built PHP, try the line(s) below:
    
        $ phpbrew use php-5.3.29
    
    Or you can use switch command to switch your default php version to php-5.3.29:
    
        $ phpbrew switch php-5.3.29
    
    Enjoy!
     /var/www/ProcessWire  ± master ●✚  phpbrew list          
    Installed versions:
    * (system)
     /var/www/ProcessWire  ± master ●✚  
     /var/www/ProcessWire  ± master ●✚  ls ~/.phpbrew 
    bashrc  bin  build  init  php  tmp  variants
     /var/www/ProcessWire  ± master ●✚  ls ~/.phpbrew/bin 
     /var/www/ProcessWire  ± master ●✚  ls ~/.phpbrew/build 
    php-5.3.22.tar.bz2  php-5.3.29  php-5.3.29.tar.bz2  php-5.4.33  php-5.4.33.tar.bz2
     /var/www/ProcessWire  ± master ●✚  phpbrew use php-5.3.29
     /var/www/ProcessWire  ± master ●✚  
     /var/www/ProcessWire  ± master ●✚  php -v
    PHP 5.5.9-1ubuntu4.4 (cli) (built: Sep  4 2014 06:56:34) 
    Copyright (c) 1997-2014 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
        with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    
    
    Support 
    opened by harikt 55
  • Windows Cygwin - Error building PHP

    Windows Cygwin - Error building PHP

    I'm getting this:

    /cygdrive/c/Users/CMCDragonkai/.phpbrew/build/php-5.5.11/main/streams/cast.c:148:2: warning: (near initialization for ‘stream_cookie_functions.seek’) [enabled by default]
    /cygdrive/c/Users/CMCDragonkai/.phpbrew/build/php-5.5.11/Zend/zend_compile.c: In function ‘zend_traits_copy_functions’:
    /cygdrive/c/Users/CMCDragonkai/.phpbrew/build/php-5.5.11/Zend/zend_compile.c:4010:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
      lcname = hash_key->arKey;
             ^
    /usr/bin/ld: warning: --export-dynamic is not supported for PE+ targets, did you mean --export-all-symbols?
    ext/standard/basic_functions.o:basic_functions.c:(.text+0x364f): undefined reference to `zm_startup_password'
    ext/standard/basic_functions.o:basic_functions.c:(.text+0x364f): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `zm_startup_password'
    /usr/bin/ld: ext/standard/basic_functions.o: bad reloc address 0x18 in section `.data'
    collect2: error: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    Error% 
    

    when building: phpbrew install 5.5.11 +default +mb

    Here's the section of the log that matters.

    /bin/sh /cygdrive/c/Users/CMCDragonkai/.phpbrew/build/php-5.5.11/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -O3 -fvisibility=hidden     ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/ereg/ereg.lo ext/ereg/regex/regcomp.lo ext/ereg/regex/regexec.lo ext/ereg/regex/regerror.lo ext/ereg/regex/regfree.lo ext/libxml/libxml.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucd.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_newline.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/rt.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext/dom/dom_iterators.lo ext/dom/typeinfo.lo ext/dom/domerror.lo ext/dom/domlocator.lo ext/dom/namednodemap.lo ext/dom/userdatahandler.lo ext/fileinfo/fileinfo.lo ext/fileinfo/libmagic/apprentice.lo ext/fileinfo/libmagic/apptype.lo ext/fileinfo/libmagic/ascmagic.lo ext/fileinfo/libmagic/cdf.lo ext/fileinfo/libmagic/cdf_time.lo ext/fileinfo/libmagic/compress.lo ext/fileinfo/libmagic/encoding.lo ext/fileinfo/libmagic/fsmagic.lo ext/fileinfo/libmagic/funcs.lo ext/fileinfo/libmagic/is_tar.lo ext/fileinfo/libmagic/magic.lo ext/fileinfo/libmagic/print.lo ext/fileinfo/libmagic/readcdf.lo ext/fileinfo/libmagic/readelf.lo ext/fileinfo/libmagic/softmagic.lo ext/filter/filter.lo ext/filter/sanitizing_filters.lo ext/filter/logical_filters.lo ext/filter/callback_filter.lo ext/hash/hash.lo ext/hash/hash_md.lo ext/hash/hash_sha.lo ext/hash/hash_ripemd.lo ext/hash/hash_haval.lo ext/hash/hash_tiger.lo ext/hash/hash_gost.lo ext/hash/hash_snefru.lo ext/hash/hash_whirlpool.lo ext/hash/hash_adler32.lo ext/hash/hash_crc32.lo ext/hash/hash_fnv.lo ext/hash/hash_joaat.lo ext/json/json.lo ext/json/utf8_decode.lo ext/json/JSON_parser.lo ext/mbstring/oniguruma/regcomp.lo ext/mbstring/oniguruma/regerror.lo ext/mbstring/oniguruma/regexec.lo ext/mbstring/oniguruma/reggnu.lo ext/mbstring/oniguruma/regparse.lo ext/mbstring/oniguruma/regenc.lo ext/mbstring/oniguruma/regext.lo ext/mbstring/oniguruma/regsyntax.lo ext/mbstring/oniguruma/regtrav.lo ext/mbstring/oniguruma/regversion.lo ext/mbstring/oniguruma/st.lo ext/mbstring/oniguruma/enc/unicode.lo ext/mbstring/oniguruma/enc/ascii.lo ext/mbstring/oniguruma/enc/utf8.lo ext/mbstring/oniguruma/enc/euc_jp.lo ext/mbstring/oniguruma/enc/euc_tw.lo ext/mbstring/oniguruma/enc/euc_kr.lo ext/mbstring/oniguruma/enc/sjis.lo ext/mbstring/oniguruma/enc/iso8859_1.lo ext/mbstring/oniguruma/enc/iso8859_2.lo ext/mbstring/oniguruma/enc/iso8859_3.lo ext/mbstring/oniguruma/enc/iso8859_4.lo ext/mbstring/oniguruma/enc/iso8859_5.lo ext/mbstring/oniguruma/enc/iso8859_6.lo ext/mbstring/oniguruma/enc/iso8859_7.lo ext/mbstring/oniguruma/enc/iso8859_8.lo ext/mbstring/oniguruma/enc/iso8859_9.lo ext/mbstring/oniguruma/enc/iso8859_10.lo ext/mbstring/oniguruma/enc/iso8859_11.lo ext/mbstring/oniguruma/enc/iso8859_13.lo ext/mbstring/oniguruma/enc/iso8859_14.lo ext/mbstring/oniguruma/enc/iso8859_15.lo ext/mbstring/oniguruma/enc/iso8859_16.lo ext/mbstring/oniguruma/enc/koi8.lo ext/mbstring/oniguruma/enc/koi8_r.lo ext/mbstring/oniguruma/enc/big5.lo ext/mbstring/oniguruma/enc/utf16_be.lo ext/mbstring/oniguruma/enc/utf16_le.lo ext/mbstring/oniguruma/enc/utf32_be.lo ext/mbstring/oniguruma/enc/utf32_le.lo ext/mbstring/libmbfl/filters/html_entities.lo ext/mbstring/libmbfl/filters/mbfilter_7bit.lo ext/mbstring/libmbfl/filters/mbfilter_ascii.lo ext/mbstring/libmbfl/filters/mbfilter_base64.lo ext/mbstring/libmbfl/filters/mbfilter_big5.lo ext/mbstring/libmbfl/filters/mbfilter_byte2.lo ext/mbstring/libmbfl/filters/mbfilter_byte4.lo ext/mbstring/libmbfl/filters/mbfilter_cp1251.lo ext/mbstring/libmbfl/filters/mbfilter_cp1252.lo ext/mbstring/libmbfl/filters/mbfilter_cp1254.lo ext/mbstring/libmbfl/filters/mbfilter_cp5022x.lo ext/mbstring/libmbfl/filters/mbfilter_cp51932.lo ext/mbstring/libmbfl/filters/mbfilter_cp850.lo ext/mbstring/libmbfl/filters/mbfilter_cp866.lo ext/mbstring/libmbfl/filters/mbfilter_cp932.lo ext/mbstring/libmbfl/filters/mbfilter_cp936.lo ext/mbstring/libmbfl/filters/mbfilter_gb18030.lo ext/mbstring/libmbfl/filters/mbfilter_euc_cn.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_euc_jp_win.lo ext/mbstring/libmbfl/filters/mbfilter_euc_kr.lo ext/mbstring/libmbfl/filters/mbfilter_euc_tw.lo ext/mbstring/libmbfl/filters/mbfilter_htmlent.lo ext/mbstring/libmbfl/filters/mbfilter_hz.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_jp_ms.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_2004.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_iso2022_kr.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_10.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_13.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_14.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_15.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_16.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_2.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_3.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_4.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_5.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_6.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_7.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_8.lo ext/mbstring/libmbfl/filters/mbfilter_iso8859_9.lo ext/mbstring/libmbfl/filters/mbfilter_jis.lo ext/mbstring/libmbfl/filters/mbfilter_koi8r.lo ext/mbstring/libmbfl/filters/mbfilter_armscii8.lo ext/mbstring/libmbfl/filters/mbfilter_qprint.lo ext/mbstring/libmbfl/filters/mbfilter_sjis.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_open.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_mac.lo ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.lo ext/mbstring/libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.lo ext/mbstring/libmbfl/filters/mbfilter_ucs2.lo ext/mbstring/libmbfl/filters/mbfilter_ucs4.lo ext/mbstring/libmbfl/filters/mbfilter_uhc.lo ext/mbstring/libmbfl/filters/mbfilter_utf16.lo ext/mbstring/libmbfl/filters/mbfilter_utf32.lo ext/mbstring/libmbfl/filters/mbfilter_utf7.lo ext/mbstring/libmbfl/filters/mbfilter_utf7imap.lo ext/mbstring/libmbfl/filters/mbfilter_utf8.lo ext/mbstring/libmbfl/filters/mbfilter_utf8_mobile.lo ext/mbstring/libmbfl/filters/mbfilter_uuencode.lo ext/mbstring/libmbfl/filters/mbfilter_koi8u.lo ext/mbstring/libmbfl/mbfl/mbfilter.lo ext/mbstring/libmbfl/mbfl/mbfilter_8bit.lo ext/mbstring/libmbfl/mbfl/mbfilter_pass.lo ext/mbstring/libmbfl/mbfl/mbfilter_wchar.lo ext/mbstring/libmbfl/mbfl/mbfl_convert.lo ext/mbstring/libmbfl/mbfl/mbfl_encoding.lo ext/mbstring/libmbfl/mbfl/mbfl_filter_output.lo ext/mbstring/libmbfl/mbfl/mbfl_ident.lo ext/mbstring/libmbfl/mbfl/mbfl_language.lo ext/mbstring/libmbfl/mbfl/mbfl_memory_device.lo ext/mbstring/libmbfl/mbfl/mbfl_string.lo ext/mbstring/libmbfl/mbfl/mbfl_allocators.lo ext/mbstring/libmbfl/nls/nls_de.lo ext/mbstring/libmbfl/nls/nls_en.lo ext/mbstring/libmbfl/nls/nls_ja.lo ext/mbstring/libmbfl/nls/nls_kr.lo ext/mbstring/libmbfl/nls/nls_neutral.lo ext/mbstring/libmbfl/nls/nls_ru.lo ext/mbstring/libmbfl/nls/nls_uni.lo ext/mbstring/libmbfl/nls/nls_zh.lo ext/mbstring/libmbfl/nls/nls_hy.lo ext/mbstring/libmbfl/nls/nls_tr.lo ext/mbstring/libmbfl/nls/nls_ua.lo ext/mbstring/mbstring.lo ext/mbstring/php_unicode.lo ext/mbstring/mb_gpc.lo ext/mbstring/php_mbregex.lo ext/mcrypt/mcrypt.lo ext/mcrypt/mcrypt_filter.lo ext/pcntl/pcntl.lo ext/pcntl/php_signal.lo ext/pdo/pdo.lo ext/pdo/pdo_dbh.lo ext/pdo/pdo_stmt.lo ext/pdo/pdo_sql_parser.lo ext/pdo/pdo_sqlstate.lo ext/phar/util.lo ext/phar/tar.lo ext/phar/zip.lo ext/phar/stream.lo ext/phar/func_interceptors.lo ext/phar/dirstream.lo ext/phar/phar.lo ext/phar/phar_object.lo ext/phar/phar_path_check.lo ext/posix/posix.lo ext/readline/readline.lo ext/readline/readline_cli.lo ext/reflection/php_reflection.lo ext/session/mod_user_class.lo ext/session/session.lo ext/session/mod_files.lo ext/session/mod_mm.lo ext/session/mod_user.lo ext/shmop/shmop.lo ext/simplexml/simplexml.lo ext/simplexml/sxe.lo ext/sockets/sockets.lo ext/sockets/multicast.lo ext/sockets/conversions.lo ext/sockets/sockaddr_conv.lo ext/sockets/sendrecvmsg.lo ext/spl/php_spl.lo ext/spl/spl_functions.lo ext/spl/spl_engine.lo ext/spl/spl_iterators.lo ext/spl/spl_array.lo ext/spl/spl_directory.lo ext/spl/spl_exceptions.lo ext/spl/spl_observer.lo ext/spl/spl_dllist.lo ext/spl/spl_heap.lo ext/spl/spl_fixedarray.lo ext/standard/crypt_freesec.lo ext/standard/crypt_blowfish.lo ext/standard/crypt_sha512.lo ext/standard/crypt_sha256.lo ext/standard/php_crypt_r.lo ext/standard/array.lo ext/standard/base64.lo ext/standard/basic_functions.lo ext/standard/browscap.lo ext/standard/crc32.lo ext/standard/crypt.lo ext/standard/cyr_convert.lo ext/standard/datetime.lo ext/standard/dir.lo ext/standard/dl.lo ext/standard/dns.lo ext/standard/exec.lo ext/standard/file.lo ext/standard/filestat.lo ext/standard/flock_compat.lo ext/standard/formatted_print.lo ext/standard/fsock.lo ext/standard/head.lo ext/standard/html.lo ext/standard/image.lo ext/standard/info.lo ext/standard/iptc.lo ext/standard/lcg.lo ext/standard/link.lo ext/standard/mail.lo ext/standard/math.lo ext/standard/md5.lo ext/standard/metaphone.lo ext/standard/microtime.lo ext/standard/pack.lo ext/standard/pageinfo.lo ext/standard/quot_print.lo ext/standard/rand.lo ext/standard/soundex.lo ext/standard/string.lo ext/standard/scanf.lo ext/standard/syslog.lo ext/standard/type.lo ext/standard/uniqid.lo ext/standard/url.lo ext/standard/var.lo ext/standard/versioning.lo ext/standard/assert.lo ext/standard/strnatcmp.lo ext/standard/levenshtein.lo ext/standard/incomplete_class.lo ext/standard/url_scanner_ex.lo ext/standard/ftp_fopen_wrapper.lo ext/standard/http_fopen_wrapper.lo ext/standard/php_fopen_wrapper.lo ext/standard/credits.lo ext/standard/css.lo ext/standard/var_unserializer.lo ext/standard/ftok.lo ext/standard/sha1.lo ext/standard/user_filters.lo ext/standard/uuencode.lo ext/standard/filters.lo ext/standard/proc_open.lo ext/standard/streamsfuncs.lo ext/standard/http.lo ext/standard/password.lo ext/sysvmsg/sysvmsg.lo ext/sysvsem/sysvsem.lo ext/sysvshm/sysvshm.lo ext/tokenizer/tokenizer.lo ext/tokenizer/tokenizer_data.lo ext/xml/xml.lo ext/xml/compat.lo ext/xmlreader/php_xmlreader.lo ext/xmlwriter/php_xmlwriter.lo ext/xsl/php_xsl.lo ext/xsl/xsltprocessor.lo ext/zip/php_zip.lo ext/zip/zip_stream.lo ext/zip/lib/zip_add.lo ext/zip/lib/zip_error.lo ext/zip/lib/zip_fclose.lo ext/zip/lib/zip_fread.lo ext/zip/lib/zip_open.lo ext/zip/lib/zip_source_filep.lo ext/zip/lib/zip_strerror.lo ext/zip/lib/zip_close.lo ext/zip/lib/zip_error_get.lo ext/zip/lib/zip_file_error_get.lo ext/zip/lib/zip_free.lo ext/zip/lib/zip_rename.lo ext/zip/lib/zip_source_free.lo ext/zip/lib/zip_unchange_all.lo ext/zip/lib/zip_delete.lo ext/zip/lib/zip_error_get_sys_type.lo ext/zip/lib/zip_file_get_offset.lo ext/zip/lib/zip_get_name.lo ext/zip/lib/zip_replace.lo ext/zip/lib/zip_source_function.lo ext/zip/lib/zip_unchange.lo ext/zip/lib/zip_dirent.lo ext/zip/lib/zip_error_strerror.lo ext/zip/lib/zip_filerange_crc.lo ext/zip/lib/zip_file_strerror.lo ext/zip/lib/zip_get_num_files.lo ext/zip/lib/zip_get_archive_flag.lo ext/zip/lib/zip_set_archive_flag.lo ext/zip/lib/zip_set_name.lo ext/zip/lib/zip_source_zip.lo ext/zip/lib/zip_unchange_data.lo ext/zip/lib/zip_entry_free.lo ext/zip/lib/zip_error_to_str.lo ext/zip/lib/zip_fopen.lo ext/zip/lib/zip_name_locate.lo ext/zip/lib/zip_source_buffer.lo ext/zip/lib/zip_stat.lo ext/zip/lib/zip_entry_new.lo ext/zip/lib/zip_err_str.lo ext/zip/lib/zip_fopen_index.lo ext/zip/lib/zip_get_archive_comment.lo ext/zip/lib/zip_get_file_comment.lo ext/zip/lib/zip_new.lo ext/zip/lib/zip_source_file.lo ext/zip/lib/zip_stat_index.lo ext/zip/lib/zip_set_archive_comment.lo ext/zip/lib/zip_set_file_comment.lo ext/zip/lib/zip_unchange_archive.lo ext/zip/lib/zip_memdup.lo ext/zip/lib/zip_stat_init.lo ext/zip/lib/zip_add_dir.lo ext/zip/lib/zip_error_clear.lo ext/zip/lib/zip_file_error_clear.lo ext/zip/lib/zip_fdopen.lo ext/zip/lib/zip_fopen_encrypted.lo ext/zip/lib/zip_fopen_index_encrypted.lo ext/zip/lib/zip_get_compression_implementation.lo ext/zip/lib/zip_get_encryption_implementation.lo ext/zip/lib/zip_get_file_extra.lo ext/zip/lib/zip_get_num_entries.lo ext/zip/lib/zip_set_default_password.lo ext/zip/lib/zip_set_file_extra.lo ext/zip/lib/zip_source_close.lo ext/zip/lib/zip_source_crc.lo ext/zip/lib/zip_source_deflate.lo ext/zip/lib/zip_source_error.lo ext/zip/lib/zip_source_layered.lo ext/zip/lib/zip_source_open.lo ext/zip/lib/zip_source_pkware.lo ext/zip/lib/zip_source_pop.lo ext/zip/lib/zip_source_read.lo ext/zip/lib/zip_source_stat.lo TSRM/TSRM.lo TSRM/tsrm_strtok_r.lo TSRM/tsrm_virtual_cwd.lo main/main.lo main/snprintf.lo main/spprintf.lo main/php_sprintf.lo main/fopen_wrappers.lo main/alloca.lo main/php_scandir.lo main/php_ini.lo main/SAPI.lo main/rfc1867.lo main/php_content_types.lo main/strlcpy.lo main/strlcat.lo main/mergesort.lo main/reentrancy.lo main/php_variables.lo main/php_ticks.lo main/network.lo main/php_open_temporary_file.lo main/output.lo main/getopt.lo main/streams/streams.lo main/streams/cast.lo main/streams/memory.lo main/streams/filter.lo main/streams/plain_wrapper.lo main/streams/userspace.lo main/streams/transports.lo main/streams/xp_socket.lo main/streams/mmap.lo main/streams/glob_wrapper.lo Zend/zend_language_parser.lo Zend/zend_language_scanner.lo Zend/zend_ini_parser.lo Zend/zend_ini_scanner.lo Zend/zend_alloc.lo Zend/zend_compile.lo Zend/zend_constants.lo Zend/zend_dynamic_array.lo Zend/zend_dtrace.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_vm_opcodes.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_gc.lo Zend/zend_closures.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_execute.lo main/internal_functions_cli.lo sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo sapi/cli/ps_title.lo sapi/cli/php_cli_process_title.lo -lz -lexslt -lreadline -lmcrypt -lltdl -lbz2 -lz -lrt -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxslt -lxml2 -lz -liconv -lm  -o sapi/cli/php
    Makefile:249: recipe for target 'sapi/cli/php' failed
    

    Any ideas why building sapi/cli/php is failing?

    opened by CMCDragonkai 53
  • configure: error: Could not find libpcre.(a|so) in /usr/local

    configure: error: Could not find libpcre.(a|so) in /usr/local

    I can't seem to get php 5.4.22 compiled. It errors out with:

    configure: error: Could not find libpcre.(a|so) in /usr/local

    PCRE and dev libraries are installed both via apt-get and I tried compiling it myself. But still no love.

    find /usr/ -name "libpcre.so" /usr/lib/i386-linux-gnu/libpcre.so /usr/local/lib/libpcre.so

    find /usr/ -name "pcre.h" /usr/include/php5/ext/pcre/pcrelib/pcre.h /usr/include/pcre.h /usr/local/include/pcre.h

    I'm on Ubuntu 12.04 32bit phpbrew - 1.11.2 cliframework core: 1.5.12

    I've been able to install other versions of php before. I did upgrade phpbrew but not sure from what version as I didn't check prior to running self update. Not sure why its not working now.

    Any thoughts? What would I need to provide to help trouble shoot this?

    Thanks, Alan

    opened by alanhartless 40
  • Can't install gd with jpeg support

    Can't install gd with jpeg support

    I'm trying to install the gd extension to support jpeg, but I can't do it.

    I've installed libjpeg with homebrew and set the --with-jpeg-dir flag to point to the directory where homebrew installed it.

    But I still can't make it work.

    The gd_info() shows me:

    array (size=11)
      'GD Version' => string 'bundled (2.1.0 compatible)' (length=26)
      'FreeType Support' => boolean false
      'T1Lib Support' => boolean false
      'GIF Read Support' => boolean true
      'GIF Create Support' => boolean true
      'JPEG Support' => boolean false
      'PNG Support' => boolean true
      'WBMP Support' => boolean true
      'XPM Support' => boolean false
      'XBM Support' => boolean true
      'JIS-mapped Japanese Font Support' => boolean false
    

    Any tips?

    opened by drgomesp 39
  • Help installing phpbrew OS X 10.9.3

    Help installing phpbrew OS X 10.9.3

    $ phpbrew lookup-prefix homebrew returns Command lookup-prefix not found.

    I'm new to phpbrew. I've been using homebrew for a very long time and have a ton of packages installed. Right before this, I ran and received the following and have added source ~/.phpbrew/bashrc to .bashrc:

    `[computer name]:~ [username]$ phpbrew init
    
    Warning: touch(): Unable to create file /Users/[username]/.phpbrew/.metadata_never_index because No such file or directory in phar:///usr/bin/phpbrew/PhpBrew/Command/InitCommand.php on line 2
    Phpbrew environment is initialized, required directories are created under
    
        /Users/[username]/.phpbrew
    
    Paste the following line(s) to the end of your ~/.bashrc and start a
    new shell, phpbrew should be up and fully functional from there:
    
        source /Users/[username]/.phpbrew/bashrc
    
    To enable PHP version info in your shell prompt, please set PHPBREW_SET_PROMPT=1
    in your `~/.bashrc` before you source `~/.phpbrew/bashrc`
    
        export PHPBREW_SET_PROMPT=1
    
    For further instructions, simply run `phpbrew` to see the help message.
    
    Enjoy phpbrew at $HOME!!`
    
    Support 
    opened by tejasmanohar 35
  • Removing an installation + autocomplete

    Removing an installation + autocomplete

    Executing the following command does not work:

    $ phpbrew remove 5.6.6

    It requires a specific directory, not just the version:

    $ phpbrew remove php-5.6.6

    Bug 
    opened by sagikazarmark 34
  • Extensions installation issue for 5.3 and 5.4

    Extensions installation issue for 5.3 and 5.4

    Hi,

    I would to use this app to manage different PHP versions on my LAMP Server (ubuntu 14.04) but I ran into fails every the same like :

    Error: Configure failed: 1
    Configure options: --disable-all --enable-phar --enable-session --enable-short-tags --enable-tokenizer --with-pcre-regex --with-zlib=/usr --with-libdir=lib/i386-linux-gnu --enable-dom --enable-libxml --enable-simplexml --enable-xml --enable-xmlreader --enable-xmlwriter --with-xsl --with-libxml-dir=/usr --enable-bcmath --enable-calendar --enable-cli --enable-ctype --enable-dom --enable-fileinfo --enable-filter --enable-shmop --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-json --enable-mbregex --enable-mbstring --with-mhash --with-mcrypt --enable-pcntl --with-pcre-regex --enable-pdo --enable-phar --enable-posix --with-readline=/usr --enable-sockets --enable-tokenizer --with-curl=/usr --with-openssl=/usr --enable-zip 
    

    So I think there is a miss-setting (?) in my $PATH or in my php.ini perhaps.. If someone could hepl me on this.

    thanks

    opened by webmasterpf 32
  • Cannot install without xml_all or default

    Cannot install without xml_all or default

    I would like to install PHP 5.6.0 barebones, but when I try it complains about XML not being enabled:

    Configuring PEAR
    checking whether to install PEAR... yes
    configure: error: 
                        PEAR requires XML to be enabled.     Add --enable-xml to the configure line. (or --without-pear)
    

    I don't want PEAR anyway, but if it has to be there for PECL to work then so be it, but I'd like the "minimal" approach to actually work without extra options.

    Is there anything that can be done to make the minimum approach actually install?

    Improvement Support 
    opened by philsturgeon 30
  • whereis: illegal option -- b

    whereis: illegal option -- b

    After a recent update, I'm getting the following error when trying to run phpbrew:

    $ phpbrew
    whereis: illegal option -- b
    usage: whereis program [...]
    

    (this comes from bashrc#L100)

    The following section is from the manual page for whereis:

    COMPATIBILITY
         The historic flags and arguments for the whereis utility are no longer available in this version.
    

    This is on OSX Yosemite Version 10.10.3 (for reference: Apple whereis manual)

    opened by pierredup 29
  • php 7.4 on macos

    php 7.4 on macos

    Alternatively, you may set the environment variables OPENSSL_CFLAGS

    and OPENSSL_LIBS to avoid the need to call pkg-config.

    See the pkg-config man page for more details.

    no matter what command I changed I even copied php 7.3 configure parameters from homebrew

    macOS PHP 7.4 OpenSSL 
    opened by if4lcon 28
  • Refactoring extension known / install codes. and NOW also support bitbucket.

    Refactoring extension known / install codes. and NOW also support bitbucket.

    Again, I have refactoring extension known / install codes that make us register new extension hosting services more easily.

    And for example, a new bitbucket hosting has added. Now we can using phpbrew to install extension from pecl , github , bitbucket or whatever ...

    Known example:

    phpbrew ext known xdebug    // from pecl.
    
    phpbrew ext known https://github.com/phalcon/cphalcon   // from github
    
    phpbrew ext known https://bitbucket.org/osmanov/pecl-event    // from bitbucket
    

    install example:

    phpbrew ext install xdebug    // from pecl.
    
    phpbrew ext install https://github.com/phalcon/cphalcon   // from github
    
    phpbrew ext install https://bitbucket.org/osmanov/pecl-event    // from bitbucket
    

    Signed-off-by: Rack Lin [email protected]

    opened by racklin 27
  • Bump symfony/yaml from 5.4.16 to 5.4.17

    Bump symfony/yaml from 5.4.16 to 5.4.17

    Bumps symfony/yaml from 5.4.16 to 5.4.17.

    Release notes

    Sourced from symfony/yaml's releases.

    v5.4.17

    Changelog (https://github.com/symfony/yaml/compare/v5.4.16...v5.4.17)

    • bug #48331 fix dumping top-level tagged values (xabbuh)
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • Bump php-vcr/php-vcr from 1.5.4 to 1.5.5

    Bump php-vcr/php-vcr from 1.5.4 to 1.5.5

    Bumps php-vcr/php-vcr from 1.5.4 to 1.5.5.

    Release notes

    Sourced from php-vcr/php-vcr's releases.

    1.5.5

    What's Changed

    Full Changelog: https://github.com/php-vcr/php-vcr/compare/1.5.4...1.5.5

    Commits
    • fde2ab6 Merge pull request #384 from php-vcr/383-backport-fix-code-transformation-on-...
    • df90936 FIX: Read the whole stream and perform code transformations
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Dependencies 
    opened by dependabot[bot] 1
  • PHP name or alias is not honored using phpbrew v2

    PHP name or alias is not honored using phpbrew v2

    The php name is not honored if I use the syntax with "as" or with --name

    Output

    root@d5server:~# phpbrew list PHP Warning: Module 'blackfire' already loaded in Unknown on line 0

    • (system) php-8.1.12 phpbrew7_4_32_fdev phpbrew7_0_33_fdev

    Expected Result

    The installed version has the following name

    phpbrew8_1_12_fdev
    

    Command

    Paste your phpbrew install command here (be sure to install with --debug flag, e.g. phpbrew --debug install)

    export PHPBREW_VERSION='8.1.12' export PHPBREW_VERSION_ALIAS='phpbrew8_1_12_fdev'

    phpbrew --debug install "$PHPBREW_VERSION" +default +small +mb +dbs +fpm -wddx +openssl=/usr -- --with-pspell --disable-shmop as "$PHPBREW_VERSION_ALIAS"

    or

    phpbrew --debug install "$PHPBREW_VERSION" +default +small +mb +dbs +fpm -wddx +openssl=/usr -- --with-pspell --disable-shmop --name="$PHPBREW_VERSION_ALIAS"

    Build Log

    Platform

    root@d5server:~# phpbrew --version PHP Warning: Module 'blackfire' already loaded in Unknown on line 0 phpbrew - 2.0.0 cliframework core: 2.5.4

    root@d5server:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"

    Running PHP:

    root@d5server:~# php -v
    PHP Warning:  Module 'blackfire' already loaded in Unknown on line 0
    PHP 7.2.24-0ubuntu0.18.04.15 (cli) (built: Nov  2 2022 09:09:52) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.24-0ubuntu0.18.04.15, Copyright (c) 1999-2018, by Zend Technologies
        with the ionCube PHP Loader + ionCube24 v10.4.5, Copyright (c) 2002-2020, by ionCube Ltd.
        with blackfire v1.86.1~linux-x64-non_zts72, https://blackfire.io, by Blackfire
    

    Installing PHP: 8.1.12

    Dependencies 
    opened by ioweb-gr 10
  • Errors on phpbrew ext install imagick

    Errors on phpbrew ext install imagick

    Output

    Downloading https://pecl.php.net/rest/r/imagick/stable.txt via curl extension
    [==================================================================] 5.00/5.00B 100%
    Downloading https://pecl.php.net/rest/r/imagick/3.7.0.xml via curl extension
    [==================================================================] 842.00/842.00B 100%
    Downloading https://pecl.php.net/rest/r/imagick/stable.txt via curl extension
    [==================================================================] 5.00/5.00B 100%
    Downloading https://pecl.php.net/rest/r/imagick/3.7.0.xml via curl extension
    [==================================================================] 842.00/842.00B 100%
    Downloading https://pecl.php.net/get/imagick-3.7.0.tgz via curl extension
    [==================================================================] 351.70/351.70KB 100%
    ===> Extracting to /Users/benjamin/.phpbrew/build/php-8.1.12/ext...
    [ ] imagick extension is already disabled for SAPI .
    ===> Installing imagick extension...
    Log stored at: /Users/benjamin/.phpbrew/build/php-8.1.12/ext/imagick/build.log
    Changing directory to /Users/benjamin/.phpbrew/build/php-8.1.12/ext/imagick
    ===> Phpize...
    ===> Configuring...
    Error: Command failed: ./configure '--with-php-config=/Users/benjamin/.phpbrew/php/php-8.1.12/bin/php-config' >> '/Users/benjamin/.phpbrew/build/php-8.1.12/ext/imagick/build.log' 2>&1 returns:
    PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 131
    PHP Stack trace:
    PHP   1. {main}() /usr/local/bin/phpbrew:0
    PHP   2. require() /usr/local/bin/phpbrew:14
    PHP   3. PhpBrew\Console->runWithTry($argv = [0 => '/usr/local/bin/phpbrew', 1 => 'ext', 2 => 'install', 3 => 'imagick']) phar:///usr/local/bin/phpbrew/bin/phpbrew:26
    PHP   4. file_exists($filename = NULL) phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php:131
    
    Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 131
    
    Call Stack:
        0.0057    2078784   1. {main}() /usr/local/bin/phpbrew:0
        0.0414    2812112   2. require('phar:///usr/local/bin/phpbrew/bin/phpbrew') /usr/local/bin/phpbrew:14
        0.0461    3453480   3. PhpBrew\Console->runWithTry($argv = [0 => '/usr/local/bin/phpbrew', 1 => 'ext', 2 => 'install', 3 => 'imagick']) phar:///usr/local/bin/phpbrew/bin/phpbrew:26
        6.8791    5951512   4. file_exists($filename = NULL) phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php:131
    

    Expected Result

    Done.
    

    Command

    Paste your phpbrew install command here (be sure to install with --debug flag, e.g. phpbrew --debug install)

    phpbrew ext install imagick
    

    Build Log

    Platform

    OS:

    e.g. OS X Ventura 13.1
    

    Running PHP: 8.1.12

    Installing PHP: 8.1.12

    opened by benjamindulau 1
  • Cannot show result of phpbrew known

    Cannot show result of phpbrew known

    Output

    PHP Deprecated:  Creation of dynamic property PhpBrew\Console::$loader is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/Application.php on line 117
    
    Deprecated: Creation of dynamic property PhpBrew\Console::$loader is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/Application.php on line 117
    PHP Deprecated:  Creation of dynamic property CLIFramework\ArgInfo::$desc is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/ArgInfo.php on line 38
    
    Deprecated: Creation of dynamic property CLIFramework\ArgInfo::$desc is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/ArgInfo.php on line 38
    PHP Deprecated:  Creation of dynamic property CLIFramework\ArgInfo::$desc is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/ArgInfo.php on line 38
    
    Deprecated: Creation of dynamic property CLIFramework\ArgInfo::$desc is deprecated in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/vendor/corneltek/cliframework/src/ArgInfo.php on line 38
    ===> Fetching release list...
    Downloading https://www.php.net/releases/index.php?json=1&version=8&max=100 via curl extension
    Downloading https://www.php.net/releases/index.php?json=1&version=7&max=100 via curl extension
    PHP Warning:  file_put_contents(/Users/kresnasatya/.phpbrew/php-releases.json): Failed to open stream: No such file or directory in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/src/PhpBrew/ReleaseList.php on line 129
    
    Warning: file_put_contents(/Users/kresnasatya/.phpbrew/php-releases.json): Failed to open stream: No such file or directory in phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/src/PhpBrew/ReleaseList.php on line 129
    Exception: Can't store release json file
    Trace:
    
        0) PhpBrew\ReleaseList->save()
        1) PhpBrew\ReleaseList->fetchRemoteReleaseList(GetOptionKit\OptionResult)
        2) PhpBrew\Tasks\FetchReleaseListTask->fetch()
        3) PhpBrew\Command\KnownCommand->execute()
        4) call_user_func_array([PhpBrew\Command\KnownCommand, 'execute'], [])
        5) CLIFramework\CommandBase->executeWrapper([])
        6) CLIFramework\Application->run(['/opt/homebrew/bin/phpbrew', 'known'])
        7) PhpBrew\Console->runWithTry(['/opt/homebrew/bin/phpbrew', 'known'])
        8) require('phar:///opt/homebrew/Cellar/phpbrew/2.0.0/bin/phpbrew/bin/phpbrew')
    

    Expected Result

    phpbrew known
    
    7.0: 7.0.3, 7.0.2, 7.0.1, 7.0.0 ...
    5.6: 5.6.18, 5.6.17, 5.6.16, 5.6.15, 5.6.14, 5.6.13, 5.6.12, 5.6.11 ...
    5.5: 5.5.32, 5.5.31, 5.5.30, 5.5.29, 5.5.28, 5.5.27, 5.5.26, 5.5.25 ...
    5.4: 5.4.45, 5.4.44, 5.4.43, 5.4.42, 5.4.41, 5.4.40, 5.4.39, 5.4.38 ...
    5.3: 5.3.29, 5.3.28 ...
    

    Command

    Here's the command I run:

    phpbrew known
    

    Platform

    OS:

    e.g. macOS 13.1 M1
    

    phpbrew version: 2.0.0

    I was set php version 8.2.0 as default version. I install that php with homebrew.

    PHP 8.2 
    opened by kresnasatya 2
Releases(2.0.0)
Owner
PHPBrew
The PHPBrew Headquarters
PHPBrew
Simple PHP version management

phpenv - PHP multi-version installation and management for humans. Key features: My name is phpenv. I was designed for humans, to help simplify the ma

php multiple release management 4 humans 1.3k Dec 30, 2022
Thin Wrapper around rbenv for PHP version managment

phpenv ![Gitter](https://badges.gitter.im/Join Chat.svg) Sets up a separate rbenv environment for PHP man page SYNOPSIS phpenv-install.sh UPDATE=yes p

Christoph Hochstrasser 571 Dec 29, 2022
virtPHP is a tool to create isolated PHP environments.

virtPHP is a tool for creating and managing multiple isolated PHP environments on a single machine. It's like Python's virtualenv, but for PHP. virtPH

VirtPHP 538 Sep 14, 2022
🔰 Instant PHP quality checks from your console

PHP Insights was carefully crafted to simplify the analysis of your code directly from your terminal, and is the perfect starting point to analyze the code quality of your PHP projects.

Nuno Maduro 4.8k Dec 27, 2022
Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP

Brew PHP switcher is a simple shell script to switch your apache and CLI quickly between major versions of PHP. If you support multiple products/projects that are built using either brand new or old legacy PHP functionality. For users of Homebrew (or brew for short) currently only.

Phil Cook 872 Dec 22, 2022
YCOM Impersonate. Login as selected YCOM user 🧙‍♂️in frontend.

YCOM Impersonate Login as selected YCOM user in frontend. Features: Backend users with admin rights or YCOM[] rights, can be automatically logged in v

Friends Of REDAXO 17 Sep 12, 2022
A Laravel package to manage versions of endpoints in an elegant way

API version control A Laravel package to manage versions of endpoints in an elegant way Two ways to manage the versions of your endpoints Option 1: Ve

Reindert 156 Dec 9, 2022
meterN is a lightweight set of PHP/JS files that make a " Home energy metering & monitoring " solution.

meterN - Home energy monitor - (PHP/JS Energy Metering & Monitoring) What can meterN do for you ? meterN is a lightweight set of PHP/JS files that mak

Jean-Marc Louviaux 4 Nov 30, 2022
Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people home in decoration positions and others.

Iran-Decoration Platform Iran decoration platform is an open source Php web application where you can find your job as a freelancer working in people

AmirHossein Mohammadi 8 Dec 14, 2022
☁️ Nextcloud server, a safe home for all your data

Nextcloud Server ☁ A safe home for all your data. Why is this so awesome? ?? ?? Access your Data You can store your files, contacts, calendars and mor

Nextcloud 21.1k Dec 31, 2022
🍿 An AirPlay friendly web interface to stream your movies and TV shows from a home server.

Airflix Airflix is a web application for browsing and playing movies and TV shows from a local home server. The overall goal of the project is to prov

Brian Wells 437 Dec 22, 2022
This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.

Resolving Oracle Cloud "Out of Capacity" issue and getting free VPS with 4 ARM cores / 24GB of memory Very neat and useful configuration was recently

Alexander Hitrov 323 Jan 6, 2023
Data driven home automation.

DataWhare Whare (Māori noun) house, building, residence, dwelling, shed, hut, habitation. Data driven home automation. Collects data from various sens

Mark Zeman 9 Sep 23, 2022
A Wordpress plugin that allows you to customize a news feed on your home page

=== Plugin Name === Contributors: Noora Chahine Requires at least: 4.0.1 Tested up to: 5.4 Stable tag: 5.2 License: GPLv2 or later License URI: http:/

Noora Chahine 1 Nov 15, 2021
Intranet Home Page is a highly-configurable self-hosted browser homepage with integrations for public and local data feeds.

Intranet-Home-Page Created in response to personal "dashboards" that are little more than pages with a list of frequently accessed links, Intranet Hom

null 56 Aug 27, 2022
Home of the Joomla! Content Management System

Joomla! CMS™ Build Status Drone-CI AppVeyor PHP Node npm Overview This is the source of Joomla! 4.x. Joomla's Official website. Joomla! 4.0 version hi

Joomla! 4.3k Jan 1, 2023
A full-featured home hosted Cloud Drive, Personal Assistant, App Launcher, File Converter, Streamer, Share Tool & More!

A Fully Featured home-hosted Cloud Storage platform and Personal Assistant that Converts files, OCR's images & documents, Creates archives, Scans for viruses, Protects your server, Keeps itself up-to-date, and Runs your own AppLauncher!

Justin Grimes 178 Dec 26, 2022
You already have your dream house? Sam Building will help you find the perfect home.

SAM BUILDING Setup Fork or clone this repo! git clone github.com/Igorballo/Real-Estate-App.git Installation des dépendances npm install #or yarn insta

null 4 Nov 29, 2022
Tarfin Take-Home Coding Challenge

TarfinKart Problemi Bu problemin temel amacı, kodlama stilini ve seçimlerini belirleyebilmektir. TarfinKart Problemi benzeri görülmemiş bir çözüm geli

Tarfin 3 Jun 8, 2022
Builds PHP so that multiple versions can be used side by side.

php-build php-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from

php-build 959 Dec 14, 2022