php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59807 svn_delete failed
Submitted: 2011-06-09 02:57 UTC Modified: 2011-06-10 02:06 UTC
From: he dot chen at zte dot com dot cn Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.2.17 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: he dot chen at zte dot com dot cn
New email:
PHP Version: OS:

 

 [2011-06-09 02:57 UTC] he dot chen at zte dot com dot cn
Description:
------------
How to use svn_delete to delete items directly from a svn 
repository? 

Reproduce code:
---------------
I tried 
svn_delete("https://192.168.0.100/test.php"), but failed.

Expected result:
----------------
svn_delete can delete directly from a svn repository


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-06-09 08:06 UTC] alan at akbkhome dot com
Please turn on error reporting
error_reporting(-1); 

It should show an error.
 [2011-06-09 09:53 UTC] he dot chen at zte dot com dot cn
I have enhanced the svn_delete() in svn.c and rebuild to 
php_svn.dll to solve the problem

svn_delete(string log, string path [, bool force = true])

	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() 
TSRMLS_CC, "ss|b",
					&log, &loglen, 
&path, &pathlen, &force)) {
	SVN_G(ctx)->log_msg_baton = log;

	err = svn_client_delete2(&info, targets, force, 
SVN_G(ctx), subpool);
	SVN_G(ctx)->log_msg_baton = NULL;
 [2011-06-09 09:53 UTC] he dot chen at zte dot com dot cn
I have enhanced the svn_delete() in svn.c and rebuild to 
php_svn.dll to solve the problem

svn_delete(string log, string path [, bool force = true])

	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() 
TSRMLS_CC, "ss|b",
					&log, &loglen, 
&path, &pathlen, &force)) {
	SVN_G(ctx)->log_msg_baton = log;

	err = svn_client_delete2(&info, targets, force, 
SVN_G(ctx), subpool);
	SVN_G(ctx)->log_msg_baton = NULL;
 [2011-06-09 11:07 UTC] alan at akbkhome dot com
the parameter will have to be at the end, and optional 
(otherwise it breaks backward compatibility)

can you try running svn diff on it, and send me the result
alan_k@php.net

Thanks.
 [2011-06-10 02:06 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC