# PHP 4.4 Breaks Backwards Compatibility

- Thread: https://externals.io/message/16793
- Original archive: https://news-web.php.net/php.internals/16793
- Started by Andi Gutmans on 2005-06-18T16:55:27+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #16793 — Andi Gutmans — 2005-06-18T16:55:27+00:00

URL: https://externals.io/message/16793#16793

http://phplens.com/phpeverywhere/?q=node/view/205

We slightly broke BC for PHP 5 in order to get the reference stuff 
resolved. Now I remember (senile me) one of the reasons we didn't apply 
this fix to PHP 4.
I suggest to hold the PHP 4.4 release until we see if/what can be done 
regarding the BC break. The problem is that this change was made, because 
we had to fix behavior which wasn't supposed to work in the first place and 
led to corruption.

Andi

---

## #16794 — Derick Rethans — 2005-06-18T17:41:21+00:00

URL: https://externals.io/message/16793#16794 · In reply to: #16793

> http://phplens.com/phpeverywhere/?q=node/view/205
> 
> We slightly broke BC for PHP 5 in order to get the reference stuff resolved.
> Now I remember (senile me) one of the reasons we didn't apply this fix to PHP
> 4.

Hmm, this never worked...so we're not breaking any BC. See bug #20953.

regards,
Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16799 — Andi Gutmans — 2005-06-19T03:07:40+00:00

URL: https://externals.io/message/16793#16799 · In reply to: #16793

I don't have time until Momday to run 4.3 and 4.4 with that code (bug #20953)
Besides the warning will the result (even if bogus) be the same for both 
versions?


At 07:41 PM 6/18/2005 +0200, Derick Rethans wrote:
>
>
> > […]
> resolved.
> > […]
> to PHP
> > […]
>
>Hmm, this never worked...so we're not breaking any BC. See bug #20953.
>
>regards,
>Derick
>
>--
>Derick Rethans
>http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16802 — Derick Rethans — 2005-06-19T11:38:30+00:00

URL: https://externals.io/message/16793#16802 · In reply to: #16799

> I don't have time until Momday to run 4.3 and 4.4 with that code (bug #20953)
> Besides the warning will the result (even if bogus) be the same for both
> versions?

Yes:

derick@tequila:/dat/dev/php$ php-4.3.11/sapi/cli/php -derror_reporting=2047 /tmp/bug20953.php
Array
(
    [a] => 1
    [c] => 3
)



derick@tequila:/dat/dev/php$ php-4.4dev/sapi/cli/php -derror_reporting=2047 /tmp/bug20953.php
Notice: Only variable references should be returned by reference in /tmp/bug20953.php on line 2
Array
(
    [a] => 1
    [c] => 3
)


regards,
Derick
-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
