-
Notifications
You must be signed in to change notification settings - Fork 208
PHPC-1956: Remove disabled __wakeup function in non-serializable classes #1513
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
Changes from all commits
e5915c3
68ffbba
09bbb87
1b149c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,15 +117,4 @@ zend_object_handlers* phongo_get_std_object_handlers(void); | |
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "Accessing private constructor"); \ | ||
} | ||
|
||
#define PHONGO_DISABLED_WAKEUP(classname) \ | ||
static PHP_METHOD(classname, __wakeup) \ | ||
{ \ | ||
PHONGO_PARSE_PARAMETERS_NONE(); \ | ||
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "MongoDB\\Driver objects cannot be serialized"); \ | ||
} | ||
|
||
/* Shared function entries for disabling constructors and unserialize() */ | ||
PHP_FUNCTION(MongoDB_disabled___construct); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noted that I added the macros in 6887226 but forgot to remove the shared functions below. Thanks for cleaning up my mess! |
||
PHP_FUNCTION(MongoDB_disabled___wakeup); | ||
|
||
#endif /* PHONGO_H */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I had removed all of these, but I guess I haven't. Thanks for cleaning this up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "these" referring to the foldmarkers (i.e.
{{{
and}}}
)? There are a bunch more, so I can go through and clean those up separately if we like. None of us are using vim to work on this project, so I don't have to worry about @bjori yelling at me.