fpoirotte / phpfarm

Fork from the original phpfarm developed by Christian Weiske (@cweiske/phpfarm)
GNU Affero General Public License v3.0
118 stars 37 forks source link

Fatal in PHP8 . php-7.4.9 PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in ...pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ChannelRegistry/Base.php on line 78 #27

Closed ildar-aim closed 4 years ago

ildar-aim commented 5 years ago

It works but

.......
mysqlnd_result.lo ext/mysqlnd/mysqlnd_result_meta.lo ext/mysqlnd/mysqlnd_debug.lo ext/mysqlnd/mysqlnd_commands.lo ext/mysqlnd/mysqlnd_block_alloc.lo ext/mysqlnd/mysqlnd_read_buffer.lo ext/mysqlnd/mysqlnd_plugin.lo ext/mysqlnd/php_mysqlnd.lo ext/mysqlnd/mysqlnd_ps.lo ext/mysqlnd/mysqlnd_ps_codec.lo TSRM/TSRM.lo main/main.lo main/snprintf.lo main/spprintf.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/explicit_bzero.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/php_syslog.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_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_builtin_functions.lo Zend/zend_ini.lo Zend/zend_sort.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_weakrefs.lo Zend/zend_float.lo Zend/zend_string.lo Zend/zend_signal.lo Zend/zend_generators.lo Zend/zend_virtual_cwd.lo Zend/zend_ast.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_default_classes.lo Zend/zend_inheritance.lo Zend/zend_smart_str.lo Zend/zend_cpuinfo.lo Zend/zend_execute.lo main/internal_functions_cli.lo main/fastcgi.lo sapi/cgi/cgi_main.lo -lcrypt -lresolv -lcrypt -lreadline -lncurses -lrt -lm -ldl -lxml2 -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lssl -lcrypto -lonig -lsqlite3 -lxml2 -lxml2 -lcrypt -lxml2 -lxml2 -lxml2 -lssl -lcrypto -lcrypt  -o sapi/cgi/php-cgi
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
directorytreeiterator.inc
clicommand.inc
pharcommand.inc
invertedregexiterator.inc
directorygraphiterator.inc
phar.inc
Installing shared extensions:     /opt/phpfarm_new/inst/php-7.4.0beta2/lib/php/20190529-debug/
Installing PHP CLI binary:        /opt/phpfarm_new/inst/php-7.4.0beta2/bin/
Installing PHP CLI man page:      /opt/phpfarm_new/inst/php-7.4.0beta2/share/man/man1/
Installing PHP FPM binary:        /opt/phpfarm_new/inst/php-7.4.0beta2/sbin/
Installing PHP FPM defconfig:     /opt/phpfarm_new/inst/php-7.4.0beta2/etc/
Installing PHP FPM man page:      /opt/phpfarm_new/inst/php-7.4.0beta2/share/man/man8/
Installing PHP FPM status page:   /opt/phpfarm_new/inst/php-7.4.0beta2/share/php/fpm/
Installing phpdbg binary:         /opt/phpfarm_new/inst/php-7.4.0beta2/bin/
Installing phpdbg man page:       /opt/phpfarm_new/inst/php-7.4.0beta2/share/man/man1/
Installing PHP CGI binary:        /opt/phpfarm_new/inst/php-7.4.0beta2/bin/
Installing PHP CGI man page:      /opt/phpfarm_new/inst/php-7.4.0beta2/share/man/man1/
Installing build environment:     /opt/phpfarm_new/inst/php-7.4.0beta2/lib/php/build/
Installing header files:          /opt/phpfarm_new/inst/php-7.4.0beta2/include/php/
(CONFIG_FILES=scripts/phpize CONFIG_HEADERS= /opt/phpfarm_new/src/php-7.4.0beta2/config.status)
config.status: creating scripts/phpize
config.status: executing default commands

+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE. By continuing this installation  |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

(CONFIG_FILES=scripts/php-config CONFIG_HEADERS= /opt/phpfarm_new/src/php-7.4.0beta2/config.status)
config.status: creating scripts/php-config
config.status: executing default commands

+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE. By continuing this installation  |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Installing helper programs:       /opt/phpfarm_new/inst/php-7.4.0beta2/bin/
  program: phpize
  program: php-config
Installing man pages:             /opt/phpfarm_new/inst/php-7.4.0beta2/share/man/man1/
  page: phpize.1
  page: php-config.1
/opt/phpfarm_new/src/php-7.4.0beta2/build/shtool install -c ext/phar/phar.phar /opt/phpfarm_new/inst/php-7.4.0beta2/bin
ln -s -f phar.phar /opt/phpfarm_new/inst/php-7.4.0beta2/bin/phar
Installing PDO headers:           /opt/phpfarm_new/inst/php-7.4.0beta2/include/php/ext/pdo/
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /opt/phpfarm_new/inst/php-7.4.0beta2/pear
PHP Deprecated:  Array and string offset access syntax with curly braces is deprecated in phar:///opt/phpfarm_new/src/bzips/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ChannelRegistry/Base.php on line 78

Deprecated: Array and string offset access syntax with curly braces is deprecated in phar:///opt/phpfarm_new/src/bzips/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ChannelRegistry/Base.php on line 78
Setting php_prefix in system paths
aschuch247 commented 5 years ago

@ildar-aim: But where is the relation to phpfarm? Wouldn't it be a better idea to report this upstream, for example at https://github.com/pyrus/Pyrus?

ildar-aim commented 5 years ago

Hello, reposted https://github.com/pyrus/Pyrus/issues/140 Thank you.

aschuch247 commented 4 years ago

@ildar-aim: Thanks for reporting. Do you mind closing this issue here now, as it really is not related to phpfarm?

ildar-aim commented 4 years ago

Hello, done.

ildar-aim commented 4 years ago

Hello,

Just for your information,

phpfarm cannot fully compile PHP8.0beta1

due to the bug https://github.com/pyrus/Pyrus/issues/140

/opt/phpfarm_new/src/php-8.0.0beta1/build/shtool install -c ext/phar/phar.phar /opt/phpfarm_new/inst/php-8.0.0beta1/bin/phar.phar
ln -s -f phar.phar /opt/phpfarm_new/inst/php-8.0.0beta1/bin/phar
Installing PDO headers:           /opt/phpfarm_new/inst/php-8.0.0beta1/include/php/ext/pdo/
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /opt/phpfarm_new/inst/php-8.0.0beta1/pear
PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in phar:///opt/phpfarm_new/src/bzips/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ChannelRegistry/Base.php on line 78

Fatal error: Array and string offset access syntax with curly braces is no longer supported in phar:///opt/phpfarm_new/src/bzips/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/ChannelRegistry/Base.php on line 78
fpoirotte commented 4 years ago

Hi,

Unfortunately, Pyrus never got traction amongst PHP developers, and its last release is dated from 2012. I edited phpfarm so that it won't try to install Pyrus automatically from now on.

Regards, François