This is filed and patched as THRIFT-592 < https://issues.apache.org/jira/browse/THRIFT-592> but not committed.
This is a quirk of how the tutorial is written. In application code you could only need one include (if you follow the guidelines in /thrift/lib/php/README): require_once $GLOBALS['THRIFT_ROOT'].'/packages/tutorial/Calculator.php'; On Wed, Oct 28, 2009 at 12:17, Ted Yu <[email protected]> wrote: > I feel strange that I needed to patch include paths in PhpClient.php: > > $GEN_DIR = '../gen-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'; > > Originally $GEN_DIR was used without shared and tutorial directories. > > --- On Tue, 10/27/09, Anner van Hardenbroek < > [email protected]> wrote: > > > From: Anner van Hardenbroek <[email protected]> > > Subject: Re: undefined constant E_NONE > > To: [email protected] > > Date: Tuesday, October 27, 2009, 5:16 PM > > Hi, > > > > Just replace E_NONE with 0 (int), that will fix it. > > > > Kind regards, > > -Anner. > > > > -- > > Anner van Hardenbroek > > [email protected] > > > > On 28 okt 2009, at 00:30, Ted Yu wrote: > > > > > Hi, > > > When running php client, I got: > > > PHP Notice: Use of undefined constant E_NONE - > > assumed 'E_NONE' in / > > > home/wr_webroot/thrift/tutorial/php/PhpClient.php on > > line 38 > > > PHP Stack trace: > > > PHP 1. {main}() > > /home/thrift/tutorial/php/PhpClient.php:0 > > > > > > I am using php 5.2.9 > > > > > > Has anyone seen this ? > > > > > > > > > > > > > > > > > > > > > > >
