2017-03-22 06:48:50 |
Frederique Rijsdijk |
bug |
|
|
added bug |
2017-03-27 18:59:29 |
Nish Aravamudan |
nominated for series |
|
Ubuntu Xenial |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
bug task added |
|
php7.0 (Ubuntu Xenial) |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
nominated for series |
|
Ubuntu Yakkety |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
bug task added |
|
php7.0 (Ubuntu Yakkety) |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
nominated for series |
|
Ubuntu Aa-series |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
bug task added |
|
php7.0 (Ubuntu Aa-series) |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
nominated for series |
|
Ubuntu Zesty |
|
2017-03-27 18:59:29 |
Nish Aravamudan |
bug task added |
|
php7.0 (Ubuntu Zesty) |
|
2017-03-27 18:59:36 |
Nish Aravamudan |
php7.0 (Ubuntu Aa-series): assignee |
|
Nish Aravamudan (nacc) |
|
2017-03-30 09:16:13 |
Niek Bergman |
bug |
|
|
added subscriber Niek Bergman |
2017-03-30 09:16:44 |
Launchpad Janitor |
php7.0 (Ubuntu): status |
New |
Confirmed |
|
2017-03-30 09:16:44 |
Launchpad Janitor |
php7.0 (Ubuntu Xenial): status |
New |
Confirmed |
|
2017-03-30 09:16:44 |
Launchpad Janitor |
php7.0 (Ubuntu Yakkety): status |
New |
Confirmed |
|
2017-03-30 09:16:44 |
Launchpad Janitor |
php7.0 (Ubuntu Aa-series): status |
New |
Confirmed |
|
2017-04-26 17:09:17 |
Nish Aravamudan |
php7.0 (Ubuntu Artful): status |
Confirmed |
Fix Committed |
|
2017-04-26 22:47:36 |
Nish Aravamudan |
php7.0 (Ubuntu Artful): status |
Fix Committed |
Fix Released |
|
2017-04-26 22:47:40 |
Nish Aravamudan |
php7.0 (Ubuntu Artful): assignee |
Nish Aravamudan (nacc) |
|
|
2017-04-26 22:47:42 |
Nish Aravamudan |
php7.0 (Ubuntu Zesty): assignee |
|
Nish Aravamudan (nacc) |
|
2017-04-26 22:47:44 |
Nish Aravamudan |
php7.0 (Ubuntu Yakkety): assignee |
|
Nish Aravamudan (nacc) |
|
2017-04-26 22:47:46 |
Nish Aravamudan |
php7.0 (Ubuntu Xenial): assignee |
|
Nish Aravamudan (nacc) |
|
2017-04-27 23:14:18 |
Nish Aravamudan |
description |
https://bugs.php.net/bug.php?id=73916
We've hit this bug in 7.0.15, the current/latest version for Xenial.
It was fixed in 7.0.16 by php.net, Feb 16 2017. It would be nice if Xenials packages would be updated to reflect this fix.
Patch: http://git.php.net/?p=php-src.git;a=blobdiff;f=Zend/zend.c;h=2a47e9244ba787a2ad35e9220171b04d1a5de634;hp=3f3ca75e382b1dec98fd138307d812f36f02251e;hb=04379bcb1df25a9f9cc1d440f5c12105b9fbaf97;hpb=bd75f9e61375c7632bb55b0d49b470ecd94e8ec7 |
[Impact]
* Users hit an error with PHP7.0 when zend_print_flat_zval_r doesn't consider a reference.
The following error may be triggered:
PHP Notice: Array to string conversion;
Catchable fatal error: Object could not be converted to string.
[Test Case]
* From the upstream bug:
$a = array('a');
class b{};
$b = new b;
$test[] =& $a;
$test[] =& $b;
test($test);
function test() {
debug_print_backtrace();
}
Expected result:
----------------
#0 test(Array ([0] => Array ([0] => a),[1] => b Object ())) called at [/Users/playcrab/Documents/code/php/test/test7.php:7]
Actual result:
--------------
#0 test(Array ([0] => PHP Notice: Array to string conversion in /Users/playcrab/Documents/code/php/test/test7.php on line 9
PHP Stack trace:
PHP 1. {main}() /Users/playcrab/Documents/code/php/test/test7.php:0
PHP 2. test() /Users/playcrab/Documents/code/php/test/test7.php:7
PHP 3. debug_print_backtrace() /Users/playcrab/Documents/code/php/test/test7.php:9
PHP Catchable fatal error: Object of class b could not be converted to string in /Users/playcrab/Documents/code/php/test/test7.php on line 9
PHP Stack trace:
PHP 1. {main}() /Users/playcrab/Documents/code/php/test/test7.php:0
PHP 2. test() /Users/playcrab/Documents/code/php/test/test7.php:7
PHP 3. debug_print_backtrace() /Users/playcrab/Documents/code/php/test/test7.php:9
Notice: Array to string conversion in /Users/playcrab/Documents/code/php/test/test7.php on line 9
Call Stack:
0.0068 353088 1. {main}() /Users/playcrab/Documents/code/php/test/test7.php:0
0.0080 353928 2. test() /Users/playcrab/Documents/code/php/test/test7.php:7
0.0080 353928 3. debug_print_backtrace() /Users/playcrab/Documents/code/php/test/test7.php:9
Array,[1] =>
Catchable fatal error: Object of class b could not be converted to string in /Users/playcrab/Documents/code/php/test/test7.php on line 9
Call Stack:
0.0068 353088 1. {main}() /Users/playcrab/Documents/code/php/test/test7.php:0
0.0080 353928 2. test() /Users/playcrab/Documents/code/php/test/test7.php:7
0.0080 353928 3. debug_print_backtrace() /Users/playcrab/Documents/code/php/test/test7.php:9
[Regression Potential]
* I believe the regression potential is low to zero for this fix (via 7.0.18 upstream). The reason is that the code as-is in 16.04 does not work and leads to backtraces. The fix introduce upstream resolves the issue.
---
https://bugs.php.net/bug.php?id=73916
We've hit this bug in 7.0.15, the current/latest version for Xenial.
It was fixed in 7.0.16 by php.net, Feb 16 2017. It would be nice if Xenials packages would be updated to reflect this fix.
Patch: http://git.php.net/?p=php-src.git;a=blobdiff;f=Zend/zend.c;h=2a47e9244ba787a2ad35e9220171b04d1a5de634;hp=3f3ca75e382b1dec98fd138307d812f36f02251e;hb=04379bcb1df25a9f9cc1d440f5c12105b9fbaf97;hpb=bd75f9e61375c7632bb55b0d49b470ecd94e8ec7 |
|
2017-04-27 23:31:05 |
Brian Murray |
php7.0 (Ubuntu Zesty): status |
Confirmed |
Fix Committed |
|
2017-04-27 23:31:08 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-04-27 23:31:10 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2017-04-27 23:31:16 |
Brian Murray |
tags |
|
verification-needed |
|
2017-05-04 20:58:02 |
Brian Murray |
php7.0 (Ubuntu Yakkety): status |
Confirmed |
Fix Committed |
|
2017-05-08 17:22:40 |
Nish Aravamudan |
tags |
verification-needed |
verification-done-yakkety verification-done-zesty |
|
2017-05-10 16:59:20 |
Launchpad Janitor |
php7.0 (Ubuntu Zesty): status |
Fix Committed |
Fix Released |
|
2017-05-10 16:59:33 |
Robie Basak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2017-05-11 22:38:39 |
Brian Murray |
php7.0 (Ubuntu Xenial): status |
Confirmed |
Fix Committed |
|
2017-05-11 22:38:43 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-05-11 22:38:48 |
Brian Murray |
tags |
verification-done-yakkety verification-done-zesty |
verification-done-yakkety verification-done-zesty verification-needed |
|
2017-05-12 16:45:28 |
Nish Aravamudan |
tags |
verification-done-yakkety verification-done-zesty verification-needed |
verification-done-xenial verification-done-yakkety verification-done-zesty |
|
2017-05-18 18:04:49 |
Launchpad Janitor |
php7.0 (Ubuntu Yakkety): status |
Fix Committed |
Fix Released |
|
2017-05-25 19:18:10 |
Launchpad Janitor |
php7.0 (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|