-
Notifications
You must be signed in to change notification settings - Fork 97
review object management #161
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
Conversation
Sctach build with PHP 7.3 on Fedora 31 on armv7hl, x86_64, i686, aarch64, ppc64le and s390x P.S. the build includes the run of the test suite. |
Local test on i686 and x86_64 with PHP 7.2 and 8.0, everything also OK. |
Thank you for working on this. I would like to know why having |
Do you think it's possible that some of the peripheral changes fixed the issue, rather than the object management itself? |
Yes, probably, but was not able to find which one. BTW, in all case, pointer cast are evil ;) |
It seems to the missing |
I think we std was first and xtoffset is 0, with the object accessors using casting we would know whether the peripheral changes fixed the issue or not. I do intend to merge this though, I agree that following the convention is wise, I'm just aware of how this then impacts ext-decimal and designs for ext-ds 2.0 heavily relying on struct hacks to reduce indirection.
Why is that? |
Different types have different memory layout, content, size, ... |
@remicollet I'm not set up to test on the environments where this was failing before, and I would like to understand what these changes are fixing exactly. Could we maybe increasingly reduce the scope of the changes until a minimal patch is available? I would like to know if it definitely is the object management that was tripping up. |
The minimall patch is the php_common_handlers part (missing return) |
Replaced by pr #165 |
How is #165 different to this / why close? |
#165 is the same |
This fix segfault on some arches, see #159
Sctach build with PHP 7.4 on Fedora Rawhide on i686, armv7hl, ppc64le, x86_64, aarch64 and s390x
https://koji.fedoraproject.org/koji/taskinfo?taskID=53905129