|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72283 Invalid example on debug_zval_dump
Submitted: 2016-05-28 17:46 UTC Modified: 2016-12-30 15:32 UTC
From: fernando at null-life dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: 5.6.22 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
41 + 44 = ?
Subscribe to this entry?

 [2016-05-28 17:46 UTC] fernando at null-life dot com
From manual page:

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:
$var1 = 'Hello World';
$var2 = '';

$var2 =& $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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 15:32 UTC]
-Status: Open +Status: Verified
 [2016-12-30 15:32 UTC]
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
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Mar 28 23:01:23 2020 UTC