Changeset 593 for branches/1.3/utils.c
- Timestamp:
- 07/05/2009 06:06:15 AM (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/utils.c
r436 r593 333 333 zend_op *opline; 334 334 335 #ifdef DEBUG 336 fprintf(stderr, "binding %d\n", oplineno); 337 #endif 335 TRACE("binding %d", oplineno); 338 336 assert(oplineno >= 0); 339 337 … … 354 352 355 353 parent_name = &(opline - 1)->op2.u.constant; 356 # ifdef DEBUG 357 fprintf(stderr, "binding with parent %s\n", Z_STRVAL_P(parent_name)); 358 # endif 354 TRACE("binding with parent %s", Z_STRVAL_P(parent_name)); 359 355 if (zend_lookup_class(Z_STRVAL_P(parent_name), Z_STRLEN_P(parent_name), &pce TSRMLS_CC) == FAILURE) { 360 356 return FAILURE; … … 371 367 zend_op *fetch_class_opline = opline - 1; 372 368 373 # ifdef DEBUG 374 fprintf(stderr, "%s %p\n", Z_STRVAL(fetch_class_opline->op2.u.constant), Z_STRVAL(fetch_class_opline->op2.u.constant)); 375 # endif 369 TRACE("%s %p", Z_STRVAL(fetch_class_opline->op2.u.constant), Z_STRVAL(fetch_class_opline->op2.u.constant)); 376 370 OP_ZVAL_DTOR(fetch_class_opline->op2); 377 371 fetch_class_opline->opcode = ZEND_NOP; … … 736 730 } 737 731 /* }}} */ 732 int xc_vtrace(const char *fmt, va_list args) /* {{{ */ 733 { 734 vfprintf(stderr, fmt, args); 735 return 0; 736 } 737 /* }}} */ 738 int xc_trace(const char *fmt, ...) /* {{{ */ 739 { 740 va_list args; 741 742 va_start(args, fmt); 743 xc_vtrace(fmt, args); 744 va_end(args); 745 return 0; 746 } 747 /* }}} */

