1--TEST-- 2Test popen() and pclose function: error conditions 3--FILE-- 4<?php 5 6try { 7 popen("abc.txt", "x"); 8} catch (ValueError $exception) { 9 echo $exception->getMessage() . "\n"; 10} 11 12try { 13 popen("abc.txt", "rw"); 14} catch (ValueError $exception) { 15 echo $exception->getMessage() . "\n"; 16} 17 18try { 19 popen("abc.txt", "rwb"); 20} catch (ValueError $exception) { 21 echo $exception->getMessage() . "\n"; 22} 23 24?> 25--EXPECT-- 26popen(): Argument #2 ($mode) must be one of "r", "rb", "w", or "wb" 27popen(): Argument #2 ($mode) must be one of "r", "rb", "w", or "wb" 28popen(): Argument #2 ($mode) must be one of "r", "rb", "w", or "wb" 29