/PHP-8.1/ext/hash/sha3/generic32lc/ |
H A D | KeccakHash.c | 27 result = (HashReturn)KeccakWidth1600_SpongeInitialize(&instance->sponge, rate, capacity); in Keccak_HashInitialize() 30 instance->fixedOutputLength = hashbitlen; in Keccak_HashInitialize() 31 instance->delimitedSuffix = delimitedSuffix; in Keccak_HashInitialize() 40 return (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate() 49 instance->delimitedSuffix = delimitedLastBytes & 0xFF; in Keccak_HashUpdate() 54 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate() 55 instance->delimitedSuffix = (delimitedLastBytes >> 8) & 0xFF; in Keccak_HashUpdate() 64 HashReturn Keccak_HashFinal(Keccak_HashInstance *instance, BitSequence *hashval) in Keccak_HashFinal() argument 66 …urn ret = (HashReturn)KeccakWidth1600_SpongeAbsorbLastFewBits(&instance->sponge, instance->delimit… in Keccak_HashFinal() 68 …return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, hashval, instance->fixedOutput… in Keccak_HashFinal() [all …]
|
H A D | KeccakSponge.inc | 141 instance->rate = rate; 142 instance->byteIOIndex = 0; 143 instance->squeezing = 0; 157 if (instance->squeezing) 198 SnP_AddBytes(instance->state, curData, instance->byteIOIndex, partialBlock); 218 if (instance->squeezing) 229 SnP_AddByte(instance->state, delimitedData, instance->byteIOIndex); 244 instance->byteIOIndex = 0; 245 instance->squeezing = 1; 261 if (!instance->squeezing) [all …]
|
/PHP-8.1/ext/hash/sha3/generic64lc/ |
H A D | KeccakHash.c | 27 result = (HashReturn)KeccakWidth1600_SpongeInitialize(&instance->sponge, rate, capacity); in Keccak_HashInitialize() 30 instance->fixedOutputLength = hashbitlen; in Keccak_HashInitialize() 31 instance->delimitedSuffix = delimitedSuffix; in Keccak_HashInitialize() 40 return (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate() 49 instance->delimitedSuffix = delimitedLastBytes & 0xFF; in Keccak_HashUpdate() 54 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate() 55 instance->delimitedSuffix = (delimitedLastBytes >> 8) & 0xFF; in Keccak_HashUpdate() 64 HashReturn Keccak_HashFinal(Keccak_HashInstance *instance, BitSequence *hashval) in Keccak_HashFinal() argument 66 …urn ret = (HashReturn)KeccakWidth1600_SpongeAbsorbLastFewBits(&instance->sponge, instance->delimit… in Keccak_HashFinal() 68 …return (HashReturn)KeccakWidth1600_SpongeSqueeze(&instance->sponge, hashval, instance->fixedOutput… in Keccak_HashFinal() [all …]
|
H A D | KeccakSponge.inc | 141 instance->rate = rate; 142 instance->byteIOIndex = 0; 143 instance->squeezing = 0; 157 if (instance->squeezing) 198 SnP_AddBytes(instance->state, curData, instance->byteIOIndex, partialBlock); 218 if (instance->squeezing) 229 SnP_AddByte(instance->state, delimitedData, instance->byteIOIndex); 244 instance->byteIOIndex = 0; 245 instance->squeezing = 1; 261 if (!instance->squeezing) [all …]
|
/PHP-8.1/Zend/tests/ |
H A D | bug68652.phpt | 7 private static $instance; 9 if (isset(self::$instance)) { 10 return self::$instance; 12 return self::$instance = new self(); 22 private static $instance; 24 if (isset(self::$instance)) { 25 return self::$instance; 27 return self::$instance = new self(); 31 if (!isset(self::$instance)) return;
|
H A D | closure_043.phpt | 6 * a bound instance. It should also not be automatically converted 7 * to a non-static instance when attempting to bind one */ 24 echo "After binding, null scope, no instance", "\n"; 28 echo "After binding, null scope, with instance", "\n"; 32 echo "After binding, with scope, no instance", "\n"; 36 echo "After binding, with scope, with instance", "\n"; 50 After binding, null scope, no instance 57 After binding, null scope, with instance 59 Warning: Cannot bind an instance to a static closure in %s on line %d 62 After binding, with scope, no instance [all …]
|
H A D | call_user_func_003.phpt | 7 static $instance; 9 if (is_null($instance)) { 10 $instance = function () { 15 return $instance; 27 ["instance"]=>
|
H A D | bug34045.phpt | 7 private static $instance; 10 self::$instance = $this; 14 if (!(self::$instance instanceof BasicSingleton)) { 16 self::$instance = new $c; 18 return self::$instance;
|
H A D | bug32322.phpt | 2 Bug #32322 (Return values by reference broken( using self::),example singleton instance) 9 private static $instance = null; 20 if ( self::$instance == null ) 22 self::$instance = new test('Singleton1'); 25 echo "Using old class " . self::$instance -> myname . "\n"; 27 return self::$instance; 51 echo "Try static instance inside class :\n"; 57 echo "Try static instance inside function :\n"; 67 Try static instance inside class : 73 Try static instance inside function :
|
H A D | bug69124.phpt | 11 function test(&$instance, &$method) { 12 $instance->{$method}(); 15 $instance = new Foo; 18 test($instance, $method);
|
H A D | bug39721.phpt | 7 public $instance; 10 $this->instance = ++self::$instances; 25 echo $foo->instance . "\n"; 26 echo $child->instance . "\n";
|
H A D | closure_044.phpt | 5 /* A non-static closure has a bound instance if it has a scope 6 * and doesn't have an instance if it has no scope */ 24 echo "After binding, null scope, no instance", "\n"; 28 echo "After binding, null scope, with instance", "\n"; 32 echo "After binding, with scope, no instance", "\n"; 36 echo "After binding, with scope, with instance", "\n"; 50 After binding, null scope, no instance 58 After binding, null scope, with instance 65 After binding, with scope, no instance 73 After binding, with scope, with instance
|
H A D | bug51176.phpt | 16 echo "instance\n"; 30 instance 31 instance 32 instance
|
H A D | closure_062.phpt | 8 echo "instance scoped, non-static, \$this used\n"; 13 echo "instance scoped, static, \$this used\n"; 18 echo "instance scoped, non-static, \$this not used\n"; 49 instance scoped, non-static, $this used 52 instance scoped, static, $this used 53 instance scoped, non-static, $this not used
|
H A D | bug47165.phpt | 9 static $instance = null; 10 $instance = new Foo(); 11 return $instance->bar;
|
H A D | closure_046.phpt | 8 * to having a bound instance. */ 27 echo "After binding, no instance", "\n"; 31 echo "After binding, with same-class instance for the bound one", "\n"; 35 echo "After binding, with different instance for the bound one", "\n"; 48 After binding, no instance 56 After binding, with same-class instance for the bound one 63 After binding, with different instance for the bound one
|
/PHP-8.1/ext/reflection/tests/ |
H A D | ReflectionProperty_getValue_error.phpt | 17 $instance = new TestClass(); 26 var_dump($propInfo->getValue($instance, true)); 33 var_dump($propInfo->getValue($instance)); 35 echo "\n\nInvalid instance:\n"; 43 echo "\n\nMissing instance:\n"; 61 Invalid instance: 62 Given object is not an instance of the class this property was declared in 64 Missing instance: 65 ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties
|
H A D | ReflectionObject_getConstants_basic.phpt | 20 echo "Reflecting on instance of class $class: \n"; 27 Reflecting on instance of class C: 32 Reflecting on instance of class D: 37 Reflecting on instance of class E: 42 Reflecting on instance of class F: 47 Reflecting on instance of class X:
|
H A D | ReflectionObject_getConstant_basic.phpt | 20 echo "Reflecting on instance of class $class: \n"; 27 Reflecting on instance of class C: 30 Reflecting on instance of class D: 33 Reflecting on instance of class E: 36 Reflecting on instance of class F: 39 Reflecting on instance of class X:
|
/PHP-8.1/tests/lang/ |
H A D | bug22510.phpt | 34 $this->instance = new foo(); 35 $this->instance->method1($this); 36 $this->instance->method1($this); 41 $this->instance = new foo(); 42 $this->instance->method2($this); 43 $this->instance->method2($this); 48 $this->instance = new foo(); 80 $bar->instance->finalize(); 83 $bar->instance->finalize(); 86 $bar->instance->finalize(); [all …]
|
/PHP-8.1/ext/standard/tests/class_object/ |
H A D | get_declared_classes_variation1.phpt | 11 echo "\n-- before instance is declared --\n"; 14 echo "\n-- after instance is declared --\n"; 24 -- before instance is declared -- 27 -- after instance is declared --
|
/PHP-8.1/Zend/tests/closures/ |
H A D | closure_from_callable_basic.phpt | 20 echo 'Access public instance method of object'; 24 echo 'Access public instance method of parent object through parent:: '; 69 echo 'Access public instance method of parent object through "parent::" '; 74 echo 'Access public instance method of self object through "self::" '; 89 echo 'MagicCall __call instance method '; 103 Access public instance method of object OK 104 Access public instance method of parent object through parent:: OK 114 Access public instance method of parent object through "parent::" OK 115 Access public instance method of self object through "self::" OK 116 Access public instance method of parent object through "self::" to parent method OK [all …]
|
/PHP-8.1/ext/intl/tests/ |
H A D | timezone_equals_basic.phpt | 13 echo "Comparison to equal instance:\n"; 15 echo "Comparison to equivalent instance:\n"; 24 Comparison to equal instance: 26 Comparison to equivalent instance:
|
/PHP-8.1/ext/pdo/tests/ |
H A D | pdo_036.phpt | 8 $instance = new reflectionclass('pdostatement'); 9 $x = $instance->newInstance(); 23 $instance = new reflectionclass('pdorow'); 24 $x = $instance->newInstance();
|
/PHP-8.1/ext/spl/tests/ |
H A D | SplFixedArray_override_getIterator.phpt | 18 echo "==SplFixedArray instance==\n"; 27 echo "==Subclass instance==\n"; 36 ==SplFixedArray instance== 40 ==Subclass instance==
|