|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-26 10:51 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 10:00:01 2025 UTC |
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.