List Info

Thread: small change to remove a notification




small change to remove a notification
user name
2007-07-16 10:25:46
Hello all.
I use websvn to publish the sources of my project.

I use a LAMP server, and php error reporting is configured
with E_NOTICES and
E_STRICT.

I have made a small change to remove a couple of
notifications :
*PHP Notice:  Undefined offset:  1 in
/home/heberg/bildo/www/websvn/listing.php on line 109*
*PHP Notice:  Undefined offset:  1 in
/home/heberg/bildo/www/websvn/listing.php on line 138*
--------
In file /home/heberg/bildo/www/websvn/listing.php line 109
Old: if ( !strcmp($subs[$level+1]."/", $file) ||
!strcmp($subs[$level+1], $file))
New: if ( isset($subs[$level+1]) && (
!strcmp($subs[$level+1]."/", $file) ||
!strcmp($subs[$level+1], $file)))

In file /home/heberg/bildo/www/websvn/listing.php line 138
Old: if ( !strcmp($subs[$level + 1]."/", $file) )
New: if ( isset($subs[$level+1]) &&
!strcmp($subs[$level + 1]."/", $file))
--------

It is also useful for peoples like us who manage a web
server, because if you
have too much notices or warning in logs, it is hard to see
which ones are
importants or no.

Thanks,
Andre Rodier

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribewebsvn.tigris.org
For additional commands, e-mail: dev-helpwebsvn.tigris.org


Re: small change to remove a notification
user name
2007-07-17 02:03:35
Hi,

Please report bugs based on the latest truck. 

The trunk is very stable, and is due for release very soon.

Tim


On 16/07/07, andre < andrebildo-project.org">andrebildo-project.org>; wrote:
Hello all.
I use websvn to publish the sources of my project.

I use a LAMP server, and php error reporting is configured with E_NOTICES and
E_STRICT.

I have made a small change to remove a couple of notifications :
*PHP Notice:&nbsp; Undefined offset:&nbsp; 1 in /home/heberg/bildo/www/websvn/listing.php on line 109*
*PHP Notice:&nbsp; Undefined offset:&nbsp; 1 in /home/heberg/bildo/www/websvn/listing.php on line 138*
--------
In file /home/heberg/bildo/www/websvn/listing.php line 109
Old: if ( !strcmp($subs[$level+1]."/&quot;, $file) || !strcmp($subs[$level+1], $file))
New: if ( isset($subs[$level+1]) && ( !strcmp($subs[$level+1]."/&quot;, $file) || !strcmp($subs[$level+1], $file)))

In file /home/heberg/bildo/www/websvn/listing.php line 138
Old: if ( !strcmp($subs[$level + 1]."/", $file) )
New: if ( isset($subs[$level+1]) && !strcmp($subs[$level + 1]."/", $file))
--------

It is also useful for peoples like us who manage a web server, because if you
have too much notices or warning in logs, it is hard to see which ones are
importants or no.

Thanks,
Andre Rodier

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribewebsvn.tigris.org">dev-unsubscribewebsvn.tigris.org
For additional commands, e-mail: dev-helpwebsvn.tigris.org">dev-helpwebsvn.tigris.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )