From 930f983b2323b3174507b0fa814b25065c50882f Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sun, 30 Jun 2019 09:39:45 +0000 Subject: [PATCH] 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 --- reference/array/functions/compact.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/array/functions/compact.xml b/reference/array/functions/compact.xml index 7c80ef49a5..c832c75109 100644 --- a/reference/array/functions/compact.xml +++ b/reference/array/functions/compact.xml @@ -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); ?> ]]>