|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-01 01:40 UTC] alan at akbkhome dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 00:00:01 2025 UTC |
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