Skip to content

Update run_001.phpt - #2913

Closed
royopa wants to merge 2 commits into
php:masterfrom
royopa:patch-14
Closed

royopa wants to merge 2 commits into
php:masterfrom
royopa:patch-14

Conversation

@royopa

@royopa royopa commented Nov 13, 2017

Copy link
Copy Markdown
Contributor

update test to avoid that it freezes the test suite

update test to avoid that it freezes the test suite
Comment thread sapi/phpdbg/tests/run_001.phpt Outdated
--FILE--
<?php

if is_null($argc) || is_null($argv) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Syntax error. :(

Comment thread sapi/phpdbg/tests/run_001.phpt Outdated
--FILE--
<?php

if is_null($argc) || is_null($argv) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a parse error

Sorry for my fault!
I corrected the code.

In addition, the change in the phptt try resolve the error mentioned here:
https://bugs.php.net/bug.php?id=75499
@krakjoe

krakjoe commented Nov 16, 2017 •

Copy link
Copy Markdown
Member

It would be better to find out why that code freezes phpdbg ... /cc @bwoebi

Comment thread sapi/phpdbg/tests/run_001.phpt
@petk

petk commented Feb 14, 2019

Copy link
Copy Markdown
Member

Hello, where do we see that the code freezes here? I think it passes successfully. Is it something with gcov, travis somewhere or where is this happening? Thanks...

@royopa

royopa commented Feb 14, 2019

Copy link
Copy Markdown
Contributor Author

I had tested again and the test passed.


=====================================================================
PHP : /usr/src/php/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 7.3.0-dev
ZEND_VERSION: 3.3.0-dev
PHP_OS : Linux - Linux c49fe82fd117 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64
INI actual : /usr/src/php/tmp-php.ini
More .INIs :

PHP : /usr/src/php/sapi/phpdbg/phpdbg
PHP_SAPI : phpdbg
PHP_VERSION : 7.3.0-dev
ZEND_VERSION: 3.3.0-dev
PHP_OS : Linux - Linux c49fe82fd117 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64
INI actual : /usr/src/php/tmp-php.ini
More .INIs :

CWD : /usr/src/php
Extra dirs :
VALGRIND : Not used

Running selected tests.
PASS Test for function posix_getlogin() basic functionality [/usr/src/phpt/posix_getlogin_basic.phpt]

Number of tests : 1 1
Tests skipped : 0 ( 0.0%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 1 (100.0%) (100.0%)

Time taken : 1 seconds


So I will close this PR.
Thanks @petk and @carusogabriel

@royopa royopa closed this Feb 14, 2019
@petk

petk commented Feb 14, 2019

Copy link
Copy Markdown
Member

Great. Thank you @royopa too. 👍

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.

6 participants