|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59092 svn_mkdir always return true
Submitted: 2010-02-27 08:13 UTC Modified: 2010-03-01 01:40 UTC
From: darwin_duck at yahoo dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.9 OS: Debian Lenny
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: darwin_duck at yahoo dot com
New email:
PHP Version: OS:


 [2010-02-27 08:13 UTC] darwin_duck at yahoo dot com
If you try create a directory on your repository, the svn_mkdir always returns true and none directory is created.

Reproduce code:
To reproduce:
... // authentication calls

To fix problem, apply this patch in svn.c and recompile package:
Common subdirectories: /tmp/pear/download/svn-0.5.1/examples and svn-0.5.1/examples
diff -B /tmp/pear/download/svn-0.5.1/svn.c svn-0.5.1/svn.c
< /* {{{ proto mixed svn_mkdir(string path)
> /* {{{ proto mixed svn_mkdir(string log, string path)
< 	const char *path = NULL, *utf8_path = NULL;
< 	int pathlen;
> 	const char *path = NULL, *utf8_path = NULL, *log = NULL;
> 	int pathlen, loglen;
< 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
< 					&path, &pathlen)) {
> 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss",
> 					&log, &loglen, &path, &pathlen)) {
> 	SVN_G(ctx)->log_msg_baton = log;

Expected result:
Svn_mkdir function was return an array with last revision, timestamp and author.

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-01 01:40 UTC] alan at akbkhome dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Thanks - I swapped the signature, as it seemed to make more 

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 09:03:33 2022 UTC