Development

#1690 ([PATCH] Show php extensions version numbers in the web debug bar)

You must first sign up to be able to contribute.

Ticket #1690 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

[PATCH] Show php extensions version numbers in the web debug bar

Reported by: COil Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.0.2
Keywords: Cc:
Qualification: Ready for core team

Description

sfDebug.class.php

    /**
     * Returns PHP information as an array.
     * 
     * @return  array An array of php information
     */
    public static function phpInfoAsArray()
    {
        $values = array(
            'php'        => phpversion(),
            'os'         => php_uname(),
            'extensions' => get_loaded_extensions(),
        );

        // assign extension version if available
        if ($values['extensions']) {
            foreach ($values['extensions'] as $lkey => $extension) {
                $values['extensions'][$lkey] = phpversion($extension) ? $extension. ' ('. phpversion($extension). ')' : $extension;
            }
        }

        return $values;
    }

Exemples :

standard (5.1.4) tokenizer (0.1) ...

Change History

04/19/07 11:07:24 changed by COil

  • summary changed from Show php extensions version numbers in the web debug bar to [PATCH] Show php extensions version numbers in the web debug bar.

06/05/07 23:36:41 changed by dwhittle

  • status changed from new to closed.
  • resolution set to fixed.

(In [4163]) dwhittle: applying patches for xdebug setting.yml switch + extension versions in php info, closes #1802, #1690

06/05/07 23:44:45 changed by dwhittle

  • status changed from closed to reopened.
  • resolution deleted.

not committed to trunk...

06/20/07 18:17:42 changed by COil

why wasn't it committed to trunk ?

06/20/07 19:14:39 changed by dwhittle

This would be my fault, I committed to my branch and when trac closed the ticket I reopened. I must have accidentally marked at deleted. Sorry.

10/01/07 08:18:43 changed by dwhittle

  • qualification set to Ready for core team.

10/01/07 09:44:10 changed by fabien

  • status changed from reopened to closed.
  • resolution set to fixed.

in r5342

03/06/08 01:29:57 changed by COil

Tested with PHP5.2.5 , ok

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.