<?php
/*
* This should produce failures when using a version of libpcre older than 8.32
*/
// Ignore versions other than 5.3-5.5
if (!preg_match('/^5\.[345]\./', phpversion())) {
print "Don't care about this version\n";
exit(0);
}
preg_match('/((?:a?)*)*c/', 'aac', $matches);
if ($matches[1] === 'aa') {
print "FAIL\n";
} else {
print "PASS\n";
}