2013-11-12 08:26:11 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| 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 "phpdbg.h"
|
|
|
|
#include "phpdbg_print.h"
|
2013-11-12 22:39:39 +00:00
|
|
|
#include "phpdbg_utils.h"
|
2013-11-12 08:26:11 +00:00
|
|
|
|
2013-11-12 09:26:26 +00:00
|
|
|
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
|
|
|
|
|
|
|
|
PHPDBG_PRINT(opline) /* {{{ */
|
2013-11-12 08:26:11 +00:00
|
|
|
{
|
2013-11-12 09:26:26 +00:00
|
|
|
if (EG(in_execution) && EG(current_execute_data)) {
|
|
|
|
phpdbg_print_opline(
|
|
|
|
EG(current_execute_data), 1 TSRMLS_CC);
|
|
|
|
} else {
|
2013-11-12 22:39:39 +00:00
|
|
|
phpdbg_error("Not Executing!");
|
2013-11-12 09:26:26 +00:00
|
|
|
}
|
2013-11-12 22:39:39 +00:00
|
|
|
|
2013-11-12 08:26:11 +00:00
|
|
|
return SUCCESS;
|
|
|
|
} /* }}} */
|