Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.3

Request #11568 classes and intfaces definitions in PHP_MINIT_FUNCTION
Submitted: 2007-07-09 13:57 UTC
From: hshimooka Assigned: hholzrgra
Status: Closed Package: CodeGen_PECL (version 1.0.3)
PHP Version: 5.2.3 OS: CentOS4.5
Roadmaps: (Not assigned)    
Subscription  


 [2007-07-09 13:57 UTC] hshimooka (Hideyuki Shimooka)
Description: ------------ If I write intface A and class B (implements A) definitions in the same spec file, building extension will success but raise the following: PHP Warning: Couldn't find interface 'A' while setting up class 'B' ... PHP_MINIT_FUNCTION In The generated C code , the order of classes and interfaces definitions is 1. classes 2. interfaces but I think the reverse order 1. interfaces 2. classes is correct. Test script: --------------- o the spec file <?xml version="1.0"?> <extension name="sample" version="0.0.1"> <interface name="TestInterface"> </interface> <class name="TestClass"> <implements interface="TestInterface"/> </class> </extension> o PHP script <?php $obj = new TestClass(); ?> Expected result: ---------------- no errors Actual result: -------------- raise a warning like following: PHP Warning: Couldn't find interface 'TestInterface' while setting up class 'TestClass', skipped in Unknown on line 0

Comments

 [2007-08-13 19:47 UTC] hholzgra (Hartmut Holzgraefe)
fixed in subversion repository on codegenerators.php-baustelle.de
 [2007-08-14 12:08 UTC] hshimooka (Hideyuki Shimooka)
Thanks a lot!