Doc #72283 [Opn->Ver]: Invalid example on debug_zval_dump
| From: | cmb@php.net | Date: | Fri, 30 Dec 2016 15:32:38 +0000 |
| Subject: | Doc #72283 [Opn->Ver]: Invalid example on debug_zval_dump | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14299@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72283&edit=1
ID: 72283
Updated by: cmb@php.net
Reported by: fernando at null-life dot com
Summary: Invalid example on debug_zval_dump
-Status: Open
+Status: Verified
Type: Documentation Problem
Package: Documentation problem
Operating System: *
PHP Version: 5.6.22
Block user comment: N
Private report: N
New Comment:
Not only is the first example invalid as of PHP 5.4.0, but also
the third example is broken as of PHP 7.0.0, and there appear more
issues, see
<http://marc.info/?l=php-internals&m=143778859216287&w=2>ff.
Previous Comments:
------------------------------------------------------------------------
[2016-05-28 17:46:59] fernando at null-life dot com
Description:
------------
---
From manual page: http://www.php.net/function.debug-zval-dump
---
First example is invalid now because call-time pass by reference is removed.
Fatal error: Call-time pass-by-reference has been removed in
/Users/fmunozs/dev/php-fuzz/phuzzer/x.php on line 7
Test script:
---------------
<?php
$var1 = 'Hello World';
$var2 = '';
$var2 =& $var1;
debug_zval_dump(&$var1);
?>
Expected result:
----------------
Working example
Actual result:
--------------
Fatal error: Call-time pass-by-reference has been removed in
/Users/fmunozs/dev/php-fuzz/phuzzer/x.php on line 7
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72283&edit=1