[TYPO3-core] RFC: function cmpIPv4 - PHP 5.1.12 warning with wrong usage of array index
Franz Holzinger
franz at fholzinger.com
Mon Apr 24 13:51:24 CEST 2006
Hello,
This is a CVS patch request.
Type: Bugfix
Branch: TYPO3_4-0
Description:
The following line causes a lot of the same error message in PHP 5.1.12.
You will get this on the screen with phpMyAdmin if you have turned on
the display of error messages in php.ini and the install tool.
functions cmpIPv4 and cmpIPv6
list($test,$mask) = explode('/',$test);
Notice: Undefined offset: 1 in
/var/www/html/TYPO3core/t3lib/class.t3lib_div.php on line 632
Call Stack
# Function Location
1 {main}()
/var/www/html/TYPO3core/typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/tbl_properties_structure.php:0
2 debug()
/var/www/html/TYPO3core/typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/tbl_properties_structure.php:8
3 t3lib_div::cmpIP()
/var/www/html/TYPO3core/t3lib/config_default.php:337
4 t3lib_div::cmpIPv4()
/var/www/html/TYPO3core/t3lib/class.t3lib_div.php:615
Change:
Replace this assignment and ask before if the array has an index=1.
You need PHP 5.1.12 and phpMyAdmin installed to see the difference.
Greets,
Franz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3lib_div_cmpip.diff
Type: text/x-patch
Size: 2415 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060424/12812906/attachment.bin
More information about the TYPO3-team-core
mailing list