From:  cweiske@php.net
Date:  16 Feb 2015 04:40:16 Hong Kong Time
Newsgroup:  news.php.net/php.pear.bugs
Subject:  

[PEAR-BUG] Bug #20488 [Opn]: go-pear.phar and install-pear-nozlib.phar are broken with php 7.0

NNTP-Posting-Host:  null

Edit report at https://pear.php.net/bugs/bug.php?id=20488&edit=1

 ID:               20488
 Updated by:       cweiske@php.net
 Reported By:      tyra3l at gmail dot com
 Summary:          	go-pear.phar and install-pear-nozlib.phar are broken
                    with php 7.0
 Status:           Open
 Type:             Bug
 Package:          PEAR
 Package Version:  SVN
 PHP Version:      HEAD SVN-2015-01-19
 Roadmap Versions: 
 New Comment:

References:

1. new-by-reference
-
https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7#assignment_of_new_by_reference

2. magic quotes
-
https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7#set_magic_quotes_runtime_and_magic_quotes_runtime

3. ereg
-
https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7#extereg

4. PHP4-style constructors
- https://wiki.php.net/rfc/remove_php4_constructors
- http://marc.info/?l=php-internals&m=141635239219979&w=2

5. static methods and $this
- https://wiki.php.net/rfc/incompat_ctx


Previous Comments:
------------------------------------------------------------------------

[2015-02-06 08:37:41] cweiske

2 + 3 have been fixed in pear-core stable branch.

------------------------------------------------------------------------

[2015-02-02 16:50:00] tyrael

4) removal of php4 constructors not yet voted/accepted (there is a
heated ongoing debate as we 
never deprecated it).
5) the current status is that we won't remove the ability to call
functions statically without marked as 
static, we will just won't "assume" $this from the caller context.

------------------------------------------------------------------------

[2015-02-02 16:35:31] cweiske

Things to fix:
1. new-by-reference: &new
2. magic quotes 
3. ereg functions
4. constructor names; we have to use __construct()
5. mark static methods as static

See the UPGRADING file at
http://git.php.net/?p=php-
src.git;a=blob;f=UPGRADING;h=bb37a05d8aa8af3cc2e599acbd4ae0e7f52fbd33;hb=
4d3e4d3bf994739681613f9061d056e10f731b65

------------------------------------------------------------------------

[2015-01-19 17:21:55] tyrael

Description:
------------
there are a couple of BC breaks in the current php-src 
master(which will be PHP 7.0) which causes make install to fail 
when installing pear.
I've started working on a Pull Request against pear-core with the 
necessary changes to make it compatible with PHP 7.0, I will drop 
a comment when it is ready to be merged.

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20488&edit=1