[php-src] PR #11820: Skip oci8 tests when no database is available

From: Date: Sat, 29 Jul 2023 12:44:04 +0000
Subject: [php-src] PR #11820: Skip oci8 tests when no database is available
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-23194@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/11820 Author: orlitzky This is basically a copy/paste of the mysqli and pgsql approaches. Only a few editorial decisions were made: 1. I have declined to include skipifconnectfailure.inc within the pre-existing skipif.inc. The check in skipif.inc is for one specific condition (the type of the database) and is not universal; keeping them separate results in us having one logical "skip" check per include file. This comes at the expense of a few extra lines, but I think the end result is cleaner, and would be especially nice if skipif.inc was renamed to something like skipifwrongdbtype.inc. 2. To avoid an extra case, I've set $dbase (from details.inc) to null if it is unset. As a result, two empty() checks in ext/oci8/tests/password.phpt and ext/oci8/tests/password_2.phpt have to be changed to is_null().

« previous php.git-pulls (#23194) next »