Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Don't take curl callback by ref
Changing these does nothing to the caller, why would you take them by ref? HHVM doesn't promote this to refs if they can't be modified: facebook/hhvm#2587
  • Loading branch information
ptarjan committed May 15, 2014
commit 1a33bb8089a2b8d65579d15e86501aa842ad01b7
2 changes: 1 addition & 1 deletion S3.php
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ private function __dnsBucketName($bucket)
* @param string &$data Data

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ptarjan
Hey Paul, I think you missed annotations.
@param string $data Data

* @return integer
*/
private function __responseHeaderCallback(&$curl, &$data)
private function __responseHeaderCallback($curl, $data)
{
if (($strlen = strlen($data)) <= 2) return $strlen;
if (substr($data, 0, 4) == 'HTTP')
Expand Down