Subversion Repositories oidinfo_api

Compare Revisions

Regard whitespace Rev 7 → Rev 8

/trunk/oid_illegality_rules
2,7 → 2,7
 
-- Standard OID Illegality Rule Definition File
-- by Daniel Marschall and Olivier Dubuisson
-- Revision: 8 April 2019
-- Revision: 1 November 2019
-- This file contains all oid-info.com rules as of 2018_09_18_illegal_oid_table.csv
 
-- SYNTAX:
/trunk/oidinfo_api.inc.phps
1,9 → 1,21
<?php
 
/**
* OID-Info.com API by Daniel Marschall, ViaThinkSoft
* License terms: Apache 2.0
* Revision: 2019-08-27
/*
* OID-Info.com API for PHP
* Copyright 2019 Daniel Marschall, ViaThinkSoft
* Version 2019-11-01
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
 
error_reporting(E_ALL | E_NOTICE | E_STRICT | E_DEPRECATED);
/trunk/oidinfo_example.phps
1,5 → 1,23
<?php
 
/*
* OID-Info.com API for PHP
* Copyright 2019 Daniel Marschall, ViaThinkSoft
* Version 2019-11-01
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
 
require_once __DIR__ . '/oidinfo_api.inc.phps';
 
$oa = new OIDInfoAPI();
/trunk/oidinfo_test.phps
1,5 → 1,23
<?php
 
/*
* OID-Info.com API for PHP
* Copyright 2019 Daniel Marschall, ViaThinkSoft
* Version 2019-11-01
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
 
require_once __DIR__ . '/oidinfo_api.inc.phps';
 
$oa = new OIDInfoAPI();
13,6 → 31,8
assert($oa->illegalOID('1') === false);
assert($oa->illegalOID('1.0.16') === true);
assert($oa->illegalOID('1.2.6.0') === true); // 1.2.6 is illegal -> 1.2.6.0 too
assert($oa->illegalOID('2.25.340282366920938463463374607431768211455') === false);
assert($oa->illegalOID('2.25.340282366920938463463374607431768211456') === true);
 
assert($oa->strictCheckSyntax('0', false, true) === true);
assert($oa->strictCheckSyntax('1', false, true) === true);