Skip to content

Assertion failure in ext/soap/php_encoding.c:460 #16256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuanchengJiang opened this issue Oct 6, 2024 · 0 comments
Closed

Assertion failure in ext/soap/php_encoding.c:460 #16256

YuanchengJiang opened this issue Oct 6, 2024 · 0 comments

Comments

@YuanchengJiang
Copy link

Description

The following code:

<?php
$radicants = [
"15151324141414.412312232141241",
];
$fusion = $radicants;
class EchoRequest{
}
$wsdl = __DIR__."/bug41004.wsdl";
$client = new SoapClient($wsdl, array('location'=>'test://',"classmap" => $fusion, 'exceptions'=>0, 'trace'=>1));
$echo=new EchoRequest();
$client->echo($echo);

Resulted in this output:

/php-src/ext/soap/php_encoding.c:460: xmlNodePtr master_to_xml_int(encodePtr, zval *, int, xmlNodePtr, int): Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed.
Aborted (core dumped)

PHP Version

PHP 8.4.0-dev

Operating System

ubuntu 22.04

nielsdos added a commit to nielsdos/php-src that referenced this issue Oct 6, 2024
The class map must be an associative array, not a packed array.
nielsdos added a commit that referenced this issue Oct 6, 2024
* PHP-8.2:
  Fix GH-16256: Assertion failure in ext/soap/php_encoding.c:460
nielsdos added a commit that referenced this issue Oct 6, 2024
* PHP-8.3:
  Fix GH-16256: Assertion failure in ext/soap/php_encoding.c:460
nielsdos added a commit that referenced this issue Oct 6, 2024
* PHP-8.4:
  Fix GH-16256: Assertion failure in ext/soap/php_encoding.c:460
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants