src/Slashworks/AppBundle/Resources/private/api/zip.lib.php
public static function generateExtAttr($owner = 07, $group = 05, $other = 05, $isFile = true) {
        $fp = $isFile ? self::S_IFREG : self::S_IFDIR;
        $fp |= (($owner & 07) << 6) | (($group & 07) << 3) | ($other & 07);

        return ($fp << 16) | ($isFile ? self::S_DOS_A : self::S_DOS_D);
    }
public static function generateExtAttr($owner = 07, $group = 05, $other = 05, $isFile = true) {
        $fp = $isFile ? self::S_IFREG : self::S_IFDIR;
        $fp |= (($owner & 07) << 6) | (($group & 07) << 3) | ($other & 07);

        return ($fp << 16) | ($isFile ? self::S_DOS_A : self::S_DOS_D);
    }
public static function generateExtAttr ( $ owner = 07 , $ group = 05 , $ other = 05 , $ isFile = true ) { $ fp = $ isFile ? self :: S_IFREG : self :: S_IFDIR ; $ fp |= ( ( $ owner & 07 ) << 6 ) | ( ( $ group & 07 ) << 3 ) | ( $ other & 07 ) ; return ( $ fp << 16 ) | ( $ isFile ? self :: S_DOS_A : self :: S_DOS_D ) ; }
Create the file permissions for a file or directory, for use in the extFileAttr parameters.

@param int   $owner Unix permisions for owner (octal from 00 to 07)
@param int   $group Unix permisions for group (octal from 00 to 07)
@param int   $other Unix permisions for others (octal from 00 to 07)
@param bool  $isFile
@return EXTRERNAL_REF field.
Create the file permissions for a file or directory for use in the extFileAttr parameters .