Changeset 160 for branches/1.0/xcache.c
- Timestamp:
- 2006-09-13T02:48:01+02:00 (7 years ago)
- File:
-
- 1 edited
-
branches/1.0/xcache.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/xcache.c
r143 r160 504 504 } 505 505 /* }}} */ 506 static int xc_entry_init_key_php(xc_entry_t *xce, char *filename TSRMLS_DC) /* {{{ */506 static int xc_entry_init_key_php(xc_entry_t *xce, char *filename, char *opened_path_buffer TSRMLS_DC) /* {{{ */ 507 507 { 508 508 struct stat buf, *pbuf; … … 540 540 return 0; 541 541 } 542 543 #ifndef HAVE_INODE 544 /* hash on filename, let's expand it to real path */ 545 filename = expand_filepath(filename, opened_path_buffer TSRMLS_CC); 546 if (filename == NULL) { 547 return 0; 548 } 549 #endif 542 550 543 551 UNISW(NOTHING, xce->name_type = IS_STRING;) … … 574 582 zend_bool catched = 0; 575 583 char *filename; 584 char opened_path_buffer[MAXPATHLEN]; 576 585 577 586 if (!xc_initized) { … … 598 607 filename = h->opened_path ? h->opened_path : h->filename; 599 608 xce.data.php = &php; 600 if (!xc_entry_init_key_php(&xce, filename TSRMLS_CC)) {609 if (!xc_entry_init_key_php(&xce, filename, opened_path_buffer TSRMLS_CC)) { 601 610 return origin_compile_file(h, type TSRMLS_CC); 602 611 } … … 670 679 671 680 filename = h->opened_path ? h->opened_path : h->filename; 681 #ifdef HAVE_INODE 672 682 if (xce.name.str.val != filename) { 673 683 xce.name.str.val = filename; 674 684 xce.name.str.len = strlen(filename); 675 685 } 686 #endif 676 687 677 688 #ifdef HAVE_XCACHE_OPTIMIZER
Note: See TracChangeset
for help on using the changeset viewer.

