All pastes #1304533 Raw Edit

Miscellany

public text v1 · immutable
#1304533 ·published 2009-01-09 19:58 UTC
rendered paste body
--TEST--
Testing reflection ReflectionFunction::getParameters() with gzopen().
--FILE--
<?php

   $functionName = 'gzopen';

   $f=new ReflectionFunction($functionName);
   var_dump($f->getParameters());
?>
--EXPECT--
array(3) {
  [0]=>
  &object(ReflectionParameter)#2 (1) {
    ["name"]=>
    string(8) "filename"
  }
  [1]=>
  &object(ReflectionParameter)#3 (1) {
    ["name"]=>
    string(4) "mode"
  }
  [2]=>
  &object(ReflectionParameter)#4 (1) {
    ["name"]=>
    string(16) "use_include_path"
  }
}