Hi Tomas. PHP is a lazy language, allowing all kinds of stuff. When developers do checks on an array, they often try to get the value for a given index key without first checking if the index key has been set. This will work, but if your PHP interpreter engine has been configured to log or display notices, you will get the "undefined index" message. As for the warning, this could be related to improper escaping of quotes.
I don't know the details of your installation, but I would recommend disabling display_errors option in your runtime config, since you may unintentionally disclose sensitive error messages to the user. Instead enable the error_reporting option which logs to syslog etc. This option also allows varying levels of logging, e.g. E_ALL & ~E_NOTICE will log all errors except for notices and coding standards warnings. Best regards, Tor Inge Skaar On Mon, Jan 2, 2012 at 1:38 PM, Tomas Plesnik <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Peter, > > Dne 31.12.2011 14:40, Peter Haag napsal(a): >> Hi list, >> I just released nfsen-1.3.6 as an intermediate release. > > I just installed nfsen-1.3.6 on our devel Centos server with enabled > display_errors directive in /etc/php.ini. But when I load Details > section in NfSen interface I get several warnings and notices: > > Warning: Unexpected character in input: ' ' (ASCII=1) state=2 in > /var/www/html/nfsen/details.php on line 1709 > > Notice: Undefined index: in /var/www/html/nfsen/details.php on line 1148 > > Notice: Undefined index: _tcp in /var/www/html/nfsen/details.php on line > 1148 > > Notice: Undefined index: _udp in /var/www/html/nfsen/details.php on line > 1148 > > Notice: Undefined index: _icmp in /var/www/html/nfsen/details.php on > line 1148 > > Notice: Undefined index: _other in /var/www/html/nfsen/details.php on > line 1148 > > Notice: Undefined index: in /var/www/html/nfsen/details.php on line 1171 > > Notice: Undefined index: _tcp in /var/www/html/nfsen/details.php on line > 1171 > > Notice: Undefined index: _udp in /var/www/html/nfsen/details.php on line > 1171 > > Notice: Undefined index: _icmp in /var/www/html/nfsen/details.php on > line 1171 > > Notice: Undefined index: _other in /var/www/html/nfsen/details.php on > line 1171 > > Notice: Undefined index: in /var/www/html/nfsen/details.php on line 1193 > > Notice: Undefined index: _tcp in /var/www/html/nfsen/details.php on line > 1193 > > Notice: Undefined index: _udp in /var/www/html/nfsen/details.php on line > 1193 > > Notice: Undefined index: _icmp in /var/www/html/nfsen/details.php on > line 1193 > > Notice: Undefined index: _other in /var/www/html/nfsen/details.php on > line 1193 > > > Is it correct? > > > Tomas > > - -- > Tomas Plesnik [email protected] > CSIRT-MU, Network Security Department http://www.muni.cz/csirt > Institute of Computer Science, Masaryk University, Brno, Czech Republic > PGP key ID: 0x9D3722F3 > > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > > iEYEARECAAYFAk8BpVsACgkQGA/bT503IvPh9ACgvjEaGTbUJo5j6na75u0OnBCF > 7GwAniJdQ6WRRn0i3LU2D4DpG9j8HXnC > =0sRg > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Nfsen-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nfsen-discuss ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Nfsen-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
