php 7.0.8 on ubuntu 16.0.4 LTS could somebody give me a hint why an array key check would fail when the key clearly exists, program execution just stops, with no explanation even with all error reporting enabled.
The data type held in the array element is a string containing a torrent file downloaded from fedora website https://torrents.fedoraproject.org/
other functions fail here aswell such as !empty on the array key
the key in this instance is 0
if(array_key_exists($index, $this->_webpage)){
return $this->_webpage[$index];
}else{
/* throw notice */
trigger_error("Array index is out of range. Can not get webpage.", E_USER_NOTICE);
return FALSE;
}
NOTE: iv been using this same function to check that webpages have been downloaded and it worked on the same system, im just adding torrent parsing to my application