[ 
https://issues.apache.org/jira/browse/THRIFT-592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760800#action_12760800
 ] 

James Clarke edited comment on THRIFT-592 at 10/28/09 5:36 PM:
---------------------------------------------------------------

This is a consequence of 
[THRIFT-584|https://issues.apache.org/jira/browse/THRIFT-584] which produces 
the generated directory structure expected by the generated files.

The tutorial is out of date and breaks because it doesn't install the generated 
files into {{$GLOBALS['THRIFT_ROOT'].'/packages/<MyPackage>}}.

      was (Author: jclarke):
    This is a consequence of 
[THRIFT-584|https://issues.apache.org/jira/browse/THRIFT-584] which produces 
the generated directory structure expected by the generated files.

The tutorial is out of date and breaks because it does install the generated 
files into {{$GLOBALS['THRIFT_ROOT'].'/packages/<MyPackage>}}.
  
> PhpClient.php expect all the files to be under tutorial/gen-php but the files 
> are in sub-folders
> ------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-592
>                 URL: https://issues.apache.org/jira/browse/THRIFT-592
>             Project: Thrift
>          Issue Type: Bug
>         Environment: Ubuntu Jaunty
>            Reporter: pablo platt
>         Attachments: 
> v1-0001-THRIFT-592.-php-Make-the-tutorial-work-properly-aft.patch
>
>
> When compiling the php files for the tutorial:
>     thrift -r --gen php tutorial.thrift
> It creates the gen-php folder with two subfolders: tutorial and shared
> but the PhpClient.php file under /tutorial/php expect all the php files to be 
> under gen-php without the subfolders:
>     $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';
> Thanks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to