Skip to content

Commit bfd32d7

Browse files
committed
Merge branch '2.8' into 3.0
* 2.8: On line 360 the header not working The `$link` argument must be passed as a reference Fix snippet
2 parents 9b85a73 + a50c5a2 commit bfd32d7

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
@@ -384,7 +384,7 @@ to the ``NewsletterManager`` class, the config would look like this:
384384
385385
$mailManager = new Definition();
386386
$mailManager
387-
->setAbstract(true);
387+
->setAbstract(true)
388388
->addMethodCall('setMailer', array(
389389
new Reference('my_mailer'),
390390
))

0 commit comments

Comments
 (0)