Skip to content

Fixed bug #64248 #282

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
wants to merge 1 commit into from
Closed

Fixed bug #64248 #282

wants to merge 1 commit into from

Conversation

bwoebi
Copy link
Member

@bwoebi bwoebi commented Feb 19, 2013

This little patch enables unset() to behave as a normal expr. This has for result that unset now returns a random int. While a good alternative for the (mt_)rand() functions, an idea would be to make unset return true if the variable has existed else false?

@ghost
Copy link

ghost commented Feb 20, 2013

[...] an idea would be to make unset return true if the variable has existed else false?

+1

@laruence
Copy link
Member

this definitely need a RFC

@lstrojny
Copy link
Contributor

For more information on what an RFC is, refer to https://wiki.php.net/rfc

@lstrojny
Copy link
Contributor

Otherwise I'll like it but the patch needs tests and making it return a boolean return value is a good idea as well.

@bwoebi
Copy link
Member Author

bwoebi commented Feb 20, 2013

I've requested a php-wiki account for creating a rfc. I'll now change the unset language construct and rebase it to PHP-5.5 as you don't consider it as a bug fix only.

@bwoebi bwoebi closed this Feb 23, 2013
@RyanNerd
Copy link

Why is this closed? This would be very useful.

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

Successfully merging this pull request may close these issues.

4 participants