PHP functions that use wrappers

I'm updating the PHP code base to be able to run on PHP5.3 +, and I need a list of functions that use wrappers.

http://www.php.net/manual/en/wrappers.php

This page mentions; fopen (), copy (), file_exists () and filesize (). I know there are other functions; file_get_contents (), file () and others.

Does anyone have a complete list? Or maybe an easy way to "grep" through a directory is to look for functions using wrappers?

+4
source share
1 answer

grep php source for php_stream_open_wrapper_ex calls that should give PHP_FUNCTION that interact directly with wrappers.

A rough and probably partially incorrect list ( -B 100 not accurate):

 $ find . -name '*.c'| xargs grep -B 100 php_stream_open_wrapper_ex| grep PHP_FUNCTION ./ext/standard/url.c-PHP_FUNCTION(rawurlencode) ./ext/standard/url.c-PHP_FUNCTION(rawurldecode) ./ext/standard/url.c-PHP_FUNCTION(get_headers) ./ext/standard/file.c-PHP_FUNCTION(file_get_contents) ./ext/standard/file.c-PHP_FUNCTION(file_put_contents) ./ext/standard/file.c-PHP_FUNCTION(file) ./ext/standard/file.c-PHP_FUNCTION(tempnam) ./ext/standard/file.c-PHP_FUNCTION(mkdir) ./ext/standard/file.c-PHP_FUNCTION(rmdir) ./ext/standard/file.c-PHP_FUNCTION(readfile) ./ext/oci8/oci8_interface.c-PHP_FUNCTION(oci_lob_export) ./ext/hash/hash.c-PHP_FUNCTION(hash) ./ext/hash/hash.c-PHP_FUNCTION(hash_file) ./ext/hash/hash.c-PHP_FUNCTION(hash_update) ./ext/hash/hash.c-PHP_FUNCTION(hash_update_stream) ./ext/hash/hash.c-PHP_FUNCTION(hash_update_file) 
+3
source

All Articles