David Reiss <dreiss <at> facebook.com> writes:

> 
> I think we (Facebook) have only ever built it with PHP 5.2.
> 
> Arya Goudarzi wrote:
> > Hi There, 
> > 
> > I am trying to compile Thrift's PHP module natively: 
> > 
> > thrift-0.2.0/lib/php/src/ext/thrift_protocol # make 
> > 
> > I get the following error and I could not find an online reference to help 
me with this issue: 
> > 
> > /root/workspace/thrift-
0.2.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:378:
> error: 'zend_std_get_constructor' was not declared in this scope 
> > make: *** [php_thrift_protocol.lo] Error 1 
> > 
> > This is the php version I am using: 
> > 
> > [root <at> localhost thrift_protocol]# yum list | grep installed | grep php 
> > php.x86_64 5.1.6-24.el5_4.5 installed 
> > php-cli.x86_64 5.1.6-24.el5_4.5 installed 
> > php-common.x86_64 5.1.6-24.el5_4.5 installed 
> > php-devel.x86_64 5.1.6-24.el5_4.5 installed 
> > php-mysql.x86_64 5.1.6-24.el5_4.5 installed 
> > php-pdo.x86_64 5.1.6-24.el5_4.5 installed 
> > php-pear.noarch 1:1.4.9-6.el5 installed 
> > php-pecl-memcache.x86_64 2.2.3-1.el5_2 installed 
> > 
> > Could this be an environment issue? I am using CentOS 5.2. 
> > 
> > Any help will be greatly appreciated. 
> > 
> > Please advice. 
> > 
> > Cheers, 
> > -Arya 
> 
> 


Hi
I have updated my php to 5.4.0.
Still I get the error:
/root/tools/thrift-
0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp: In function 
âvoid 
createObject(char*, zval*, int, zval*, zval*)â:
/root/tools/thrift-
0.8.0/lib/php/src/ext/thrift_protocol/php_thrift_protocol.cpp:404: error: 
âzend_std_get_constructorâ was not declared in this scope
make: *** [php_thrift_protocol.lo] Error 1

Please help.
Thanks in advance.


Reply via email to