Skip to content

Segmentation fault when cloning SoapServer #16237

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$server = new soapserver(null,array('uri'=>"http://testuri.org"));
$fusion = $server;
$ao2 = clone $fusion;

Resulted in this output:

/php-src/ext/soap/soap.c:4571:15: runtime error: member access within misaligned address 0x000000000123 for type 'struct _soapService', which requires 8 byte alignment
0x000000000123: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/soap/soap.c:4571:15

PHP Version

PHP 8.4.0-dev

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