mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix example wrt. recent PHP versions
As of PHP 7.3.0, the usage of undefined variables with compact() trigger a notice, and as their support should be considered legacy behavior. Therefore we remove the variable from the example. Patch provided by anonymous user. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347684 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b21947c4f7
commit
930f983b23
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ $event = "SIGGRAPH";
|
|||
|
||||
$location_vars = array("city", "state");
|
||||
|
||||
$result = compact("event", "nothing_here", $location_vars);
|
||||
$result = compact("event", $location_vars);
|
||||
print_r($result);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue