kostya-p / phpsvnclient

Automatically exported from code.google.com/p/phpsvnclient
0 stars 0 forks source link

Multiple warnings/notices in PHP 5.2 #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set up a minimalistic PHP file to checkout from an SVN server
2. run the php file

What is the expected output? What do you see instead?
Not an error

What version of the product are you using? On what operating system?
Latest according to svn checkout on Ubuntu 11.04

Please provide any additional information below.

Try this php script:
<?php
require ('phpsvnclient/phpsvnclient.php');
$oSVN = new phpsvnclient('https://subversion.server.com/trunk', 'user', 
'password');
$oSVN->checkOut();
?>

It outputs:
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/phpsvnclient/phpsvnclient.php on line 165

I added a "continue" but that only took the script so far before more warnings 
showed up:
if (!is_array($tree))continue;

The following messages are:
PHP Notice:  Uninitialized string offset: 0 in 
/var/www/phpsvnclient/phpsvnclient.php on line 560
PHP Notice:  Undefined index: RequestURI in 
/var/www/phpsvnclient/phpsvnclient.php on line 555
PHP Notice:  Uninitialized string offset: 0 in 
/var/www/phpsvnclient/phpsvnclient.php on line 560

Original issue reported on code.google.com by El.Nego on 29 Apr 2011 at 6:13

GoogleCodeExporter commented 8 years ago
You can turn off display of errors in the settings of PHP. Or, please provide a 
more detailed description of the problem and specify the address of the 
repository when working with which errors occur. Or, please provide the 
appropriate patch.

Original comment by forpdfse...@gmail.com on 11 Jun 2011 at 10:04

GoogleCodeExporter commented 8 years ago

Original comment by forpdfse...@gmail.com on 5 Mar 2012 at 6:53