Skip to content

Commit

Permalink
#2213 - Cleanup in getClassEntryByClassName() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Jul 12, 2021
1 parent 58be1e3 commit c2067be
Showing 1 changed file with 0 additions and 67 deletions.
67 changes: 0 additions & 67 deletions Library/ClassDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -1482,73 +1482,6 @@ public function getClassEntryByClassName(
): string {
$this->compiler = $compilationContext->compiler;

/**
* Special treatment for Reflection in 8.0.
* Because in PHP 7.4 param arg info is lighter,
* but also incomplete.
*
* TODO: Leave for future, maybe PHP code devs will make "reflection" ext public...
*/
/*if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
switch (strtolower($className)) {
case 'reflector':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflector_ptr';
break;
case 'reflectionexception':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_exception_ptr';
break;
case 'reflection':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_ptr';
break;
case 'reflectionfunctionabstract':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_function_abstract_ptr';
break;
case 'reflectionfunction':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_function_ptr';
break;
case 'reflectionparameter':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_parameter_ptr';
break;
case 'reflectionclass':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_class_ptr';
break;
case 'reflectionobject':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_object_ptr';
break;
case 'reflectionmethod':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_method_ptr';
break;
case 'reflectionproperty':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_property_ptr';
break;
case 'reflectionextension':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_extension_ptr';
break;
case 'reflectionzendextension':
$compilationContext->headersManager->add('ext/reflection/php_reflection');
$classEntry = 'reflection_zend_extension_ptr';
break;
default:
$classEntry = null;
break;
}
if ($classEntry !== null) {
return $classEntry;
}
}*/

switch (strtolower($className)) {
/**
* Zend exceptions
Expand Down

0 comments on commit c2067be

Please sign in to comment.