Fixed PHP notices during tests on PHP 5.3 [ci skip]
Synced from master
Synced from master