Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84a1afd

Browse filesBrowse 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
Copy full SHA for 84a1afd

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎book/from_flat_php_to_symfony2.rst

Copy file name to clipboardExpand all lines: book/from_flat_php_to_symfony2.rst
+2-2Lines 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

Copy file name to clipboardExpand all lines: components/dependency_injection/parentservices.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.