php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57685 Accept string targets parameter in svn_commit()
Submitted: 2007-05-25 21:39 UTC Modified: 2008-02-26 10:51 UTC
From: edwardzyang at thewritingpot dot com Assigned:
Status: Closed Package: svn (PECL)
PHP Version: Irrelevant OS:
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: edwardzyang at thewritingpot dot com
New email:
PHP Version: OS:

 

 [2007-05-25 21:39 UTC] edwardzyang at thewritingpot dot com
Description:
------------
This is a very humble feature request, a little bit of syntactic sugar to make developers happy. Currently, the svn_commit() function requires that the second parameter, $targets, be an array. Many times, developers only want to commit an entire directory, so quite often count($targets) will equal 1. If the targets array accepted a string as a single target, it would be greatly helpful.

Reproduce code:
---------------
svn_commit($log, 'file.txt');

Expected result:
----------------
Same results as if this were called:

svn_commit($log, array('file.txt'));

Actual result:
--------------
Error stating that $targets parameter must be an array.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-26 10:51 UTC] scottmac@php.net
I just committed this to cvs, will be in 0.4.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 07:01:32 2025 UTC