[PHP-QA] [PHP-BUG] Req #63147 [NEW]: Some tests fail because require internet connection

2012-09-24 Thread r...@php.net
From: remi
Operating system: GNU/Linux (Fedora 18)
PHP version:  5.4.7
Package:  Testing related
Bug Type: Feature/Change Request
Bug description:Some tests fail because require internet connection

Description:

Hi,

Test which requires an internet connection (dns request, ...) fail if test
are run offline.

This is the case in some build environment.

Proposal : add a SKIP_ONLINE_TESTS condition for such tests.

I will submit a pull request.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=63147&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63147&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63147&r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=63147&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=63147&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=63147&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63147&r=needtrace
Need Reproduce Script:  https://bugs.php.net/fix.php?id=63147&r=needscript
Try newer version:  https://bugs.php.net/fix.php?id=63147&r=oldversion
Not developer issue:https://bugs.php.net/fix.php?id=63147&r=support
Expected behavior:  https://bugs.php.net/fix.php?id=63147&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=63147&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=63147&r=submittedtwice
register_globals:   https://bugs.php.net/fix.php?id=63147&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63147&r=php4
Daylight Savings:   https://bugs.php.net/fix.php?id=63147&r=dst
IIS Stability:  https://bugs.php.net/fix.php?id=63147&r=isapi
Install GNU Sed:https://bugs.php.net/fix.php?id=63147&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63147&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63147&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63147&r=mysqlcfg


-- 
PHP Quality Assurance Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-QA] Req #63147 [Com]: Some tests fail because require internet connection

2012-09-24 Thread r...@php.net
Edit report at https://bugs.php.net/bug.php?id=63147&edit=1

 ID: 63147
 Comment by:     r...@php.net
 Reported by:    r...@php.net
 Summary:Some tests fail because require internet connection
 Status: Open
 Type:   Feature/Change Request
 Package:Testing related
 Operating System:   GNU/Linux (Fedora 18)
 PHP Version:5.4.7
 Block user comment: N
 Private report: N

 New Comment:

See https://github.com/php/php-src/pull/201


Previous Comments:

[2012-09-24 07:04:36] r...@php.net

Description:

Hi,

Test which requires an internet connection (dns request, ...) fail if test are 
run offline.

This is the case in some build environment.

Proposal : add a SKIP_ONLINE_TESTS condition for such tests.

I will submit a pull request.







-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63147&edit=1

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-QA] Req #63147 [Com]: Some tests fail because require internet connection

2012-09-24 Thread r...@php.net
Edit report at https://bugs.php.net/bug.php?id=63147&edit=1

 ID: 63147
 Comment by:     r...@php.net
 Reported by:    r...@php.net
 Summary:Some tests fail because require internet connection
 Status: Open
 Type:   Feature/Change Request
 Package:Testing related
 Operating System:   GNU/Linux (Fedora 18)
 PHP Version:5.4.7
 Block user comment: N
 Private report: N

 New Comment:

There is a few tests concerned and probably a few people affected.
But --offline option added (in the pull request)

Note : if this "small" feature is accepted, I will also check the non-standard 
extension for such tests (currently, with run "make test", after build, only 
for static extension)


Previous Comments:

[2012-09-25 03:10:30] larue...@php.net

remi, should there also be a corresponding option for run-test.php?

----
[2012-09-24 07:46:34] r...@php.net

See https://github.com/php/php-src/pull/201

----
[2012-09-24 07:04:36] r...@php.net

Description:

Hi,

Test which requires an internet connection (dns request, ...) fail if test are 
run offline.

This is the case in some build environment.

Proposal : add a SKIP_ONLINE_TESTS condition for such tests.

I will submit a pull request.







-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63147&edit=1

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-BUG] Bug #81520 [NEW]: TEST_PHP_CGI_EXECUTABLE badly set in run-tests.php

2021-10-11 Thread r...@php.net
From: remi
Operating system: Linux
PHP version:  8.1.0RC3
Package:  Testing related
Bug Type: Bug
Bug description:TEST_PHP_CGI_EXECUTABLE badly set in run-tests.php

Description:

When php is installed with a command prefix, this one is ignored in
run-tests.php

ex: installation tree

/usr/bin/php
/usr/bin/php-cgi
/usr/bin/zts-php

When running run-tests.php with /usr/bin/zts-php,
TEST_PHP_CGI_EXECUTABLE is set to /usr/bin/php-cgi (should not be set,
or to /usr/bin/zts-php-cgi when present)


Until 8.0, TEST_PHP_CGI_EXECUTABLE was only set as .../sapi/cgi/php-cgi
(sources tree) if exists.

Since 8.1 it is also set as .../php-cgi (installed tree). In this case,
command prefix/suffix should be used.


Workaround is to set TEST_PHP_CGI_EXECUTABLE explicitly

Test script:
---
Discovered on datadog_trace extension
See https://github.com/DataDog/dd-trace-php/issues/1343


-- 
Edit bug report at https://bugs.php.net/bug.php?id=81520&edit=1
-- 
Fix committed:https://bugs.php.net/fix.php?id=81520&r=fixed
Fixed in release: 
https://bugs.php.net/fix.php?id=81520&r=alreadyfixed
Need backtrace:   
https://bugs.php.net/fix.php?id=81520&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=81520&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=81520&r=oldversion
Not developer issue:  
https://bugs.php.net/fix.php?id=81520&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=81520&r=notwrong
Not enough info:  
https://bugs.php.net/fix.php?id=81520&r=notenoughinfo
Submitted twice:  
https://bugs.php.net/fix.php?id=81520&r=submittedtwice
register_globals: 
https://bugs.php.net/fix.php?id=81520&r=globals
PHP version support discontinued: 
https://bugs.php.net/fix.php?id=81520&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81520&r=dst
IIS Stability:https://bugs.php.net/fix.php?id=81520&r=isapi
Install GNU Sed:  https://bugs.php.net/fix.php?id=81520&r=gnused
Floating point limitations:   https://bugs.php.net/fix.php?id=81520&r=float
No Zend Extensions:   https://bugs.php.net/fix.php?id=81520&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=81520&r=mysqlcfg


Bug #81520 [PATCH]: TEST_PHP_CGI_EXECUTABLE badly set in run-tests.php

2021-10-12 Thread r...@php.net
Edit report at https://bugs.php.net/bug.php?id=81520&edit=1

 ID: 81520
 Patch added by:     r...@php.net
 Reported by:    r...@php.net
 Summary:TEST_PHP_CGI_EXECUTABLE badly set in run-tests.php
 Status: Open
 Type:   Bug
 Package:Testing related
 Operating System:   Linux
 PHP Version:8.1.0RC3
 Block user comment: N
 Private report: N

 New Comment:

The following pull request has been associated:

Patch Name: improve CGI executable path detection for command prefix
On GitHub:  https://github.com/php/php-src/pull/7570
Patch:  https://github.com/php/php-src/pull/7570.patch


Previous Comments:

[2021-10-12 07:25:51] ni...@php.net

Any suggestion on what the right way to do this would be? The previous behavior 
is clearly also wrong (use source tree binary if install tree binary used). 
Should we try to transfer prefixes somehow? Skip guessing logic entirely if the 
basename of the binary is not "php"?


[2021-10-12 06:34:06] r...@php.net

Description:

When php is installed with a command prefix, this one is ignored in 
run-tests.php

ex: installation tree

/usr/bin/php
/usr/bin/php-cgi
/usr/bin/zts-php

When running run-tests.php with /usr/bin/zts-php, TEST_PHP_CGI_EXECUTABLE is 
set to /usr/bin/php-cgi (should not be set, or to /usr/bin/zts-php-cgi when 
present)


Until 8.0, TEST_PHP_CGI_EXECUTABLE was only set as .../sapi/cgi/php-cgi 
(sources tree) if exists.

Since 8.1 it is also set as .../php-cgi (installed tree). In this case, command 
prefix/suffix should be used.


Workaround is to set TEST_PHP_CGI_EXECUTABLE explicitly

Test script:
---
Discovered on datadog_trace extension
See https://github.com/DataDog/dd-trace-php/issues/1343







--
Edit this bug report at https://bugs.php.net/bug.php?id=81520&edit=1