We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6eacd5 + 34242c5 commit cdcfb97Copy full SHA for cdcfb97
tests/extensions_error.phpt
@@ -1,7 +1,24 @@
1
--TEST--
2
Test V8::registerExtension() : Register extension with errors
3
--SKIPIF--
4
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php
5
+require_once(dirname(__FILE__) . '/skipif.inc');
6
+
7
+ob_start(NULL, 0, PHP_OUTPUT_HANDLER_CLEANABLE | PHP_OUTPUT_HANDLER_REMOVABLE);
8
+phpinfo(INFO_MODULES);
9
+$minfo = ob_get_contents();
10
+ob_end_clean();
11
12
+if(preg_match("/V8 Engine Linked Version => (.*)/", $minfo, $matches)) {
13
+ $version = explode('.', $matches[1]);
14
+ if($version[0] < 3 || ($version[0] == 3 && $version[1] < 30)) {
15
+ // old v8 version, has shorter error message and hence doesn't
16
+ // fit our EXCEPTF below
17
+ echo "skip";
18
+ }
19
+}
20
21
+?>
22
--FILE--
23
<?php
24
0 commit comments