| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2007, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2010, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
case IS_HTTP_RESPONSE:
add_assoc_long(&array, "Response Code", (long) HTTP_INFO(info).response.code);
- add_assoc_string(&array, "Response Status", HTTP_INFO(info).response.status, 1);
+ if (HTTP_INFO(info).response.status) {
+ add_assoc_string(&array, "Response Status", HTTP_INFO(info).response.status, 1);
+ }
break;
}
}