Skip to content

test to function ignore_user_abort(); #1812

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions ext/standard/tests/misc/ignore_user_abort.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--TEST--
int ignore_user_abort ([ bool $value ] );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--SKIPIF--
<?php
if (phpversion() < "5.3.0") {
die('SKIP php version so lower.');
}
?>
--FILE--
<?php
ignore_user_abort(true);
set_time_limit(0);

for($x = 0; $x<=5;$x++){
if (connection_status() != CONNECTION_NORMAL) {
break;
}
}
print("Testing connection handling in PHP");
?>
--EXPECT--
Testing connection handling in PHP