Skip to content

Segmentation fault (access null pointer) in SoapClient #16429

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
function gen() {
var_dump(str_repeat("x", yield));
}
$gen = gen();
$gen->send(10);
$fusion = $gen;
$client = new SoapClient(__DIR__."/round2_groupB.wsdl",array("trace"=>1,"exceptions"=>0));
$client->echo2DStringArray($fusion);

Resulted in this output:

/php-src/ext/soap/php_encoding.c:2302:3: runtime error: member access within null pointer of type 'zend_object_iterator' (aka 'struct _zend_object_iterator')

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions