diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2018-08-28 14:02:11 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2018-08-28 14:02:11 +0200 |
commit | 441b6a6f5e7e19276d10485434c610278a781261 (patch) | |
tree | 5f8f59f58ac6552228eb6b1ac08512f4d9544da8 | |
parent | ce201df40fa90d05d9c452f7439de084c1f0ae2a (diff) | |
download | php-git-441b6a6f5e7e19276d10485434c610278a781261.tar.gz |
Fix SKIPIF conditions
The test calls `mb_convert_encoding()` and as such requires the
mbstring extension.
-rw-r--r-- | ext/dom/tests/bug76738.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/dom/tests/bug76738.phpt b/ext/dom/tests/bug76738.phpt index 21916d8486..b4f3b4cc27 100644 --- a/ext/dom/tests/bug76738.phpt +++ b/ext/dom/tests/bug76738.phpt @@ -1,7 +1,10 @@ --TEST-- Bug #76738 Wrong handling of output buffer --SKIPIF-- -<?php require_once('skipif.inc'); ?> +<?php +require_once('skipif.inc'); +if (!extension_loaded('mbstring')) die('skip mbstring extension not available'); +?> --FILE-- <?php declare(strict_types=1); $test_string = base64_decode('PGRpdiBjbGFzcz0idGlueW1jZS1nZW5lcmF0ZWQtcm9vdC1ibG9jayIgc3R5bGU9Im1hcmdpbjogMHB4OyBwYWRkaW5nOiAwcHg7Ij4KPGRpdiBzdHlsZT0iZmxvYXQ6IHJpZ2h0OyI+PGltZyBhbHQ9IkZvdG8gUmVpbmRsIEhhcmFsZCIgc3JjPSIvcnRlL3VwbG9hZC9mb3RvLmpwZyIgc3R5bGU9IndpZHRoOiAyNTBweDsgaGVpZ2h0OiAyNDlweDsiPjwvZGl2Pgo8ZGl2IHN0eWxlPSJ3aGl0ZS1zcGFjZTogbm93cmFwOyI+CjxwIHN0eWxlPSJtYXJnaW46IDBweDsiPlJlaW5kbCBIYXJhbGQmdXVtbDs8YnI+IFNpZWdmcmllZGdhc3NlIDIyLTI0LzIvNDxicj4gMTIxM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