From a6a88f6f19df7db8e2507faddb8e1cc02bbcdc76 Mon Sep 17 00:00:00 2001 From: Muhammad Nasir Rahimi Date: Fri, 29 Apr 2016 02:39:13 +0430 Subject: [PATCH] The `$link` argument must be passed as a reference As the title says the `$link` argument in `close_database_connection` function definition must be accepted as a reference like `close_database_connection(&$link)`. --- book/from_flat_php_to_symfony2.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/from_flat_php_to_symfony2.rst b/book/from_flat_php_to_symfony2.rst index 8d933ffad59..94f20638b31 100644 --- a/book/from_flat_php_to_symfony2.rst +++ b/book/from_flat_php_to_symfony2.rst @@ -148,7 +148,7 @@ of the application are isolated in a new file called ``model.php``:: return $link; } - function close_database_connection($link) + function close_database_connection(&$link) { $link = null; }