Skip to content

Segmentation fault with PHP 8.3.20 #18339

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
kylekatarnls opened this issue Apr 16, 2025 · 1 comment
Closed

Segmentation fault with PHP 8.3.20 #18339

kylekatarnls opened this issue Apr 16, 2025 · 1 comment

Comments

@kylekatarnls
Copy link
Contributor

Description

The following code:

<?php

$interval = new \DateInterval('PT0S');
$unit = 'h';
$interval->$unit += 0;
var_dump($interval->h);

https://3v4l.org/XP384#v8.3.20

Resulted in this output:

Segmentation fault

But I expected this output instead:

0

(Result we get from PHP 8.3.19 and 8.4.6)

It's possibly the root cause of #18337

PHP Version

8.3.20

Operating System

No response

@nielsdos
Copy link
Member

Duplicate of #18304 which is fixed in 8.3.21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants