Annotation of embedaddon/php/ext/zlib/tests/func.inc, revision 1.1.1.1

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: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>