Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

($i--) returns wrong value #1086

Closed
kripper opened this issue Nov 18, 2022 · 1 comment
Closed

($i--) returns wrong value #1086

kripper opened this issue Nov 18, 2022 · 1 comment

Comments

@kripper
Copy link
Contributor

kripper commented Nov 18, 2022

<?php
function Test() {
	global $TEST;
	$TEST = 1;
	
	$i = $TEST--;
	if($i == 0) die("WRONG: Should be 1");
}

Test();
@jakubmisek
Copy link
Member

thanks @kripper!

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

No branches or pull requests

2 participants