]> granicus.if.org Git - php/commitdiff
manage ZEND_DEP_FALIAS in gen_stub
authorRemi Collet <remi@remirepo.net>
Wed, 29 Apr 2020 11:17:04 +0000 (13:17 +0200)
committerRemi Collet <remi@php.net>
Wed, 29 Apr 2020 12:37:06 +0000 (14:37 +0200)
build/gen_stub.php

index 5b2fee031784fefbe6caa69d0ecf1a64aae3ee98..484645221915c05d3c4cc699255acb43391a0576 100755 (executable)
@@ -443,6 +443,13 @@ class FuncInfo {
                 );
             }
         } else {
+            if ($this->alias && $this->isDeprecated) {
+                return sprintf(
+                    "\tZEND_DEP_FALIAS(%s, %s, %s)\n",
+                    $this->name, $this->alias->name, $this->getArgInfoName()
+                );
+            }
+
             if ($this->alias) {
                 return sprintf(
                     "\tZEND_FALIAS(%s, %s, %s)\n",