Implement RepeatedFieldIter for c extension. (#2333)

diff --git a/tests.sh b/tests.sh
index 1335c06..7a12f26 100755
--- a/tests.sh
+++ b/tests.sh
@@ -408,7 +408,8 @@
 build_php5.6_mac() {
   # Install PHP
   curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
-  export PATH="/usr/local/php5-5.6.25-20160831-101628/bin:$PATH"
+  PHP_FOLDER=`find /usr/local -type d -name "php5-5.6*"`  # The folder name may change upon time
+  export PATH="$PHP_FOLDER/bin:$PATH"
 
   # Install phpunit
   curl https://phar.phpunit.de/phpunit.phar -L -o phpunit.phar