-
-
Notifications
You must be signed in to change notification settings - Fork 466
Closed
Description
I am experiencing a "weird" behavior. Running the test suite on v4 branch (my fork) produces errors in travis.
https://travis-ci.org/niden/cphalcon/jobs/492392066#L4269
Initially the errors pointed to xdebug
but continued after disabling it
- CreateRequestCest: Test Http\Message\RequestFactory - createRequest()zephir_memory_restore_stack_common: observed variable #0 (0x7fff77ed6730) has invalid type 192 [(null)]
zephir_memory_restore_stack_common: observed variable #1 (0x7fff77ed6750) has invalid type 240 [(null)]
zephir_memory_restore_stack_common: observed variable #2 (0x7fff77ed6720) has invalid type 32 [(null)]
#0 0x7fb3984d56c7 [/home/travis/.phpenv/versions/7.2.15/lib/php/extensions/no-debug-zts-20170718/phalcon.so(zephir_print_backtrace+0x40) [0x7fb3984d56c7]]
The test that fails is:
use Phalcon\Http\Message\RequestFactory;
use Psr\Http\Message\RequestInterface;
use UnitTester;
/**
* Class CreateRequestCest
*/
class CreateRequestCest
{
/**
* Tests Phalcon\Http\Message\RequestFactory :: createRequest()
*
* @param UnitTester $I
*
* @author Phalcon Team <[email protected]>
* @since 2019-02-10
*/
public function httpMessageRequestFactoryCreateRequest(UnitTester $I)
{
$I->wantToTest('Http\Message\RequestFactory - createRequest()');
$factory = new RequestFactory();
$request = $factory->createRequest('https://dev.phalcon.ld', 'GET');
$class = RequestInterface::class;
$I->assertInstanceOf($class, $request);
}
}
and the underlying zephir code is:
/**
* Create a new request.
*/
public function createRequest(string method, var uri) -> <RequestInterface>
{
var factory;
let factory = new Request(uri, method);
return factory;
}
and the Request is:
public function __construct(var uri = null, string method = null, var body = "php://temp", array headers = [])
{
}
Metadata
Metadata
Assignees
Labels
No labels