php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: darwin_duck at yahoo dot com
New email:
PHP Version: OS:

 

 [2010-02-27 08:13 UTC] darwin_duck at yahoo dot com
Description:
------------
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
print_r(svn_mkdir("svn://mysvnlocation/test/trunk"));

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
2300c2300
< /* {{{ proto mixed svn_mkdir(string path)
---
> /* {{{ proto mixed svn_mkdir(string log, string path)
2304,2305c2304,2305
< 	const char *path = NULL, *utf8_path = NULL;
< 	int pathlen;
---
> 	const char *path = NULL, *utf8_path = NULL, *log = NULL;
> 	int pathlen, loglen;
2311,2312c2311,2312
< 	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)) {
2322a2323,2324
> 	SVN_G(ctx)->log_msg_baton = log;
> 


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

Actual result:
--------------
TRUE

Patches

Pull Requests

History

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 pecl.php.net.

In case this was a pecl.php.net 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 
sense.

Regards
Alan
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 04:01:38 2025 UTC