mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
40 lines
1.7 KiB
C
40 lines
1.7 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 5 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1997-2013 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.php.net/license/3_01.txt |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Felipe Pena <felipe@php.net> |
|
|
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#include "php.h"
|
|
#include "phpdbg_utils.h"
|
|
#include "phpdbg_info.h"
|
|
|
|
PHPDBG_INFO(files) /* {{{ */
|
|
{
|
|
HashPosition pos;
|
|
char *fname;
|
|
|
|
phpdbg_notice("Included files: %d",
|
|
zend_hash_num_elements(&EG(included_files)));
|
|
|
|
zend_hash_internal_pointer_reset_ex(&EG(included_files), &pos);
|
|
while (zend_hash_get_current_key_ex(&EG(included_files), &fname,
|
|
NULL, NULL, 0, &pos) == HASH_KEY_IS_STRING) {
|
|
phpdbg_writeln("File: %s", fname);
|
|
zend_hash_move_forward_ex(&EG(included_files), &pos);
|
|
}
|
|
|
|
return SUCCESS;
|
|
} /* }}} */
|