1 --- swig-1.3.30/Source/Modules/php.cxx.orig 2006-11-02 00:54:52.000000000 +0100
2 +++ swig-1.3.30/Source/Modules/php.cxx 2006-11-18 20:49:44.639530500 +0100
5 /* Insert cleanup code */
6 for (i = 0, p = l; p; i++) {
7 + if(i>= (num_required))
8 + Printf(cleanup,"\tif(arg_count > %d) {\n", i);
9 if ((tm = Getattr(p, "tmap:freearg"))) {
10 Replaceall(tm, "$source", Getattr(p, "lname"));
11 Printv(cleanup, tm, "\n", NIL);
16 + if (i >= num_required)
17 + Printf(cleanup,"}\n");
20 /* Insert argument output code */