Subversion Repositories oidconverter

Compare Revisions

No changes between revisions

Regard whitespace Rev 4 → Rev 5

/trunk/php/OidDerConverter.class.phps
42,7 → 42,7
}
 
/**
* @return Outputs .<oid> for an absolute OID and <oid> for a relative OID.
* @return string|false Outputs .<oid> for an absolute OID and <oid> for a relative OID.
*/
public static function derToOID($abBinary, $verbose=false) {
$output_oid = array();
70,6 → 70,8
 
$arcBeginning = true;
 
$isRelative = null; // to avoid that phpstan complains
 
foreach ($abBinary as $nn => &$pb) {
if ($part == 0) { // Class Tag
// Leading octet
187,7 → 189,7
// 2.48 and up => 2+ octets
// Output in "part 3"
 
if ($arcBeginning && ($pb == 0x80)) {
if ($pb == 0x80) {
if ($verbose) fprintf(STDERR, "Encoding error. Illegal 0x80 paddings. (See Rec. ITU-T X.690, clause 8.19.2)\n");
return false;
} else {
350,7 → 352,7
 
$nBinaryWork = $nBinary;
do {
$output[] = nBinaryWork & 0xFF;
$output[] = $nBinaryWork & 0xFF;
$nBinaryWork /= 0x100;
} while ($nBinaryWork > 0);
}
/trunk/phpstan.neon.dist
0,0 → 1,17
parameters:
level: 5
fileExtensions:
- php
- phps
paths:
- php
excludePaths:
analyseAndScan:
- .phpstan.tmp
tmpDir: .phpstan.tmp
ignoreErrors:
#- '#is always (true|false)\.#'
#- '#Call to function assert\(\) with false will always evaluate to false\.#'
#- '#with no typehint specified\.#'
 
 
/trunk/.
Property changes:
Added: svn:ignore
+.phpstan.tmp