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 ? > > > > > > > > > > > >
