php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #62269
Patch php-pecl-apd-php-5.4.patch revision 2012-08-04 19:16 UTC by omega13a at sbcglobal dot net

Patch php-pecl-apd-php-5.4.patch for apd Bug #62269

Patch version 2012-08-04 19:16 UTC

Return to Bug #62269 | Download this patch
Patch Revisions:

Developer: omega13a@sbcglobal.net

diff -Naurp php-pecl-apd-1.0.2/apd-1.0.2/php_apd.c php-pecl-apd-1.0.2-patched/apd-1.0.2/php_apd.c
--- php-pecl-apd-1.0.2/apd-1.0.2/php_apd.c	2012-08-04 11:12:58.000000000 -0700
+++ php-pecl-apd-1.0.2-patched/apd-1.0.2/php_apd.c	2012-08-04 12:00:15.000000000 -0700
@@ -337,7 +337,7 @@ char *apd_get_active_function_name(zend_
 			}
 		} 
 		else {
-			switch (execd->opline->op2.u.constant.value.lval) {
+			switch (execd->opline->extended_value) {
 			case ZEND_EVAL:
 				funcname = estrdup("eval");
 				break;
@@ -441,8 +441,8 @@ static void log_time(TSRMLS_D)
 		if(utime || stime || rtime) {
             int lineno = 0;
             if(EG(active_op_array)) {
-				if(EG(active_op_array)->start_op) {
-					lineno = EG(active_op_array)->start_op->lineno;
+				if(EG(start_op)) {
+					lineno = EG(start_op)->lineno;
 				} else if(EG(active_op_array)->opcodes) {
 					lineno = EG(active_op_array)->opcodes->lineno;
 				}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC