Summary: As per Lucas' request
Reviewed By: lucas
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664803
13f79535-47bb-0310-9956-
ffa450edef68
*/
string t_php_generator::php_includes() {
return
- string("require_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';\n\n");
+ string("include_once $GLOBALS['THRIFT_ROOT'].'/Thrift.php';\n\n");
}
/**
php_includes();
f_service_ <<
- "require_once $GLOBALS['THRIFT_ROOT'].'/packages/" << program_name_ << "/" << program_name_ << "_types.php';" << endl << endl;
+ "include_once $GLOBALS['THRIFT_ROOT'].'/packages/" << program_name_ << "/" << program_name_ << "_types.php';" << endl << endl;
// Generate the three main parts of the service (well, two for now in PHP)
generate_service_interface(tservice);
<?php
/** For transport operations */
-require_once $GLOBALS['THRIFT_ROOT'].'/transport/TTransport.php';
+include_once $GLOBALS['THRIFT_ROOT'].'/transport/TTransport.php';
/**
* Binary implementation of the Thrift protocol.
/**
* For Type Constants
*/
-require_once $GLOBALS['THRIFT_ROOT'].'/protocol/TType.php';
+include_once $GLOBALS['THRIFT_ROOT'].'/protocol/TType.php';
/**
<?php
/** Inherits from Socket */
-require_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocket.php';
+include_once $GLOBALS['THRIFT_ROOT'].'/transport/TSocket.php';
/**
* This library makes use of APC cache to make hosts as down in a web