|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-25 16:28 UTC] h dot aling at home dot nl
[2008-02-25 21:29 UTC] alan at akbkhome dot com
[2008-03-04 20:43 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ Dear Devs, As the svn_log() manual describes, the returned array should have a [paths] => Array, describing changed files. I've fiddled around with "svn_auth_set_parameter(SVN_DISCOVER_CHANGED_PATHS, 1);" to no avail... I already discovered the from...to parameter in v0.3: $log = svn_log( "svn://server/", // path 2, // from revision ... 1, // ... to revision ); How do I enable the [paths] array to show up? Reproduce code: --------------- svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_USERNAME, ''); svn_auth_set_parameter(SVN_AUTH_PARAM_DEFAULT_PASSWORD, ''); svn_auth_set_parameter(SVN_DISCOVER_CHANGED_PATHS, 1); $log = svn_log( "svn://server/", // path 2, // from revision ... 1 // ... to revision ); var_dump($log); Expected result: ---------------- array(2) { [0]=> array(4) { ["rev"]=> int(2) ["author"]=> string(6) "harold" ["msg"]=> string(7) "..." ["date"]=> string(27) "2008-02-25T16:44:24.861415Z" ["paths"] => array( --> 'paths' array here ) } [1]=> array(4) { ["rev"]=> int(2) ["author"]=> string(6) "harold" ["msg"]=> string(23) "..." ["date"]=> string(27) "2008-02-25T12:22:04.488456Z" ["paths"] => array( --> 'paths' array here ) } } Actual result: -------------- array(2) { [0]=> array(4) { ["rev"]=> int(2) ["author"]=> string(6) "harold" ["msg"]=> string(7) "..." ["date"]=> string(27) "2008-02-25T16:44:24.861415Z" } [1]=> array(4) { ["rev"]=> int(2) ["author"]=> string(6) "harold" ["msg"]=> string(23) "..." ["date"]=> string(27) "2008-02-25T12:22:04.488456Z" } }