go to bug id or search bugs for
I've using darwin, so it's basically "the same" as running on freeBSD.
When I run a php containing calls to SVN functions using the php cli *it works fine*, but browsing to the same script on the apache server will cause a bus error.
$path = dirname(__FILE__).'/tmp/';
//checkout svn project
$success = svn_checkout('http://orderpics.googlecode.com/svn/trunk/', $path);
if ($handle = opendir($path))
echo "Directory handle: $handle\n";
while (false !== ($file = readdir($handle)))
(1) files added to tmp/ dir.
Directory handle: Resource id #4
on apache's error_log:
[notice] child pid 272 exit signal Bus error (10)
Add a Patch
Add a Pull Request
I think i've fixed this issue in CVS a few weeks ago.
Can you checkout a CVS copy or grab the patch from http://cvs.php.net/viewvc.cgi/pecl/svn/svn.c?
It's hard to test this sort of thing since it can be down to the environment the Apache process runs as.
Thanks for the quick reply :)
Tried compiling the latest source from CVS.
No luck, still getting the same error.
What apache are you running?
The default system one or one from macports?
Could you possibly try to get a backtrace of the crash? You
may need to start Apache in single user mode and set a
Are you sure your phpinfo page shows 0.4-dev at the version
number for the svn extension?
When I try your sample script with apache frm macports I get
Warning: svn_checkout() [function.svn-checkout]: svn
error(s) occured 13 (Permission denied) Can't make directory
'/Users/scott/www/tmp': Permission denied in
/Users/scott/www/bug.php on line 8
I'm using the macports apache, not the default leopard apache.
And yes, my phpinfo says "svn extension version 0.4.0-dev".
The error message you're getting is probably due to the fact that you don't have a 'tmp' directory on th same path as the php script.
I'll try and get the backtarace.
Can you try the latest release which is 0.4.1, pretty sure all segfaults are fixed now.
That's great to hear!
But my problem was already solved by re-installation of some
packages with the help of you and Alan. :)