diff --git a/PEAR.php b/PEAR.php
index eefc05de4c15a611e441e5c49f144e826ea6ac13..9511884167938fc662dc799d9d58a19a03e0c688 100644
--- a/PEAR.php
+++ b/PEAR.php
@@ -196,7 +196,7 @@ class PEAR
         // PHP4-style constructor.
         // This will NOT be invoked, unless a sub-class that extends `foo` calls it.
         // In that case, call the new-style constructor to keep compatibility.
-        self::__construct();
+        self::__construct($error_class);
     }
 
     // }}}