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 b750f5e

Browse filesBrowse files
committed
Allow getting php://input several times
1 parent cc749a6 commit b750f5e
Copy full SHA for b750f5e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpFoundation/Request.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Request.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ public function isMethodSafe()
14591459
*/
14601460
public function getContent($asResource = false)
14611461
{
1462-
if (false === $this->content || (true === $asResource && null !== $this->content)) {
1462+
if (PHP_VERSION_ID < 50600 && (false === $this->content || (true === $asResource && null !== $this->content))) {
14631463
throw new \LogicException('getContent() can only be called once when using the resource return type.');
14641464
}
14651465

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.