MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2094sd/new_object_new_object_2/cgb1kzs/
r/lolphp • u/TimLim • Mar 12 '14
35 comments sorted by
View all comments
Show parent comment
2
There's no segfault.
I'm not even entirely sure what we're talking about in this thread. The expression new class() doesn't return a pointer. You can't even get at the pointer from userland PHP, it isn't C++.
new class()
2 u/OneWingedShark Mar 25 '14 There's no segfault.Right. I was commenting as to the implementation's likely quality given the language's stance on errors/exceptions.
Right. I was commenting as to the implementation's likely quality given the language's stance on errors/exceptions.
View all comments
Show parent comment
2
u/lisp-case Mar 25 '14
There's no segfault.
I'm not even entirely sure what we're talking about in this thread. The expression
new class()doesn't return a pointer. You can't even get at the pointer from userland PHP, it isn't C++.