Skip to content

test to function stream_socket_sendto(); #1804

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 6 commits into from

Conversation

marcosptf
Copy link
Contributor

was add a new test to stream module

was add a new test to stream module
@krakjoe
Copy link
Member

krakjoe commented Oct 17, 2016

Needs skipif for online tests.

@marcosptf
Copy link
Contributor Author

Hello @krakjoe how are you?
fine?
ill fix it asap

thanks for your comment!

@marcosptf
Copy link
Contributor Author

@krakjoe
the tag --SKIPIF-- already exist in this test
it is wrong?
if so, give me please a example how to do!

Thanks!

--FILE--
<?php
$serverUri = "tcp://127.0.0.1:31854";
$serverUrl = "http://yahoo.com";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be php.net, since we try not to rely on third party, which we do not control

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KalleZ
done!

marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--SKIPIF--
<?php
if (phpversion() < "5.3.0") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed, like in your other PRs, no need to check for PHP versions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KalleZ
done!

@KalleZ
Copy link
Member

KalleZ commented Oct 26, 2016

@marcosptf what @krakjoe means is that you need to have the following condition in your SKIPIF section when you have tests that does stuff online:

if (getenv("SKIP_ONLINE_TESTS")) { die('skip: online test'); }

@marcosptf
Copy link
Contributor Author

@krakjoe @KalleZ
i've fixed !!!

anything else?

Thanks

die("Test stream_socket_enable_crypto has failed; Unable to connect: {$errstr} ({$errno})");
}
?>
--CLEAN--
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to mention, but the entire --CLEAN-- section is not needed, as I explained in another PR, then its run in a separate script after, so the variables do no longer exists, if anything, this should be done in --FILE--, but php already does this once the script ends :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the removal of the --CLEAN-- section, then this PR is fine, thanks for your work!

@marcosptf
Copy link
Contributor Author

marcosptf commented Oct 27, 2016

Hi @KalleZ
i've removed the --CLEAN-- tag

fix done!

Thanks!!!

@krakjoe
Copy link
Member

krakjoe commented Jan 6, 2017

Merged 3a79f35 1c40eaa aea1fd2

Thanks :)

@krakjoe krakjoe closed this Jan 6, 2017
php-pulls pushed a commit that referenced this pull request Jan 6, 2017
php-pulls pushed a commit that referenced this pull request Jan 6, 2017
* PHP-7.0:
  add stream_socket_sendto test from PR #1804
php-pulls pushed a commit that referenced this pull request Jan 6, 2017
* PHP-7.1:
  add stream_socket_sendto test from PR #1804
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants