Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
1of0
php
curly
Commits
9d6f4686
Commit
9d6f4686
authored
Feb 09, 2016
by
TheBigB
Browse files
Fix to support 5.5
parent
6a103b95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/CurlyOptions.php
src/CurlyOptions.php
+2
-2
src/Handlers/AbstractHandler.php
src/Handlers/AbstractHandler.php
+2
-2
No files found.
src/CurlyOptions.php
View file @
9d6f4686
...
...
@@ -25,7 +25,7 @@ class CurlyOptions
{
#region // Mapping between property names and cURL constants
const
OPTION_MAP
=
[
private
static
$__optionMap
=
[
'followRedirects'
=>
CURLOPT_FOLLOWLOCATION
,
'maxRedirects'
=>
CURLOPT_MAXREDIRS
,
'followPostRedirects'
=>
CURLOPT_POSTREDIR
,
...
...
@@ -712,7 +712,7 @@ class CurlyOptions
*/
public
function
toArray
(
$useNativeCurlConstants
=
true
)
{
$map
=
self
::
OPTION_MAP
;
$map
=
self
::
$__optionMap
;
$class
=
new
ReflectionClass
(
get_class
());
$array
=
[];
...
...
src/Handlers/AbstractHandler.php
View file @
9d6f4686
...
...
@@ -19,7 +19,7 @@ abstract class AbstractHandler
const
ON_READ
=
'onRead'
;
const
ON_WRITE
=
'onWrite'
;
const
VALID_EVENTS
=
[
self
::
ON_HEADER
,
self
::
ON_PROGRESS
,
self
::
ON_READ
,
self
::
ON_WRITE
];
private
static
$validEvents
=
[
self
::
ON_HEADER
,
self
::
ON_PROGRESS
,
self
::
ON_READ
,
self
::
ON_WRITE
];
/**
* Should return an array with the function names of the events that are implemented. The only supported events are:
...
...
@@ -41,7 +41,7 @@ abstract class AbstractHandler
{
foreach
(
$this
->
getImplemented
()
as
$option
)
{
if
(
!
in_array
(
$option
,
self
::
VALID_EVENTS
))
if
(
!
in_array
(
$option
,
self
::
$validEvents
))
{
continue
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment