Added undocumented feature for PHP 5.3 in CallbackPromise