Return to func.inc CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / zlib / tests |
1.1 misho 1: <?php 2: 3: function get_zlib_version() 4: { 5: $version = NULL; 6: 7: ob_start(); 8: phpinfo(); 9: $info = ob_get_contents(); 10: ob_end_clean(); 11: if (preg_match(',zlib.*Compiled Version => (\d+\.\d+\.\d+),s', $info, $match)) { 12: $version = $match[1]; 13: } 14: 15: return $version; 16: } 17: