@@ -635,18 +635,12 @@ <H3><a name="Php_nn2_6">32.2.6 Structures and C++ classes</a></H3>
635
635
636
636
637
637
< p >
638
- SWIG defaults to wrapping C++ structs and classes with PHP classes.
638
+ SWIG wraps C++ structs and classes with PHP classes.
639
639
Since SWIG 4.1.0, this is done entirely via PHP's C API - earlier SWIG
640
640
versions generated a PHP wrapper script which defined proxy classes
641
641
which called a set of flat functions which actually wrapped the C++ class.
642
642
</ p >
643
643
644
- < p >
645
- If you don't want the class wrappers, you can pass the command-line option
646
- "-noproxy" in which case you'll get C++ classes wrapped as flat functions
647
- as described below.
648
- </ p >
649
-
650
644
< p >
651
645
This interface file
652
646
</ p >
@@ -699,33 +693,16 @@ <H4><a name="Php_nn2_6_1">32.2.6.1 Using -noproxy</a></H4>
699
693
700
694
701
695
< p >
702
- The < tt > -noproxy</ tt > option flattens the object structure and
703
- generates collections of named functions. The above example results
704
- in the following PHP functions:
696
+ SWIG/PHP used to support a < tt > -noproxy</ tt > option to flatten the class
697
+ structure and generate collections of named flat functions. This is no
698
+ longer supported as of SWIG 4.1.0.
705
699
</ p >
706
700
707
- < div class ="code "> < pre >
708
- new_Vector();
709
- Vector_x_set($obj, $d);
710
- Vector_x_get($obj);
711
- Vector_y_set($obj, $d);
712
- Vector_y_get($obj);
713
- Vector_z_set($obj, $d);
714
- Vector_z_get($obj);
715
- Vector_magnitude($obj);
716
- new_Complex();
717
- Complex_re_set($obj, $d);
718
- Complex_re_get($obj);
719
- Complex_im_set($obj, $d);
720
- Complex_im_get($obj);
721
- </ pre > </ div >
722
-
723
701
< H4 > < a name ="Php_nn2_6_2 "> 32.2.6.2 Constructors and Destructors</ a > </ H4 >
724
702
725
703
726
704
< p >
727
- The constructor is called when < tt > new Object()</ tt > (or
728
- < tt > new_Object()</ tt > if using < tt > -noproxy</ tt > ) is used to create an
705
+ The constructor is called when < tt > new Object()</ tt > is used to create an
729
706
instance of the object. If multiple constructors are defined for an
730
707
object, function overloading will be used to determine which
731
708
constructor to execute.
0 commit comments