THRIFT-592. php: Make the tutorial work properly after r815878

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@888929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2009-12-09 19:29:48 +00:00
parent 53ae9f39d5
commit 7834ccbdac
2 changed files with 8 additions and 8 deletions

View File

@ -37,10 +37,10 @@ require_once $GLOBALS['THRIFT_ROOT'].'/transport/TBufferedTransport.php';
*/
error_reporting(E_NONE);
$GEN_DIR = '../gen-php';
require_once $GEN_DIR.'/SharedService.php';
require_once $GEN_DIR.'/shared_types.php';
require_once $GEN_DIR.'/Calculator.php';
require_once $GEN_DIR.'/tutorial_types.php';
require_once $GEN_DIR.'/shared/SharedService.php';
require_once $GEN_DIR.'/shared/shared_types.php';
require_once $GEN_DIR.'/tutorial/Calculator.php';
require_once $GEN_DIR.'/tutorial/tutorial_types.php';
error_reporting(E_ALL);
try {

View File

@ -48,10 +48,10 @@ require_once $GLOBALS['THRIFT_ROOT'].'/transport/TBufferedTransport.php';
*/
error_reporting(E_NONE);
$GEN_DIR = realpath(dirname(__FILE__).'/..').'/gen-php';
require_once $GEN_DIR.'/SharedService.php';
require_once $GEN_DIR.'/shared_types.php';
require_once $GEN_DIR.'/Calculator.php';
require_once $GEN_DIR.'/tutorial_types.php';
require_once $GEN_DIR.'/shared/SharedService.php';
require_once $GEN_DIR.'/shared/shared_types.php';
require_once $GEN_DIR.'/tutorial/Calculator.php';
require_once $GEN_DIR.'/tutorial/tutorial_types.php';
error_reporting(E_ALL);
class CalculatorHandler implements CalculatorIf {