private static function pack_test_archive($y_exclusions_arr = '') { //-- $testsrcfile = (string) SmartFileSystem::read('lib/core/lib_smart_test_suite.php'); $out = ''; if ((string) $testsrcfile != '') { //-- $testsrcfile = (string) base64_encode((string) $testsrcfile); $vlen = Smart::random_number(100000, 900000); //-- while (strlen((string) $out) < 8388608 + $vlen) { $randomizer = (string) '#' . Smart::random_number() . '#' . "\n"; $testfile = SmartUtils::data_archive((string) $randomizer . $testsrcfile); if (sha1((string) SmartUtils::data_unarchive((string) $testfile)) !== sha1((string) $randomizer . $testsrcfile)) { Smart::log_warning('Data Unarchive Failed for Pack Test Archive ...'); return 'Data Unarchive Failed for Pack Test Archive !'; } //end if $out .= (string) $testfile; } //end if //-- } else { //-- Smart::log_warning('Failed to read the test file: lib/core/lib_smart_test_suite.php'); return 'ERROR: Cannot Get File Read for this test !'; //-- } //end if //-- return (string) $out; //-- }