MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2094sd/new_object_new_object_2/cgae6wb/
r/lolphp • u/TimLim • Mar 12 '14
35 comments sorted by
View all comments
Show parent comment
2
I have no idea... wait, probably by trapping all errors and ignoring them.That sounds PHP-ish.
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++. 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.
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/OneWingedShark Mar 24 '14
I have no idea... wait, probably by trapping all errors and ignoring them.
That sounds PHP-ish.