Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$functions = get_extension_funcs("yac"); return boolean(false) #64

Closed
joostshao opened this issue Apr 27, 2016 · 4 comments
Closed

$functions = get_extension_funcs("yac"); return boolean(false) #64

joostshao opened this issue Apr 27, 2016 · 4 comments

Comments

@joostshao
Copy link

$functions = get_extension_funcs("yac"); return boolean(false)

php version:

PHP 7.1.0-dev (cli) (built: Apr 15 2016 09:37:48) ( NTS DEBUG )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
@remicollet
Copy link
Contributor

Perhaps because this extension doesn't provide any function ;)

Try:

 php  --re  yac

@joostshao
Copy link
Author

ubt@ubt:~/yac-php7$ php  --re  yac
Extension [ <persistent> extension #53 yac version 2.0.1-dev ] {

  - INI {
    Entry [ yac.enable <SYSTEM> ]
      Current = '1'
    }
    Entry [ yac.debug <ALL> ]
      Current = '0'
    }
    Entry [ yac.keys_memory_size <SYSTEM> ]
      Current = '4M'
    }
    Entry [ yac.values_memory_size <SYSTEM> ]
      Current = '64M'
    }
    Entry [ yac.compress_threshold <SYSTEM> ]
      Current = '-1'
    }
    Entry [ yac.enable_cli <SYSTEM> ]
      Current = '0'
    }
  }

  - Constants [5] {
    Constant [ string YAC_VERSION ] { 2.0.1-dev }
    Constant [ integer YAC_MAX_KEY_LEN ] { 48 }
    Constant [ integer YAC_MAX_VALUE_RAW_LEN ] { 67108863 }
    Constant [ integer YAC_MAX_RAW_COMPRESSED_LEN ] { 1048576 }
    Constant [ string YAC_SERIALIZER ] { PHP }
  }

  - Classes [1] {
    Class [ <internal:yac> class Yac ] {

      - Constants [0] {
      }

      - Static properties [0] {
      }

      - Static methods [0] {
      }

      - Properties [1] {
        Property [ <default> protected $_prefix ]
      }

      - Methods [10] {
        Method [ <internal:yac, ctor> public method __construct ] {

          - Parameters [1] {
            Parameter #0 [ <optional> $prefix ]
          }
        }

        Method [ <internal:yac> public method add ] {

          - Parameters [3] {
            Parameter #0 [ <required> $keys ]
            Parameter #1 [ <optional> $value ]
            Parameter #2 [ <optional> $ttl ]
          }
        }

        Method [ <internal:yac> public method set ] {

          - Parameters [3] {
            Parameter #0 [ <required> $keys ]
            Parameter #1 [ <optional> $value ]
            Parameter #2 [ <optional> $ttl ]
          }
        }

        Method [ <internal:yac> public method __set ] {

          - Parameters [2] {
            Parameter #0 [ <required> $key ]
            Parameter #1 [ <required> $value ]
          }
        }

        Method [ <internal:yac> public method get ] {

          - Parameters [1] {
            Parameter #0 [ <required> $keys ]
          }
        }

        Method [ <internal:yac> public method __get ] {

          - Parameters [1] {
            Parameter #0 [ <required> $key ]
          }
        }

        Method [ <internal:yac> public method delete ] {

          - Parameters [2] {
            Parameter #0 [ <required> $keys ]
            Parameter #1 [ <optional> $ttl ]
          }
        }

        Method [ <internal:yac> public method flush ] {

          - Parameters [0] {
          }
        }

        Method [ <internal:yac> public method info ] {

          - Parameters [0] {
          }
        }

        Method [ <internal:yac> public method dump ] {

          - Parameters [0] {
          }
        }
      }
    }
  }
}

and the class Yac exits.
and

php > var_dump(method_exists('Yac','set'));
bool(true)

@laruence
Copy link
Owner

@joostshao as @remicollet said, this extension doesn't provide any functions. only a class

@joostshao
Copy link
Author

joostshao commented Apr 27, 2016

sorry, i understand it . Thank you
i mix the functions and methods in class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants