Skip to content

Commit 84a1afd

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: On line 360 the header not working The `$link` argument must be passed as a reference Fix snippet
2 parents 373ef72 + 1e1ab96 commit 84a1afd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ of the application are isolated in a new file called ``model.php``::
148148
return $link;
149149
}
150150

151-
function close_database_connection($link)
151+
function close_database_connection(&$link)
152152
{
153153
$link = null;
154154
}
@@ -357,7 +357,7 @@ on the requested URI::
357357
} elseif ('/index.php/show' === $uri && isset($_GET['id'])) {
358358
show_action($_GET['id']);
359359
} else {
360-
header('Status: 404 Not Found');
360+
header('HTTP/1.1 404 Not Found');
361361
echo '<html><body><h1>Page Not Found</h1></body></html>';
362362
}
363363

components/dependency_injection/parentservices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ to the ``NewsletterManager`` class, the config would look like this:
385385
386386
$mailManager = new Definition();
387387
$mailManager
388-
->setAbstract(true);
388+
->setAbstract(true)
389389
->addMethodCall('setMailer', array(
390390
new Reference('my_mailer'),
391391
))

0 commit comments

Comments
 (0)