Rev 1117 | Rev 1284 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1117 | Rev 1249 | ||
---|---|---|---|
Line 446... | Line 446... | ||
446 | 0x00008000 => 'NET_SFTP_ATTR_CTIME', |
446 | 0x00008000 => 'NET_SFTP_ATTR_CTIME', |
447 | // 0x80000000 will yield a floating point on 32-bit systems and converting floating points to integers |
447 | // 0x80000000 will yield a floating point on 32-bit systems and converting floating points to integers |
448 | // yields inconsistent behavior depending on how php is compiled. so we left shift -1 (which, in |
448 | // yields inconsistent behavior depending on how php is compiled. so we left shift -1 (which, in |
449 | // two's compliment, consists of all 1 bits) by 31. on 64-bit systems this'll yield 0xFFFFFFFF80000000. |
449 | // two's compliment, consists of all 1 bits) by 31. on 64-bit systems this'll yield 0xFFFFFFFF80000000. |
450 | // that's not a problem, however, and 'anded' and a 32-bit number, as all the leading 1 bits are ignored. |
450 | // that's not a problem, however, and 'anded' and a 32-bit number, as all the leading 1 bits are ignored. |
451 | (PHP_INT_SIZE == 4 ? -1 : 0xFFFFFFFF) => 'NET_SFTP_ATTR_EXTENDED' |
451 | (PHP_INT_SIZE == 4 ? (-1 << 31) : 0x80000000) => 'NET_SFTP_ATTR_EXTENDED' |
452 | ]; |
452 | ]; |
453 | // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 |
453 | // http://tools.ietf.org/html/draft-ietf-secsh-filexfer-04#section-6.3 |
454 | // the flag definitions change somewhat in SFTPv5+. if SFTPv5+ support is added to this library, maybe name |
454 | // the flag definitions change somewhat in SFTPv5+. if SFTPv5+ support is added to this library, maybe name |
455 | // the array for that $this->open5_flags and similarly alter the constant names. |
455 | // the array for that $this->open5_flags and similarly alter the constant names. |
456 | self::$open_flags = [ |
456 | self::$open_flags = [ |