Changeset 132
- Timestamp:
- 11/16/05 13:33:30 (3 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/eaccelerator.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r131 r132 1 2005-11-16 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * Patch for including files in same directory (#1259695) from Alexy 4 1 5 2005-11-15 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 6 2 7 * Spinlock test now tests for i386 and x86_64. Because spinlocks where 3 8 never used on 64-bit and sysv ipc locking didn't work, there were a eaccelerator/trunk/eaccelerator.c
r123 r132 1102 1102 ptr = end; 1103 1103 } 1104 1105 if (zend_is_executing(TSRMLS_C)) { 1106 strncpy(tryname, zend_get_executed_filename(TSRMLS_C), MAXPATHLEN); 1107 tryname[MAXPATHLEN - 1] = 0; 1108 int tryname_length = strlen(tryname); 1109 1110 while (tryname_length >= 0 && !IS_SLASH(tryname[tryname_length])) 1111 tryname_length--; 1112 if (tryname_length > 0 && tryname[0] != '[' // [no active file] 1113 && tryname_length + filename_len + 1 < MAXPATHLEN) 1114 { 1115 strncpy(tryname + tryname_length + 1, file_handle->filename, filename_len + 1); 1116 if (stat(tryname, buf) == 0 && S_ISREG(buf->st_mode)) 1117 return 0; 1118 } 1119 } 1104 1120 } 1105 1121 return -1;