Doc #80804 [NEW]: Example does not compile (Parse error: syntax error is shown)

From: Date: Fri, 26 Feb 2021 16:42:01 +0000
Subject: Doc #80804 [NEW]: Example does not compile (Parse error: syntax error is shown)
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18601@lists.php.net to get a copy of this message
From: forkik at gmail dot com Operating system: PHP version: 8.0Git-2021-02-26 (Git) Package: Documentation problem Bug Type: Documentation Problem Bug description:Example does not compile (Parse error: syntax error is shown) Description: ------------ --- From manual page: https://php.net/function.debug-zval-dump --- Test script: --------------- <?php $var1 = 'Hello World'; $var2 = ''; $var2 =& $var1; debug_zval_dump(&$var1); ?> Actual result: -------------- Parse error: syntax error, unexpected token "&" in /tmp/tester.php on line 7 Checked at https://extendsclass.com/php.html with PHP versions: 8.0.0 and 7.4.8 -- Edit bug report at https://bugs.php.net/bug.php?id=80804&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80804&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80804&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80804&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80804&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80804&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80804&r=support Expected behavior: https://bugs.php.net/fix.php?id=80804&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80804&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80804&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80804&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80804&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80804&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80804&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80804&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80804&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80804&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80804&r=mysqlcfg

« previous php.doc.bugs (#18601) next »