--TEST-- Upload a file, validation ok, with our real script, using vld --SKIPIF-- = 80000) { print "skip Not applicable for PHP 8+"; } if (strpos(system(PHP_BINARY . " -d error_log=/dev/null -d extension=vld.so -m 2>/dev/null"), "vld") === FALSE) { print "skip Failed to run php command"; } if (strpos(system(PHP_BINARY . " -d extension=vld.so -m 2>&1 | grep 'Unable to load'"), "Unable to load dynamic library 'vld.so'") !== FALSE) { print "skip Failed to run php command"; } if (strpos(phpversion(), '-dev') !== FALSE) { print "skip Detected development version of PHP"; } ?> --INI-- file_uploads=1 sp.configuration_file={PWD}/config/upload_validation_real.ini output_buffering=off --POST_RAW-- Content-Type: multipart/form-data; boundary=blabla --blabla Content-Disposition: form-data; name="test"; filename="test.php" Content-Type: text/plain Some random text that is not PHP Some random text again --blabla-- --FILE-- --EXPECTF-- Fatal error: [snuffleupagus][0.0.0.0][upload_validation][drop] The upload of test.php on ? was rejected. in Unknown on line 0