New php_svn.dll binary

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

New php_svn.dll binary

Post 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.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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.
Post Reply