Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

A non-numeric value encountered while isInSafeMode check #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/Kdyby/Curl/CurlSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public function canFollowRedirect()
public static function isInSafeMode()
{
$status = strtolower(ini_get('safe_mode'));
return $status === 'on' || $status === 'true' || $status === 'yes' || $status % 256;
return $status === 'on' || $status === 'true' || $status === 'yes' || (is_numeric($status) ? $status % 256 : false);
}

}