1 --- SWIG/Source/Modules/php4.cxx.orig 2003-10-07 22:11:59.308330872 +0200
2 +++ SWIG/Source/Modules/php4.cxx 2003-10-07 22:11:33.000000000 +0200
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 */