Changeset View
Changeset View
Standalone View
Standalone View
src/future/http/status/HTTPFutureCURLResponseStatus.php
Context not available. | |||||
$constant_name = null; | $constant_name = null; | ||||
foreach ($constants as $constant => $value) { | foreach ($constants as $constant => $value) { | ||||
if ($value == $code && preg_match('/^CURLE_/', $constant)) { | if ($value == $code && @preg_match('/^CURLE_/', $constant)) { | ||||
$constant_name = '<'.$constant.'> '; | $constant_name = '<'.$constant.'> '; | ||||
break; | break; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0