linux & php: robustness fix #1

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>