group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #13528
[Bug 1674892] Re: zend_print_flat_zval_r doesn't consider reference
This bug was fixed in the package php7.0 - 7.0.18-0ubuntu0.16.04.1
---------------
php7.0 (7.0.18-0ubuntu0.16.04.1) xenial; urgency=medium
* New upstream release 7.0.18
- LP: #1686237
- LP: #1674892
- Refresh patches for new upstream release
* Drop:
- debian/patches/0053-Fix-pdo_pgsql.patch: Fixed #73959 - lastInsertId
fails to throw an exception in pdsql. Thanks to andrewnester
<andrew.nester.dev@xxxxxxxxx>. Closes LP #1658289.
[ Fixed upstream in 7.0.16, prior changelog referred to wrong
patchfile ]
- SECURITY REGRESSION: large mysql requests broken (LP #1668017)
+ debian/patches/fix_74021.patch: fix fetch_array with more than
MEDIUMBLOB in ext/mysqlnd/mysqlnd_wireprotocol.c, added tests to
ext/mysqli/tests/bug73800.phpt, ext/mysqli/tests/bug74021.phpt.
[ Fixed upstream in 7.0.17 ]
* d/control{,.in}: Backport "libapache2-mod-phpX.Y now recommends
apache2 package (as this is what most people want anyway)" from
Debian 8.0.7-3 (LP: #1689646).
-- Nishanth Aravamudan <nish.aravamudan@xxxxxxxxxxxxx> Wed, 10 May
2017 09:19:03 -0700
** Changed in: php7.0 (Ubuntu Xenial)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1674892
Title:
zend_print_flat_zval_r doesn't consider reference
Status in php7.0 package in Ubuntu:
Fix Released
Status in php7.0 source package in Xenial:
Fix Released
Status in php7.0 source package in Yakkety:
Fix Released
Status in php7.0 source package in Zesty:
Fix Released
Status in php7.0 source package in Artful:
Fix Released
Bug description:
[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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1674892/+subscriptions