You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nicholas Telford (JIRA)" <ji...@apache.org> on 2010/04/07 19:44:33 UTC

[jira] Created: (THRIFT-755) PHP Extension Fails to compile [Patch]

PHP Extension Fails to compile [Patch]
--------------------------------------

                 Key: THRIFT-755
                 URL: https://issues.apache.org/jira/browse/THRIFT-755
             Project: Thrift
          Issue Type: Bug
          Components: Library (PHP)
    Affects Versions: 0.2
         Environment: UNIX, PHP5
            Reporter: Nicholas Telford
            Priority: Minor
             Fix For: 0.2
         Attachments: php_thrift_protocol.h.diff

The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:

extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?

Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:

#define phpext_thrift_protocol_ptr &thrift_protocol_module_entry

The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

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


[jira] Commented: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "Nicholas Telford (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856849#action_12856849 ] 

Nicholas Telford commented on THRIFT-755:
-----------------------------------------

> Should there be parens around the right-hand size of the macro?
No idea, I'm not a C dev. I examined several other extensions and they all had the same macro (obviously with a different module name) so it should be fine.

> Also, are you building with ZTS?
I don't know what ZTS is, but I don't think so since: "php -i | grep zts" yeilds no output.

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "Nicholas Telford (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856851#action_12856851 ] 

Nicholas Telford commented on THRIFT-755:
-----------------------------------------

Further, I spoke to some PHP extension guys and they verified that the #define was the correct fix for compiling as a static module.

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "Nicholas Telford (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicholas Telford updated THRIFT-755:
------------------------------------

    Attachment: php_thrift_protocol.h.diff

Patch to make the native PHP extension compile.

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

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


[jira] Commented: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855086#action_12855086 ] 

David Reiss commented on THRIFT-755:
------------------------------------

Also, are you building with ZTS?

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

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


[jira] Closed: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Duxbury closed THRIFT-755.
--------------------------------

    Assignee: Nicholas Telford

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Assignee: Nicholas Telford
>            Priority: Minor
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

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


[jira] Commented: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855084#action_12855084 ] 

David Reiss commented on THRIFT-755:
------------------------------------

Should there be parens around the right-hand size of the macro?

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>             Fix For: 0.2
>
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

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


[jira] Resolved: (THRIFT-755) PHP Extension Fails to compile [Patch]

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reiss resolved THRIFT-755.
--------------------------------

    Fix Version/s:     (was: 0.2)
       Resolution: Fixed

> PHP Extension Fails to compile [Patch]
> --------------------------------------
>
>                 Key: THRIFT-755
>                 URL: https://issues.apache.org/jira/browse/THRIFT-755
>             Project: Thrift
>          Issue Type: Bug
>          Components: Library (PHP)
>    Affects Versions: 0.2
>         Environment: UNIX, PHP5
>            Reporter: Nicholas Telford
>            Priority: Minor
>         Attachments: php_thrift_protocol.h.diff
>
>
> The native PHP extension fails to compile at all due to a spelling error in php_thrift_protocol.h:
> extern zend_module_entry thrift_protocole_module_entry; <-- "protocole"!?
> Also, if this is fixed, it will only compile as a shared module. To compile as a static module, the following needs to be added to php_thrift_protocol.h:
> #define phpext_thrift_protocol_ptr &thrift_protocol_module_entry
> The attached patch is a solution to both problems, fixing compilation. I have tested and verified that it works.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira