Bug #73609 [Opn]: "run-tests.php" don't respect configuration

From: Date: Mon, 09 Jan 2017 10:09:42 +0000
Subject: Bug #73609 [Opn]: "run-tests.php" don't respect configuration
References: 1  Groups: php.bugs php.qa 
Request: Send a blank email to php-bugs+get-206438@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73609&edit=1

 ID:                 73609
 User updated by:    spam2 at rhsoft dot net
 Reported by:        spam2 at rhsoft dot net
 Summary:            "run-tests.php" don't respect configuration
 Status:             Open
 Type:               Bug
 Package:            Testing related
 Operating System:   Linux
 PHP Version:        7.0.14
 Block user comment: N
 Private report:     N

 New Comment:

can you reasign it to the openssl component since it's the only one affected?


Previous Comments:
------------------------------------------------------------------------
[2017-01-08 23:10:36] cmb@php.net

> these are clearly bugs […]

I don't have the time to have a closer look at this, but patches
(preferably as pull request) are most certainly welcome. :-)

------------------------------------------------------------------------
[2017-01-07 16:54:21] spam2 at rhsoft dot net

because it has nothing better to do than copy the damned /etc/php.ini from the production system to
$PWD/tmp-php.ini for *everything* and not only the few openssl related things which are failing
currently

also it is far away from beauty because when you look at "ps aux" it translates to
"$TEST_PHP_EXECUTABLE $PWD/run-tests.php -d extension=x -d extension=y -d extension=z 

these are clearly bugs and become only visible when "run-tests.php" is running with
intermediate binaries which can't run with system configs because not all 3rd party extensions
are avaible at that point in time and the systems php config refelects production environment while
"run-tests.php" is suppsoed to test the compiled binaries long before the rpm-üackage
is finished

------------------------------------------------------------------------
[2017-01-07 16:42:12] cmb@php.net

> $TEST_PHP_EXECUTABLE -n -c $PWD/tmp-php.ini $PWD/run-tests.php -n -c $PWD/tmp-php.ini

Why don't you use make test instead?

------------------------------------------------------------------------
[2017-01-06 23:56:50] spam2 at rhsoft dot net

anybody out there?

obviously only openssl related stuff is affected while other tests are fine

------------------------------------------------------------------------
[2016-12-08 19:47:22] spam2 at rhsoft dot net

[08-Dec-2016 20:42:33 Europe/Vienna] PHP Warning: stream_socket_server(): unable to connect to
ssl://127.0.0.1:64321 (Unable to find the socket transport "ssl" - did you forget to
enable it when you configured PHP?)
_______________________________

no i did not - you just forgot to respect the environment and configuration here and there and since
you used /etc/php.ini there which is from production and not the current build (where extensions are
loeded in /etc/php.d/) you just did not load the extension at that point
_______________________________

cat /rpmbuild/BUILD/php-7.0.14/tmp-php.ini | grep openssl
extension = "openssl.so"

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=73609


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


Thread (21 messages)

« previous php.bugs (#206438) next »