On Mon, 6 Jun 2011 09:57:49 +1000, Craig Small wrote:
> On Sun, Jun 05, 2011 at 08:44:05PM +0200, Marek Królikowski wrote:
>>    20:38:13 tcp_ports(): nmap returned 1
>>    Warning: Wrong parameter count for strstr() in
>>    /opt/jffnms2/lib/api.network.inc.php on line 462
> Line 462 is this:
>   if ( ($trim_status = strstr($status, '(', TRUE)) !== FALSE)
>
> I just tried that bit of code and it works fine.  The three-parameter
> strstr() appears in PHP 5.3.0, perhaps you are running an older PHP?
>
> Try replacing that line and the return $trim_status with:
>   if ( ($trim_pos = strpos($status, 'X')) !== FALSE)
>       return substr($status,0,$trim_pos-1);
>
> I suspect the other errors are due to the first.
>

 Hey
 You got right i use PHP 5.2.17 because my old jffnms 0.8.5 not working 
 on php 5.3.
 After change this what u write i got another warrnings in another 
 file.. :
         08:44:47 tcp_ports(): nmap returned 1  UDP Ports    [Manual 
 Add]
 Warning: array_key_exists() [function.array-key-exists]: The second 
 argument should be either an array or an object in 
 /opt/jffnms2/lib/api.inc.php on line 485

 Warning: array_key_exists() [function.array-key-exists]: The second 
 argument should be either an array or an object in 
 /opt/jffnms2/lib/api.inc.php on line 485

 Warning: array_key_exists() [function.array-key-exists]: The second 
 argument should be either an array or an object in 
 /opt/jffnms2/lib/api.inc.php on line 485

 thanks


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to