1--TEST--
2OpenMP segfault hacks
3
4--INI--
5imagick.shutdown_sleep_count=Off
6imagick.set_single_thread=0
7--SKIPIF--
8<?php
9
10
11require_once(dirname(__FILE__) . '/skipif.inc');
12
13?>
14--FILE--
15<?php
16
17
18// So, this can't be tested for properly. ini values are stored as strings internally
19// to PHP, and are not normalised to the actual type used by an extension. Which means
20// you can't easily get the actual value being used by an extension, when the input
21// type isn't the same type as the extension is going to use it as.
22// aka 'Off' is stored as '' not 0.
23//
24//$sleepCount = ini_get('imagick.shutdown_sleep_count');
25//if ($sleepCount !== 0) {
26//    echo "imagick.shutdown_sleep_count is not set to 0 but instead " . var_export($sleepCount, true) ."\n";
27//}
28
29$setSingleThread = ini_get('imagick.set_single_thread');
30
31// This should be a strict compare but can't be because
32// it's stored as a string...
33if ($setSingleThread != 0) {
34    echo "imagick.set_single_thread setting is not 0 but instead " . var_export($setSingleThread, true) ."\n";
35}
36
37
38echo "Complete".PHP_EOL;
39?>
40--EXPECTF--
41Complete
42