Make the PHP generator dynamic.

- Modify the PHP generator constructor to fit the new generic interface.
- Register the PHP genrator with the central registry.
- Deprecate the old way of invoking the PHP generator.
- main.cc no longer includes t_php_generator.h.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@745238 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/php/src/autoload.php b/lib/php/src/autoload.php
index dc6133c..d0b4c63 100644
--- a/lib/php/src/autoload.php
+++ b/lib/php/src/autoload.php
@@ -20,7 +20,7 @@
  * __autoload function to something else and then do:
  * $GLOBALS['AUTOLOAD_HOOKS'][] = 'my_autoload_func';
  *
- * Generate this code using the -phpa Thrift generator flag.
+ * Generate this code using the --gen php:autoload Thrift generator flag.
  */
 
 $GLOBALS['THRIFT_AUTOLOAD'] = array();