# Bug in zend_do_perform_implementation_check(?)

- Thread: https://externals.io/message/473
- Original archive: https://news-web.php.net/php.internals/473
- Started by Timm Friebe on 2003-03-29T19:01:15+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #473 — Timm Friebe — 2003-03-29T19:01:15+00:00

URL: https://externals.io/message/473#473

thekid@friebes:~/devel/php/tests > cat inheritance.php 
<?php
  class Object {
    function __construct() { }
  }

  class String extends Object {
    function __construct() { }
  }

  var_dump(new String());
?>
thekid@friebes:~/devel/php/tests > php5 inheritance.php 

Fatal error: Declaration of string::__construct() must be the same as
::() in /usr/home/thekid/devel/php/tests/inheritance.php on line 6

- Timm

---

## #474 — Zeev Suraski — 2003-03-29T19:20:21+00:00

URL: https://externals.io/message/473#474 · In reply to: #473

Fixed, thanks!

Zeev

At 22:01 29/03/2003, Timm Friebe wrote:
>thekid@friebes:~/devel/php/tests > cat inheritance.php
><?php
>   class Object {
>     function __construct() { }
>   }
>
>   class String extends Object {
>     function __construct() { }
>   }
>
>   var_dump(new String());
>?>
>thekid@friebes:~/devel/php/tests > php5 inheritance.php
>
>Fatal error: Declaration of string::__construct() must be the same as
>::() in /usr/home/thekid/devel/php/tests/inheritance.php on line 6
>
>- Timm
