Bug #5224
PL/PHP will not build against 5.3.x
Start date:
06/04/2010
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
When attempting to build against embedded PHP 5.3.2 and Postgres 8.4.3. A build against PHP 5.2.x works fine as the regressions are caused by changes to the 5.3 tree.
# gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) # make -v GNU Make 3.81 # gmake gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -fpic -I/usr/local/embedphp/include/php -I/usr/local/embedphp/include/php/main -I/usr/local/embedphp/include/php/TSRM -I/usr/local/embedphp/include/php/Zend -I/usr/local/embedphp/include/php/ext -I/usr/local/embedphp/include/php/ext/date/lib -I/usr/local/embedphp/include/php -I/usr/local/embedphp/include/php/main -I/usr/local/embedphp/include/php/TSRM -I/usr/local/embedphp/include/php/Zend -I/usr/local/embedphp/include/php/ext -I/usr/local/embedphp/include/php/ext/date/lib -I. -I/usr/include/pgsql/server -I/usr/include/pgsql/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o plphp.o plphp.c plphp.c: In function 'plphp_call_php_trig': plphp.c:1713: error: 'zval' has no member named 'is_ref' plphp.c:1722: error: 'zval' has no member named 'is_ref' gmake: *** [plphp.o] Error 1
Updated by Álvaro Herrera over 14 years ago
I have fixed this in the Subversion trunk. It now compiles with PHP 5.3 with a couple of deprecation warnings; regression tests pass. I had to add alternate expected files for two tests due to an innocuous whitespace change in a PHP error message.
Please give it a try.
Updated by Álvaro Herrera over 14 years ago
- Status changed from New to Closed
Independent testers have confirmed that this fixes the issues. Closing ticket.