Page 1 of 1

New php_svn.dll binary

Posted: Mon Nov 05, 2007 11:37 am
by Ambush Commander
After much coaxing and pleading, I've managed to compile a new version of php_svn.dll linked against the latest Subversion client library (1.4.5) on PHP 5.2.4. This is important because Subversion 1.4 introduced incompatible changes to working copies, rendering the working copies unusable by earlier versions of Subversion (namely, 1.3.1, which the PECL distribution is still linked against).

I don't know if anyone cares, but here's what I had to do:

1. Set up a PHP compilation environment following Elizabeth's excellent instructions
2. Download SVN 0.2 source code and place it in the ext/ directory of the source code (you can, alternatively, place it in another directory and use --add-modules-dir when running buildconf
3. Modify config.w32 by updating with the latest version from the CVS and also change libapr.lib and libaprutil.lib to libapr-1.lib and libaprutil-1.lib, respectively. This probably needs to be committed to the CVS
4. Download the newest Subversion development binaries, be sure to also grab the patched libintl and bdb 4.3 zips which are pointed to in the README file. Substitute these in for the original svn libraries/headers found in php_build that you setup in step 1
5. buildconf
6. ./cscript configure.js --enable-snapshot-build (It seems that the DLL makefile rules are only setup when snapshots are being done, if someone else can figure another way, please tell me, because this does a lot of configuration I'm not interested in)
7. nmake /I php_svn.dll

And there you go! If anyone could try to reproduce this with me, that would be great, so that I'm sure I didn't miss anything in these instructions.

Posted: Mon Nov 05, 2007 3:22 pm
by Maugrim_The_Reaper
Should be updated to PECL! ;)

I'd love to re-perform, but I'm having some issues on Windows Vista. Primarily an unrecognised flag when trying compile PHP from the 5.2.4 source using nmake. Looking for a solution later so I'll get back to you.