Using Rocket PHP 5.4.4 Build Date Nov 21 2016 03:23:06 on a z/OS 2.2 system under Apache V9.
The fopen() function can successfully process a local file but experiences an ABEND0C4 when attempting to process a URL (e.g. http://…). The following code is an example:
$url=“http://www.rocketsoftware.com”;
**$handle = fopen($url,“r”); **
**if($handle) { **
** fclose($handle); **
** echo “
Successful fopen/fclose
”; **
**} **
else **
** echo “ERROR: Could not fopen file
”;
When this code is executed in a browser a 500 Internal Server Error page is displayed. The following message appears on SYSLOG:
IEF450I PUBLIC STEP1 - ABEND=S0C4 U0000 REASON=00000004
The following messages appear in the Apache HTTP server error log:
AH01215: CEE3204S The system detected a protection exception (System Completion Code=0C4).:
AH01215: From entry point _php_stream_write_mvs at compile unit offset +000000C2 at entry offset +000000C2 at address:
AH01215: 299AD60A.:
End of script output before headers:
Assistance appreciated.
Thanks.