[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] [PHP EXTENSION] How can I list included files (in PHP script) from RINIT function?
From: "Tom Rogers" <trogers () kwikin ! com>
Date: 2014-07-28 23:49:18
Message-ID: em82779eb2-bc3d-4c83-a158-1acae3a9fe2b () tom-pc
[Download RAW message or body]
------ Original Message ------
From: "Andrea Ganduglia" <dev@frequenze.it>
To: php-general@lists.php.net
Sent: 28/07/2014 7:56:46 PM
Subject: [PHP] [PHP EXTENSION] How can I list included files (in PHP
script) from RINIT function?
>I'm writing my first php extension and I need to list included files
>(in PHP script) from RINIT function,
>but I cannot figure out how.
>
>I deep into PHP source code and I think it's related to
>EG(included_files), but I can't to access the list.
>
>PHP_RINIT_FUNCTION(extname)
>{
>
> // SAPI NAME AND PHP SCRIPT FILE HANDLE PATH
> char *pt_var_sapi_name = sapi_module.name;
> char *pt_var_file_handle_path = SG(request_info).path_translated;
>
> // HOW CAN I USE EG(included_files) to get included files list?
>
> return SUCCESS;
>}
>
>
>Thanks!
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
Hi
Take a look at the php source code for zend_builtin_functions.c and the
function get_included_files()
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic