Advertisement
Guest User

Untitled

a guest
Feb 28th, 2011
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 399.80 KB | None | 0 0
  1. Index: swig/include/php/typemaps_php.i
  2. ===================================================================
  3. --- swig/include/php/typemaps_php.i (revision 21891)
  4. +++ swig/include/php/typemaps_php.i (working copy)
  5. @@ -60,46 +60,21 @@
  6.   RETVAL_NULL();
  7.  }
  8.  
  9. -/*
  10. - * Another output typemap which will raise an
  11. - * exception on error.  If there is no error,
  12. - * and no other argout typemaps create a return value,
  13. - * then it will return 0.
  14. - */
  15. -%fragment("OGRErrMessages","header") %{
  16. -static char *
  17. -OGRErrMessages( int rc ) {
  18. -  switch( rc ) {
  19. -  case 0:
  20. -    return "OGR Error 0: None";
  21. -  case 1:
  22. -    return "OGR Error 1: Not enough data";
  23. -  case 2:
  24. -    return "OGR Error 2: Unsupported geometry type";
  25. -  case 3:
  26. -    return "OGR Error 3: Unsupported operation";
  27. -  case 4:
  28. -    return "OGR Error 4: Corrupt data";
  29. -  case 5:
  30. -    return "OGR Error 5: General Error";
  31. -  case 6:
  32. -    return "OGR Error 6: Unsupported SRS";
  33. -  default:
  34. -    return "OGR Error: Unknown";
  35. -  }
  36. -}
  37. -%}
  38. -%typemap(out) OGRErr
  39. +%include "ogr_error_map.i"
  40. +
  41. +%typemap(out,fragment="OGRErrMessages") OGRErr
  42.  {
  43.    /* %typemap(out) OGRErr */
  44.    if (result != 0 ) {
  45.      SWIG_PHP_Error(E_ERROR,OGRErrMessages(result));
  46.    }
  47.  }
  48. -%typemap(ret,fragment="OGRErrMessages") OGRErr
  49. +%typemap(ret) OGRErr
  50.  {
  51.    /* %typemap(ret) OGRErr */
  52. -  RETVAL_LONG(0);
  53. +  if (result != 0) {
  54. +    RETVAL_LONG(result);
  55. +  }
  56.  }
  57.  
  58.  %fragment("CreateTupleFromDoubleArray","header") %{
  59. @@ -378,6 +353,25 @@
  60.    }
  61.  }
  62.  
  63. +/* Almost same as %typemap(out) char **options */
  64. +/* but we CSLDestroy the char** pointer at the end */
  65. +%typemap(out) char **CSL
  66. +{
  67. +  /* %typemap(out) char ** -> ( string ) */
  68. +  char **stringarray = $1;
  69. +  if ( stringarray == NULL ) {
  70. +    RETVAL_NULL();
  71. +  }
  72. +  else {
  73. +    int len = CSLCount( stringarray );
  74. +    array_init($result);
  75. +    for ( int i = 0; i < len; ++i, ++stringarray ) {
  76. +      add_next_index_string( $result, *stringarray, 1 );
  77. +    }
  78. +  }
  79. +  CSLDestroy($1);
  80. +}
  81. +
  82.  /*
  83.   * Typemaps map mutable char ** arguments from PyStrings.  Does not
  84.   * return the modified argument
  85. Index: swig/include/osr.i
  86. ===================================================================
  87. --- swig/include/osr.i  (revision 21891)
  88. +++ swig/include/osr.i  (working copy)
  89. @@ -88,7 +88,7 @@
  90.  %include osr_python.i
  91.  #elif defined(SWIGRUBY)
  92.  %include typemaps_ruby.i
  93. -#elif defined(SWIGPHP4)
  94. +#elif defined(SWIGPHP)
  95.  %include typemaps_php.i
  96.  #elif defined(SWIGCSHARP)
  97.  %include osr_csharp.i
  98. Index: swig/include/gdal.i
  99. ===================================================================
  100. --- swig/include/gdal.i (revision 21891)
  101. +++ swig/include/gdal.i (working copy)
  102. @@ -178,7 +178,7 @@
  103.  %include "gdal_python.i"
  104.  #elif defined(SWIGRUBY)
  105.  %include "gdal_ruby.i"
  106. -#elif defined(SWIGPHP4)
  107. +#elif defined(SWIGPHP)
  108.  %include "gdal_php.i"
  109.  #elif defined(SWIGCSHARP)
  110.  %include "gdal_csharp.i"
  111. Index: swig/include/ogr.i
  112. ===================================================================
  113. --- swig/include/ogr.i  (revision 21891)
  114. +++ swig/include/ogr.i  (working copy)
  115. @@ -265,7 +265,7 @@
  116.  %include ogr_python.i
  117.  #elif defined(SWIGRUBY)
  118.  %include ogr_ruby.i
  119. -#elif defined(SWIGPHP4)
  120. +#elif defined(SWIGPHP)
  121.  %include ogr_php.i
  122.  #elif defined(SWIGCSHARP)
  123.  %include ogr_csharp.i
  124. Index: swig/php/php_osr.h
  125. ===================================================================
  126. --- swig/php/php_osr.h  (revision 21891)
  127. +++ swig/php/php_osr.h  (working copy)
  128. @@ -1,6 +1,6 @@
  129.  /* ----------------------------------------------------------------------------
  130.   * This file was automatically generated by SWIG (http://www.swig.org).
  131. - * Version 1.3.40
  132. + * Version 2.0.1
  133.   *
  134.   * This file is not intended to be easily readable and contains a number of
  135.   * coding conventions designed to improve portability and efficiency. Do not make
  136. Index: swig/php/gdal_wrap.cpp
  137. ===================================================================
  138. --- swig/php/gdal_wrap.cpp  (revision 21891)
  139. +++ swig/php/gdal_wrap.cpp  (working copy)
  140. @@ -1,6 +1,6 @@
  141.  /* ----------------------------------------------------------------------------
  142.   * This file was automatically generated by SWIG (http://www.swig.org).
  143. - * Version 1.3.40
  144. + * Version 2.0.1
  145.   *
  146.   * This file is not intended to be easily readable and contains a number of
  147.   * coding conventions designed to improve portability and efficiency. Do not make
  148. @@ -196,7 +196,7 @@
  149.  /*
  150.     Flags/methods for returning states.
  151.    
  152. -   The SWIG conversion methods, as ConvertPtr, return and integer
  153. +   The SWIG conversion methods, as ConvertPtr, return an integer
  154.     that tells if the conversion was successful or not. And if not,
  155.     an error code can be returned (see swigerrors.swg for the codes).
  156.    
  157. @@ -728,9 +728,6 @@
  158.  #endif
  159.  
  160.  /* -----------------------------------------------------------------------------
  161. - * See the LICENSE file for information on copyright, usage and redistribution
  162. - * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  163. - *
  164.   * phprun.swg
  165.   *
  166.   * PHP runtime library
  167. @@ -741,6 +738,7 @@
  168.  #endif
  169.  #include "zend.h"
  170.  #include "zend_API.h"
  171. +#include "zend_exceptions.h"
  172.  #include "php.h"
  173.  #include "ext/standard/php_string.h"
  174.  
  175. @@ -755,17 +753,17 @@
  176.  #endif
  177.  
  178.  #ifndef Z_SET_ISREF_P
  179. -// For PHP < 5.3
  180. +/* For PHP < 5.3 */
  181.  # define Z_SET_ISREF_P(z) (z)->is_ref = 1
  182.  #endif
  183.  #ifndef Z_SET_REFCOUNT_P
  184. -// For PHP < 5.3
  185. +/* For PHP < 5.3 */
  186.  # define Z_SET_REFCOUNT_P(z, rc) (z)->refcount = (rc)
  187.  #endif
  188.  
  189.  #define SWIG_LONG_CONSTANT(N, V) zend_register_long_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  190.  #define SWIG_DOUBLE_CONSTANT(N, V) zend_register_double_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  191. -#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), V, strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  192. +#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  193.  #define SWIG_CHAR_CONSTANT(N, V) do {\
  194.      static char swig_char = (V);\
  195.      zend_register_stringl_constant((char*)#N, sizeof(#N), &swig_char, 1, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);\
  196. @@ -1263,6 +1261,9 @@
  197.  SWIGINTERN int GDALDriverShadow_Rename(GDALDriverShadow *self,char const *newName,char const *oldName){
  198.      return GDALRenameDataset( self, newName, oldName );
  199.    }
  200. +SWIGINTERN int GDALDriverShadow_CopyFiles(GDALDriverShadow *self,char const *newName,char const *oldName){
  201. +    return GDALCopyDatasetFiles( self, newName, oldName );
  202. +  }
  203.  SWIGINTERN int GDALDriverShadow_Register(GDALDriverShadow *self){
  204.      return GDALRegisterDriver( self );
  205.    }
  206. @@ -2078,6 +2079,12 @@
  207.  SWIGINTERN bool GDALRasterBandShadow_HasArbitraryOverviews(GDALRasterBandShadow *self){
  208.        return (GDALHasArbitraryOverviews( self ) != 0) ? true : false;
  209.    }
  210. +SWIGINTERN char **GDALRasterBandShadow_GetCategoryNames(GDALRasterBandShadow *self){
  211. +    return GDALGetRasterCategoryNames( self );
  212. +  }
  213. +SWIGINTERN CPLErr GDALRasterBandShadow_SetCategoryNames(GDALRasterBandShadow *self,char **papszCategoryNames){
  214. +    return GDALSetRasterCategoryNames( self, papszCategoryNames );
  215. +  }
  216.  
  217.  GDALDataType GDALRasterBandShadow_DataType_get( GDALRasterBandShadow *h ) {
  218.    return GDALGetRasterDataType( h );
  219. @@ -2596,8 +2603,8 @@
  220.  static swig_type_info _swigt__p_p_GDAL_GCP = {"_p_p_GDAL_GCP", "GDAL_GCP **", 0, 0, (void*)0, 0};
  221.  static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
  222.  static swig_type_info _swigt__p_p_int = {"_p_p_int", "int **", 0, 0, (void*)0, 0};
  223. -static swig_type_info _swigt__p_p_void = {"_p_p_void", "FILE **|void **", 0, 0, (void*)0, 0};
  224. -static swig_type_info _swigt__p_void = {"_p_void", "FILE *|void *", 0, 0, (void*)0, 0};
  225. +static swig_type_info _swigt__p_p_void = {"_p_p_void", "VSILFILE **|void **", 0, 0, (void*)0, 0};
  226. +static swig_type_info _swigt__p_void = {"_p_void", "VSILFILE *|void *", 0, 0, (void*)0, 0};
  227.  
  228.  static swig_type_info *swig_type_initial[] = {
  229.    &_swigt__p_CPLErrorHandler,
  230. @@ -2724,7 +2731,7 @@
  231.    }
  232.    
  233.    
  234. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  235. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  236.    if ((*args[0])->type==IS_NULL) {
  237.      arg1 = (char *) 0;
  238.    } else {
  239. @@ -2734,7 +2741,7 @@
  240.    /*@SWIG@*/;
  241.    
  242.    
  243. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  244. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  245.    if ((*args[1])->type==IS_NULL) {
  246.      arg2 = (char *) 0;
  247.    } else {
  248. @@ -2747,7 +2754,7 @@
  249.    
  250.    return;
  251.  fail:
  252. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  253. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  254.  }
  255.  
  256.  
  257. @@ -2764,7 +2771,7 @@
  258.    WRONG_PARAM_COUNT;
  259.    
  260.    if(arg_count > 0) {
  261. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  262. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  263.      if ((*args[0])->type==IS_NULL) {
  264.        arg1 = (char *) 0;
  265.      } else {
  266. @@ -2780,7 +2787,7 @@
  267.    }
  268.    return;
  269.  fail:
  270. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  271. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  272.  }
  273.  
  274.  
  275. @@ -2798,21 +2805,21 @@
  276.    WRONG_PARAM_COUNT;
  277.    
  278.    if(arg_count > 0) {
  279. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  280. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  281.      convert_to_long_ex(args[0]);
  282.      arg1 = (CPLErr) Z_LVAL_PP(args[0]);
  283.      /*@SWIG@*/;
  284.      
  285.    }
  286.    if(arg_count > 1) {
  287. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  288. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  289.      convert_to_long_ex(args[1]);
  290.      arg2 = (int) Z_LVAL_PP(args[1]);
  291.      /*@SWIG@*/;
  292.      
  293.    }
  294.    if(arg_count > 2) {
  295. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  296. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  297.      if ((*args[2])->type==IS_NULL) {
  298.        arg3 = (char *) 0;
  299.      } else {
  300. @@ -2826,7 +2833,7 @@
  301.    
  302.    return;
  303.  fail:
  304. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  305. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  306.  }
  307.  
  308.  
  309. @@ -2850,7 +2857,7 @@
  310.    
  311.    return;
  312.  fail:
  313. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  314. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  315.  }
  316.  
  317.  
  318. @@ -2897,7 +2904,7 @@
  319.    
  320.    return;
  321.  fail:
  322. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  323. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  324.  }
  325.  
  326.  
  327. @@ -2911,7 +2918,7 @@
  328.    
  329.    return;
  330.  fail:
  331. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  332. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  333.  }
  334.  
  335.  
  336. @@ -2936,7 +2943,7 @@
  337.      arg1 = Z_STRLEN_PP(args[0]);
  338.    }
  339.    if(arg_count > 1) {
  340. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  341. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  342.      convert_to_long_ex(args[1]);
  343.      arg3 = (int) Z_LVAL_PP(args[1]);
  344.      /*@SWIG@*/;
  345. @@ -2952,7 +2959,7 @@
  346.    }
  347.    return;
  348.  fail:
  349. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  350. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  351.  }
  352.  
  353.  
  354. @@ -2970,7 +2977,7 @@
  355.    }
  356.    return;
  357.  fail:
  358. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  359. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  360.  }
  361.  
  362.  
  363. @@ -2988,7 +2995,7 @@
  364.    }
  365.    return;
  366.  fail:
  367. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  368. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  369.  }
  370.  
  371.  
  372. @@ -3010,7 +3017,7 @@
  373.    }
  374.    return;
  375.  fail:
  376. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  377. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  378.  }
  379.  
  380.  
  381. @@ -3024,7 +3031,7 @@
  382.    }
  383.    
  384.    
  385. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  386. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  387.    if ((*args[0])->type==IS_NULL) {
  388.      arg1 = (char *) 0;
  389.    } else {
  390. @@ -3037,7 +3044,7 @@
  391.    
  392.    return;
  393.  fail:
  394. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  395. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  396.  }
  397.  
  398.  
  399. @@ -3051,7 +3058,7 @@
  400.    
  401.    return;
  402.  fail:
  403. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  404. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  405.  }
  406.  
  407.  
  408. @@ -3065,7 +3072,7 @@
  409.    
  410.    return;
  411.  fail:
  412. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  413. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  414.  }
  415.  
  416.  
  417. @@ -3081,7 +3088,7 @@
  418.    }
  419.    
  420.    
  421. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  422. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  423.    if ((*args[0])->type==IS_NULL) {
  424.      arg1 = (char *) 0;
  425.    } else {
  426. @@ -3091,7 +3098,7 @@
  427.    /*@SWIG@*/;
  428.    
  429.    
  430. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  431. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  432.    if ((*args[1])->type==IS_NULL) {
  433.      arg2 = (char *) 0;
  434.    } else {
  435. @@ -3110,7 +3117,7 @@
  436.    }
  437.    return;
  438.  fail:
  439. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  440. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  441.  }
  442.  
  443.  
  444. @@ -3125,7 +3132,7 @@
  445.    }
  446.    
  447.    
  448. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  449. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  450.    if ((*args[0])->type==IS_NULL) {
  451.      arg1 = (char *) 0;
  452.    } else {
  453. @@ -3135,12 +3142,24 @@
  454.    /*@SWIG@*/;
  455.    
  456.    result = (char **)VSIReadDir((char const *)arg1);
  457. -  
  458. -  SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0);
  459. -  
  460. +  {
  461. +    /* %typemap(out) char ** -> ( string ) */
  462. +    char **stringarray = result;
  463. +    if ( stringarray == NULL ) {
  464. +      RETVAL_NULL();
  465. +    }
  466. +    else {
  467. +      int len = CSLCount( stringarray );
  468. +      array_init(return_value);
  469. +      for ( int i = 0; i < len; ++i, ++stringarray ) {
  470. +        add_next_index_string( return_value, *stringarray, 1 );
  471. +      }
  472. +    }
  473. +    CSLDestroy(result);
  474. +  }
  475.    return;
  476.  fail:
  477. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  478. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  479.  }
  480.  
  481.  
  482. @@ -3155,7 +3174,7 @@
  483.    }
  484.    
  485.    
  486. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  487. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  488.    if ((*args[0])->type==IS_NULL) {
  489.      arg1 = (char *) 0;
  490.    } else {
  491. @@ -3165,7 +3184,7 @@
  492.    /*@SWIG@*/;
  493.    
  494.    
  495. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  496. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  497.    if ((*args[1])->type==IS_NULL) {
  498.      arg2 = (char *) 0;
  499.    } else {
  500. @@ -3183,7 +3202,7 @@
  501.    
  502.    return;
  503.  fail:
  504. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  505. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  506.  }
  507.  
  508.  
  509. @@ -3201,7 +3220,7 @@
  510.    WRONG_PARAM_COUNT;
  511.    
  512.    
  513. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  514. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  515.    if ((*args[0])->type==IS_NULL) {
  516.      arg1 = (char *) 0;
  517.    } else {
  518. @@ -3211,7 +3230,7 @@
  519.    /*@SWIG@*/;
  520.    
  521.    if(arg_count > 1) {
  522. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  523. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  524.      if ((*args[1])->type==IS_NULL) {
  525.        arg2 = (char *) 0;
  526.      } else {
  527. @@ -3236,7 +3255,7 @@
  528.    }
  529.    return;
  530.  fail:
  531. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  532. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  533.  }
  534.  
  535.  
  536. @@ -3252,7 +3271,7 @@
  537.    }
  538.    
  539.    
  540. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  541. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  542.    convert_to_long_ex(args[0]);
  543.    arg1 = (int) Z_LVAL_PP(args[0]);
  544.    /*@SWIG@*/;
  545. @@ -3272,7 +3291,7 @@
  546.    }
  547.    return;
  548.  fail:
  549. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  550. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  551.  }
  552.  
  553.  
  554. @@ -3288,7 +3307,7 @@
  555.    }
  556.    
  557.    
  558. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  559. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  560.    if ((*args[0])->type==IS_NULL) {
  561.      arg1 = (char *) 0;
  562.    } else {
  563. @@ -3308,7 +3327,7 @@
  564.    
  565.    return;
  566.  fail:
  567. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  568. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  569.  }
  570.  
  571.  
  572. @@ -3324,7 +3343,7 @@
  573.    }
  574.    
  575.    
  576. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  577. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  578.    if ((*args[0])->type==IS_NULL) {
  579.      arg1 = (char *) 0;
  580.    } else {
  581. @@ -3334,7 +3353,7 @@
  582.    /*@SWIG@*/;
  583.    
  584.    
  585. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  586. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  587.    convert_to_long_ex(args[1]);
  588.    arg2 = (int) Z_LVAL_PP(args[1]);
  589.    /*@SWIG@*/;
  590. @@ -3348,7 +3367,7 @@
  591.    
  592.    return;
  593.  fail:
  594. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  595. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  596.  }
  597.  
  598.  
  599. @@ -3363,7 +3382,7 @@
  600.    }
  601.    
  602.    
  603. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  604. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  605.    if ((*args[0])->type==IS_NULL) {
  606.      arg1 = (char *) 0;
  607.    } else {
  608. @@ -3383,7 +3402,7 @@
  609.    }
  610.    return;
  611.  fail:
  612. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  613. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  614.  }
  615.  
  616.  
  617. @@ -3401,7 +3420,7 @@
  618.    }
  619.    return;
  620.  fail:
  621. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  622. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  623.  }
  624.  
  625.  
  626. @@ -3417,7 +3436,7 @@
  627.    }
  628.    
  629.    
  630. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  631. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  632.    if ((*args[0])->type==IS_NULL) {
  633.      arg1 = (char *) 0;
  634.    } else {
  635. @@ -3427,7 +3446,7 @@
  636.    /*@SWIG@*/;
  637.    
  638.    
  639. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  640. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  641.    convert_to_long_ex(args[1]);
  642.    arg2 = (int) Z_LVAL_PP(args[1]);
  643.    /*@SWIG@*/;
  644. @@ -3438,7 +3457,7 @@
  645.    }
  646.    return;
  647.  fail:
  648. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  649. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  650.  }
  651.  
  652.  
  653. @@ -3453,7 +3472,7 @@
  654.    }
  655.    
  656.    
  657. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  658. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  659.    if ((*args[0])->type==IS_NULL) {
  660.      arg1 = (char *) 0;
  661.    } else {
  662. @@ -3468,7 +3487,7 @@
  663.    }
  664.    return;
  665.  fail:
  666. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  667. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  668.  }
  669.  
  670.  
  671. @@ -3484,7 +3503,7 @@
  672.    }
  673.    
  674.    
  675. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  676. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  677.    if ((*args[0])->type==IS_NULL) {
  678.      arg1 = (char *) 0;
  679.    } else {
  680. @@ -3494,7 +3513,7 @@
  681.    /*@SWIG@*/;
  682.    
  683.    
  684. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  685. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  686.    if ((*args[1])->type==IS_NULL) {
  687.      arg2 = (char *) 0;
  688.    } else {
  689. @@ -3509,7 +3528,7 @@
  690.    }
  691.    return;
  692.  fail:
  693. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  694. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  695.  }
  696.  
  697.  
  698. @@ -3517,7 +3536,7 @@
  699.    char *arg1 = (char *) 0 ;
  700.    char *arg2 = (char *) 0 ;
  701.    zval **args[2];
  702. -  FILE *result = 0 ;
  703. +  VSILFILE *result = 0 ;
  704.    
  705.    SWIG_ResetError();
  706.    if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  707. @@ -3525,7 +3544,7 @@
  708.    }
  709.    
  710.    
  711. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  712. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  713.    if ((*args[0])->type==IS_NULL) {
  714.      arg1 = (char *) 0;
  715.    } else {
  716. @@ -3535,7 +3554,7 @@
  717.    /*@SWIG@*/;
  718.    
  719.    
  720. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  721. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  722.    if ((*args[1])->type==IS_NULL) {
  723.      arg2 = (char *) 0;
  724.    } else {
  725. @@ -3544,18 +3563,18 @@
  726.    }
  727.    /*@SWIG@*/;
  728.    
  729. -  result = (FILE *)VSIFOpenL((char const *)arg1,(char const *)arg2);
  730. +  result = (VSILFILE *)VSIFOpenL((char const *)arg1,(char const *)arg2);
  731.    
  732.    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_void, 0);
  733.    
  734.    return;
  735.  fail:
  736. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  737. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  738.  }
  739.  
  740.  
  741.  ZEND_NAMED_FUNCTION(_wrap_VSIFCloseL) {
  742. -  FILE *arg1 = (FILE *) 0 ;
  743. +  VSILFILE *arg1 = (VSILFILE *) 0 ;
  744.    zval **args[1];
  745.    
  746.    SWIG_ResetError();
  747. @@ -3575,12 +3594,12 @@
  748.    
  749.    return;
  750.  fail:
  751. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  752. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  753.  }
  754.  
  755.  
  756.  ZEND_NAMED_FUNCTION(_wrap_VSIFSeekL) {
  757. -  FILE *arg1 = (FILE *) 0 ;
  758. +  VSILFILE *arg1 = (VSILFILE *) 0 ;
  759.    long arg2 ;
  760.    int arg3 ;
  761.    zval **args[3];
  762. @@ -3600,13 +3619,13 @@
  763.      }
  764.    }
  765.    
  766. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  767. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  768.    convert_to_long_ex(args[1]);
  769.    arg2 = (long) Z_LVAL_PP(args[1]);
  770.    /*@SWIG@*/;
  771.    
  772.    
  773. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  774. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  775.    convert_to_long_ex(args[2]);
  776.    arg3 = (int) Z_LVAL_PP(args[2]);
  777.    /*@SWIG@*/;
  778. @@ -3617,12 +3636,12 @@
  779.    }
  780.    return;
  781.  fail:
  782. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  783. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  784.  }
  785.  
  786.  
  787.  ZEND_NAMED_FUNCTION(_wrap_VSIFTellL) {
  788. -  FILE *arg1 = (FILE *) 0 ;
  789. +  VSILFILE *arg1 = (VSILFILE *) 0 ;
  790.    zval **args[1];
  791.    long result;
  792.    
  793. @@ -3645,7 +3664,7 @@
  794.    }
  795.    return;
  796.  fail:
  797. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  798. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  799.  }
  800.  
  801.  
  802. @@ -3653,7 +3672,7 @@
  803.    char *arg1 = (char *) 0 ;
  804.    int arg2 ;
  805.    int arg3 ;
  806. -  FILE *arg4 = (FILE *) 0 ;
  807. +  VSILFILE *arg4 = (VSILFILE *) 0 ;
  808.    zval **args[4];
  809.    int result;
  810.    
  811. @@ -3663,7 +3682,7 @@
  812.    }
  813.    
  814.    
  815. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  816. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  817.    if ((*args[0])->type==IS_NULL) {
  818.      arg1 = (char *) 0;
  819.    } else {
  820. @@ -3673,13 +3692,13 @@
  821.    /*@SWIG@*/;
  822.    
  823.    
  824. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  825. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  826.    convert_to_long_ex(args[1]);
  827.    arg2 = (int) Z_LVAL_PP(args[1]);
  828.    /*@SWIG@*/;
  829.    
  830.    
  831. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  832. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  833.    convert_to_long_ex(args[2]);
  834.    arg3 = (int) Z_LVAL_PP(args[2]);
  835.    /*@SWIG@*/;
  836. @@ -3698,7 +3717,7 @@
  837.    }
  838.    return;
  839.  fail:
  840. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  841. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  842.  }
  843.  
  844.  
  845. @@ -3728,7 +3747,7 @@
  846.    }
  847.    return;
  848.  fail:
  849. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  850. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  851.  }
  852.  
  853.  
  854. @@ -3749,7 +3768,7 @@
  855.    }
  856.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  857.    
  858. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  859. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  860.    if ((*args[1])->type==IS_NULL) {
  861.      arg2 = (char *) 0;
  862.    } else {
  863. @@ -3762,7 +3781,7 @@
  864.    
  865.    return;
  866.  fail:
  867. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  868. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  869.  }
  870.  
  871.  
  872. @@ -3786,7 +3805,7 @@
  873.    }
  874.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  875.    if(arg_count > 1) {
  876. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  877. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  878.      if ((*args[1])->type==IS_NULL) {
  879.        arg2 = (char *) 0;
  880.      } else {
  881. @@ -3816,7 +3835,7 @@
  882.    }
  883.    return;
  884.  fail:
  885. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  886. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  887.  }
  888.  
  889.  
  890. @@ -3840,7 +3859,7 @@
  891.    }
  892.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  893.    if(arg_count > 1) {
  894. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  895. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  896.      if ((*args[1])->type==IS_NULL) {
  897.        arg2 = (char *) 0;
  898.      } else {
  899. @@ -3867,7 +3886,7 @@
  900.    }
  901.    return;
  902.  fail:
  903. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  904. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  905.  }
  906.  
  907.  
  908. @@ -3908,7 +3927,7 @@
  909.      */
  910.    }
  911.    if(arg_count > 2) {
  912. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  913. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  914.      if ((*args[2])->type==IS_NULL) {
  915.        arg3 = (char *) 0;
  916.      } else {
  917. @@ -3932,7 +3951,7 @@
  918.      /* %typemap(freearg) char **dict */
  919.      CSLDestroy( arg2 );
  920.    }
  921. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  922. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  923.  }
  924.  
  925.  
  926. @@ -3957,7 +3976,7 @@
  927.    }
  928.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  929.    
  930. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  931. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  932.    if ((*args[1])->type==IS_NULL) {
  933.      arg2 = (char *) 0;
  934.    } else {
  935. @@ -3967,7 +3986,7 @@
  936.    /*@SWIG@*/;
  937.    
  938.    if(arg_count > 2) {
  939. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  940. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  941.      if ((*args[2])->type==IS_NULL) {
  942.        arg3 = (char *) 0;
  943.      } else {
  944. @@ -3983,7 +4002,7 @@
  945.    }
  946.    return;
  947.  fail:
  948. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  949. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  950.  }
  951.  
  952.  
  953. @@ -4062,7 +4081,7 @@
  954.    }
  955.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  956.    
  957. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  958. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  959.    if ((*args[1])->type==IS_NULL) {
  960.      arg2 = (char *) 0;
  961.    } else {
  962. @@ -4072,7 +4091,7 @@
  963.    /*@SWIG@*/;
  964.    
  965.    if(arg_count > 2) {
  966. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  967. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  968.      if ((*args[2])->type==IS_NULL) {
  969.        arg3 = (char *) 0;
  970.      } else {
  971. @@ -4097,7 +4116,7 @@
  972.    }
  973.    return;
  974.  fail:
  975. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  976. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  977.  }
  978.  
  979.  
  980. @@ -4123,7 +4142,7 @@
  981.    }
  982.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  983.    
  984. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  985. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  986.    if ((*args[1])->type==IS_NULL) {
  987.      arg2 = (char *) 0;
  988.    } else {
  989. @@ -4133,7 +4152,7 @@
  990.    /*@SWIG@*/;
  991.    
  992.    
  993. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  994. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  995.    if ((*args[2])->type==IS_NULL) {
  996.      arg3 = (char *) 0;
  997.    } else {
  998. @@ -4143,7 +4162,7 @@
  999.    /*@SWIG@*/;
  1000.    
  1001.    if(arg_count > 3) {
  1002. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1003. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1004.      if ((*args[3])->type==IS_NULL) {
  1005.        arg4 = (char *) 0;
  1006.      } else {
  1007. @@ -4164,7 +4183,7 @@
  1008.    }
  1009.    return;
  1010.  fail:
  1011. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1012. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1013.  }
  1014.  
  1015.  
  1016. @@ -4194,7 +4213,7 @@
  1017.    }
  1018.    return;
  1019.  fail:
  1020. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1021. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1022.  }
  1023.  
  1024.  
  1025. @@ -4224,7 +4243,7 @@
  1026.    }
  1027.    return;
  1028.  fail:
  1029. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1030. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1031.  }
  1032.  
  1033.  
  1034. @@ -4254,7 +4273,7 @@
  1035.    }
  1036.    return;
  1037.  fail:
  1038. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1039. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1040.  }
  1041.  
  1042.  
  1043. @@ -4283,7 +4302,7 @@
  1044.    }
  1045.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1046.    
  1047. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1048. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1049.    if ((*args[1])->type==IS_NULL) {
  1050.      arg2 = (char *) 0;
  1051.    } else {
  1052. @@ -4293,26 +4312,26 @@
  1053.    /*@SWIG@*/;
  1054.    
  1055.    
  1056. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1057. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1058.    convert_to_long_ex(args[2]);
  1059.    arg3 = (int) Z_LVAL_PP(args[2]);
  1060.    /*@SWIG@*/;
  1061.    
  1062.    
  1063. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1064. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1065.    convert_to_long_ex(args[3]);
  1066.    arg4 = (int) Z_LVAL_PP(args[3]);
  1067.    /*@SWIG@*/;
  1068.    
  1069.    if(arg_count > 4) {
  1070. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1071. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1072.      convert_to_long_ex(args[4]);
  1073.      arg5 = (int) Z_LVAL_PP(args[4]);
  1074.      /*@SWIG@*/;
  1075.      
  1076.    }
  1077.    if(arg_count > 5) {
  1078. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1079. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1080.      convert_to_long_ex(args[5]);
  1081.      arg6 = (GDALDataType) Z_LVAL_PP(args[5]);
  1082.      /*@SWIG@*/;
  1083. @@ -4347,7 +4366,7 @@
  1084.      /* %typemap(freearg) char **options */
  1085.      CSLDestroy( arg7 );
  1086.    }
  1087. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1088. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1089.  }
  1090.  
  1091.  
  1092. @@ -4377,7 +4396,7 @@
  1093.    }
  1094.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1095.    
  1096. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1097. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1098.    if ((*args[1])->type==IS_NULL) {
  1099.      arg2 = (char *) 0;
  1100.    } else {
  1101. @@ -4392,7 +4411,7 @@
  1102.      }
  1103.    }
  1104.    if(arg_count > 3) {
  1105. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1106. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1107.      convert_to_long_ex(args[3]);
  1108.      arg4 = (int) Z_LVAL_PP(args[3]);
  1109.      /*@SWIG@*/;
  1110. @@ -4450,7 +4469,7 @@
  1111.      /* %typemap(freearg) char **options */
  1112.      CSLDestroy( arg5 );
  1113.    }
  1114. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1115. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1116.  }
  1117.  
  1118.  
  1119. @@ -4472,7 +4491,7 @@
  1120.    }
  1121.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1122.    
  1123. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1124. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1125.    if ((*args[1])->type==IS_NULL) {
  1126.      arg2 = (char *) 0;
  1127.    } else {
  1128. @@ -4487,7 +4506,7 @@
  1129.    }
  1130.    return;
  1131.  fail:
  1132. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1133. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1134.  }
  1135.  
  1136.  
  1137. @@ -4510,7 +4529,7 @@
  1138.    }
  1139.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1140.    
  1141. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1142. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1143.    if ((*args[1])->type==IS_NULL) {
  1144.      arg2 = (char *) 0;
  1145.    } else {
  1146. @@ -4520,7 +4539,7 @@
  1147.    /*@SWIG@*/;
  1148.    
  1149.    
  1150. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1151. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1152.    if ((*args[2])->type==IS_NULL) {
  1153.      arg3 = (char *) 0;
  1154.    } else {
  1155. @@ -4545,10 +4564,68 @@
  1156.    }
  1157.    return;
  1158.  fail:
  1159. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1160. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1161.  }
  1162.  
  1163.  
  1164. +ZEND_NAMED_FUNCTION(_wrap_Driver_CopyFiles) {
  1165. +  GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
  1166. +  char *arg2 = (char *) 0 ;
  1167. +  char *arg3 = (char *) 0 ;
  1168. +  zval **args[3];
  1169. +  int result;
  1170. +  
  1171. +  SWIG_ResetError();
  1172. +  if(ZEND_NUM_ARGS() != 3 || zend_get_parameters_array_ex(3, args) != SUCCESS) {
  1173. +    WRONG_PARAM_COUNT;
  1174. +  }
  1175. +  
  1176. +  {
  1177. +    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_GDALDriverShadow, 0) < 0) {
  1178. +      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of Driver_CopyFiles. Expected SWIGTYPE_p_GDALDriverShadow");
  1179. +    }
  1180. +  }
  1181. +  if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1182. +  
  1183. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1184. +  if ((*args[1])->type==IS_NULL) {
  1185. +    arg2 = (char *) 0;
  1186. +  } else {
  1187. +    convert_to_string_ex(args[1]);
  1188. +    arg2 = (char *) Z_STRVAL_PP(args[1]);
  1189. +  }
  1190. +  /*@SWIG@*/;
  1191. +  
  1192. +  
  1193. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1194. +  if ((*args[2])->type==IS_NULL) {
  1195. +    arg3 = (char *) 0;
  1196. +  } else {
  1197. +    convert_to_string_ex(args[2]);
  1198. +    arg3 = (char *) Z_STRVAL_PP(args[2]);
  1199. +  }
  1200. +  /*@SWIG@*/;
  1201. +  
  1202. +  {
  1203. +    if (!arg2) {
  1204. +      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
  1205. +    }
  1206. +  }
  1207. +  {
  1208. +    if (!arg3) {
  1209. +      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
  1210. +    }
  1211. +  }
  1212. +  result = (int)GDALDriverShadow_CopyFiles(arg1,(char const *)arg2,(char const *)arg3);
  1213. +  {
  1214. +    ZVAL_LONG(return_value,result);
  1215. +  }
  1216. +  return;
  1217. +fail:
  1218. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1219. +}
  1220. +
  1221. +
  1222.  ZEND_NAMED_FUNCTION(_wrap_Driver_Register) {
  1223.    GDALDriverShadow *arg1 = (GDALDriverShadow *) 0 ;
  1224.    zval **args[1];
  1225. @@ -4571,7 +4648,7 @@
  1226.    }
  1227.    return;
  1228.  fail:
  1229. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1230. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1231.  }
  1232.  
  1233.  
  1234. @@ -4594,7 +4671,7 @@
  1235.    
  1236.    return;
  1237.  fail:
  1238. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1239. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1240.  }
  1241.  
  1242.  
  1243. @@ -4618,7 +4695,7 @@
  1244.    }
  1245.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1246.    
  1247. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1248. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1249.    convert_to_long_ex(args[1]);
  1250.    arg2 = (short) Z_LVAL_PP(args[1]);
  1251.    /*@SWIG@*/;
  1252. @@ -4627,7 +4704,7 @@
  1253.    
  1254.    return;
  1255.  fail:
  1256. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1257. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1258.  }
  1259.  
  1260.  
  1261. @@ -4656,7 +4733,7 @@
  1262.    }
  1263.    return;
  1264.  fail:
  1265. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1266. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1267.  }
  1268.  
  1269.  
  1270. @@ -4680,7 +4757,7 @@
  1271.    }
  1272.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1273.    
  1274. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1275. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1276.    convert_to_long_ex(args[1]);
  1277.    arg2 = (short) Z_LVAL_PP(args[1]);
  1278.    /*@SWIG@*/;
  1279. @@ -4689,7 +4766,7 @@
  1280.    
  1281.    return;
  1282.  fail:
  1283. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1284. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1285.  }
  1286.  
  1287.  
  1288. @@ -4718,7 +4795,7 @@
  1289.    }
  1290.    return;
  1291.  fail:
  1292. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1293. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1294.  }
  1295.  
  1296.  
  1297. @@ -4742,7 +4819,7 @@
  1298.    }
  1299.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1300.    
  1301. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1302. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1303.    convert_to_long_ex(args[1]);
  1304.    arg2 = (short) Z_LVAL_PP(args[1]);
  1305.    /*@SWIG@*/;
  1306. @@ -4751,7 +4828,7 @@
  1307.    
  1308.    return;
  1309.  fail:
  1310. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1311. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1312.  }
  1313.  
  1314.  
  1315. @@ -4780,7 +4857,7 @@
  1316.    }
  1317.    return;
  1318.  fail:
  1319. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1320. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1321.  }
  1322.  
  1323.  
  1324. @@ -4804,7 +4881,7 @@
  1325.    }
  1326.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1327.    
  1328. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  1329. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  1330.    convert_to_long_ex(args[1]);
  1331.    arg2 = (short) Z_LVAL_PP(args[1]);
  1332.    /*@SWIG@*/;
  1333. @@ -4813,7 +4890,7 @@
  1334.    
  1335.    return;
  1336.  fail:
  1337. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1338. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1339.  }
  1340.  
  1341.  
  1342. @@ -4842,7 +4919,7 @@
  1343.    }
  1344.    return;
  1345.  fail:
  1346. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1347. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1348.  }
  1349.  
  1350.  
  1351. @@ -4865,7 +4942,7 @@
  1352.    }
  1353.    return;
  1354.  fail:
  1355. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1356. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1357.  }
  1358.  
  1359.  
  1360. @@ -4884,7 +4961,7 @@
  1361.    delete arg1;
  1362.    return;
  1363.  fail:
  1364. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1365. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1366.  }
  1367.  
  1368.  
  1369. @@ -4905,7 +4982,7 @@
  1370.    }
  1371.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1372.    
  1373. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1374. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1375.    convert_to_double_ex(args[1]);
  1376.    arg2 = (double) Z_DVAL_PP(args[1]);
  1377.    /*@SWIG@*/;
  1378. @@ -4914,7 +4991,7 @@
  1379.    
  1380.    return;
  1381.  fail:
  1382. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1383. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1384.  }
  1385.  
  1386.  
  1387. @@ -4940,7 +5017,7 @@
  1388.    }
  1389.    return;
  1390.  fail:
  1391. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1392. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1393.  }
  1394.  
  1395.  
  1396. @@ -4961,7 +5038,7 @@
  1397.    }
  1398.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1399.    
  1400. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1401. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1402.    convert_to_double_ex(args[1]);
  1403.    arg2 = (double) Z_DVAL_PP(args[1]);
  1404.    /*@SWIG@*/;
  1405. @@ -4970,7 +5047,7 @@
  1406.    
  1407.    return;
  1408.  fail:
  1409. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1410. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1411.  }
  1412.  
  1413.  
  1414. @@ -4996,7 +5073,7 @@
  1415.    }
  1416.    return;
  1417.  fail:
  1418. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1419. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1420.  }
  1421.  
  1422.  
  1423. @@ -5017,7 +5094,7 @@
  1424.    }
  1425.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1426.    
  1427. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1428. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1429.    convert_to_double_ex(args[1]);
  1430.    arg2 = (double) Z_DVAL_PP(args[1]);
  1431.    /*@SWIG@*/;
  1432. @@ -5026,7 +5103,7 @@
  1433.    
  1434.    return;
  1435.  fail:
  1436. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1437. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1438.  }
  1439.  
  1440.  
  1441. @@ -5052,7 +5129,7 @@
  1442.    }
  1443.    return;
  1444.  fail:
  1445. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1446. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1447.  }
  1448.  
  1449.  
  1450. @@ -5073,7 +5150,7 @@
  1451.    }
  1452.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1453.    
  1454. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1455. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1456.    convert_to_double_ex(args[1]);
  1457.    arg2 = (double) Z_DVAL_PP(args[1]);
  1458.    /*@SWIG@*/;
  1459. @@ -5082,7 +5159,7 @@
  1460.    
  1461.    return;
  1462.  fail:
  1463. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1464. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1465.  }
  1466.  
  1467.  
  1468. @@ -5108,7 +5185,7 @@
  1469.    }
  1470.    return;
  1471.  fail:
  1472. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1473. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1474.  }
  1475.  
  1476.  
  1477. @@ -5129,7 +5206,7 @@
  1478.    }
  1479.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1480.    
  1481. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1482. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1483.    convert_to_double_ex(args[1]);
  1484.    arg2 = (double) Z_DVAL_PP(args[1]);
  1485.    /*@SWIG@*/;
  1486. @@ -5138,7 +5215,7 @@
  1487.    
  1488.    return;
  1489.  fail:
  1490. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1491. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1492.  }
  1493.  
  1494.  
  1495. @@ -5164,7 +5241,7 @@
  1496.    }
  1497.    return;
  1498.  fail:
  1499. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1500. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1501.  }
  1502.  
  1503.  
  1504. @@ -5185,7 +5262,7 @@
  1505.    }
  1506.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1507.    
  1508. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1509. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1510.    if ((*args[1])->type==IS_NULL) {
  1511.      arg2 = (char *) 0;
  1512.    } else {
  1513. @@ -5194,14 +5271,11 @@
  1514.    }
  1515.    /*@SWIG@*/;
  1516.    
  1517. -  
  1518. -  /* char* Info memberin typemap */
  1519.    GDAL_GCP_Info_set(arg1,arg2);
  1520.    
  1521. -  
  1522.    return;
  1523.  fail:
  1524. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1525. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1526.  }
  1527.  
  1528.  
  1529. @@ -5231,7 +5305,7 @@
  1530.    }
  1531.    return;
  1532.  fail:
  1533. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1534. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1535.  }
  1536.  
  1537.  
  1538. @@ -5252,7 +5326,7 @@
  1539.    }
  1540.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  1541.    
  1542. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1543. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1544.    if ((*args[1])->type==IS_NULL) {
  1545.      arg2 = (char *) 0;
  1546.    } else {
  1547. @@ -5261,14 +5335,11 @@
  1548.    }
  1549.    /*@SWIG@*/;
  1550.    
  1551. -  
  1552. -  /* char* Info memberin typemap */
  1553.    GDAL_GCP_Id_set(arg1,arg2);
  1554.    
  1555. -  
  1556.    return;
  1557.  fail:
  1558. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1559. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1560.  }
  1561.  
  1562.  
  1563. @@ -5298,7 +5369,7 @@
  1564.    }
  1565.    return;
  1566.  fail:
  1567. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1568. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1569.  }
  1570.  
  1571.  
  1572. @@ -5321,42 +5392,42 @@
  1573.    WRONG_PARAM_COUNT;
  1574.    
  1575.    if(arg_count > 0) {
  1576. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1577. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1578.      convert_to_double_ex(args[0]);
  1579.      arg1 = (double) Z_DVAL_PP(args[0]);
  1580.      /*@SWIG@*/;
  1581.      
  1582.    }
  1583.    if(arg_count > 1) {
  1584. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1585. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1586.      convert_to_double_ex(args[1]);
  1587.      arg2 = (double) Z_DVAL_PP(args[1]);
  1588.      /*@SWIG@*/;
  1589.      
  1590.    }
  1591.    if(arg_count > 2) {
  1592. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1593. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1594.      convert_to_double_ex(args[2]);
  1595.      arg3 = (double) Z_DVAL_PP(args[2]);
  1596.      /*@SWIG@*/;
  1597.      
  1598.    }
  1599.    if(arg_count > 3) {
  1600. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1601. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1602.      convert_to_double_ex(args[3]);
  1603.      arg4 = (double) Z_DVAL_PP(args[3]);
  1604.      /*@SWIG@*/;
  1605.      
  1606.    }
  1607.    if(arg_count > 4) {
  1608. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1609. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1610.      convert_to_double_ex(args[4]);
  1611.      arg5 = (double) Z_DVAL_PP(args[4]);
  1612.      /*@SWIG@*/;
  1613.      
  1614.    }
  1615.    if(arg_count > 5) {
  1616. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1617. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1618.      if ((*args[5])->type==IS_NULL) {
  1619.        arg6 = (char *) 0;
  1620.      } else {
  1621. @@ -5367,7 +5438,7 @@
  1622.      
  1623.    }
  1624.    if(arg_count > 6) {
  1625. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1626. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1627.      if ((*args[6])->type==IS_NULL) {
  1628.        arg7 = (char *) 0;
  1629.      } else {
  1630. @@ -5383,7 +5454,7 @@
  1631.    
  1632.    return;
  1633.  fail:
  1634. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1635. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1636.  }
  1637.  
  1638.  
  1639. @@ -5402,7 +5473,7 @@
  1640.    delete_GDAL_GCP(arg1);
  1641.    return;
  1642.  fail:
  1643. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1644. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1645.  }
  1646.  
  1647.  
  1648. @@ -5432,7 +5503,7 @@
  1649.    }
  1650.    return;
  1651.  fail:
  1652. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1653. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1654.  }
  1655.  
  1656.  
  1657. @@ -5452,7 +5523,7 @@
  1658.      }
  1659.    }
  1660.    
  1661. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1662. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1663.    convert_to_double_ex(args[1]);
  1664.    arg2 = (double) Z_DVAL_PP(args[1]);
  1665.    /*@SWIG@*/;
  1666. @@ -5466,7 +5537,7 @@
  1667.    
  1668.    return;
  1669.  fail:
  1670. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1671. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1672.  }
  1673.  
  1674.  
  1675. @@ -5496,7 +5567,7 @@
  1676.    }
  1677.    return;
  1678.  fail:
  1679. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1680. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1681.  }
  1682.  
  1683.  
  1684. @@ -5516,7 +5587,7 @@
  1685.      }
  1686.    }
  1687.    
  1688. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1689. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1690.    convert_to_double_ex(args[1]);
  1691.    arg2 = (double) Z_DVAL_PP(args[1]);
  1692.    /*@SWIG@*/;
  1693. @@ -5530,7 +5601,7 @@
  1694.    
  1695.    return;
  1696.  fail:
  1697. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1698. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1699.  }
  1700.  
  1701.  
  1702. @@ -5560,7 +5631,7 @@
  1703.    }
  1704.    return;
  1705.  fail:
  1706. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1707. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1708.  }
  1709.  
  1710.  
  1711. @@ -5580,7 +5651,7 @@
  1712.      }
  1713.    }
  1714.    
  1715. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1716. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1717.    convert_to_double_ex(args[1]);
  1718.    arg2 = (double) Z_DVAL_PP(args[1]);
  1719.    /*@SWIG@*/;
  1720. @@ -5594,7 +5665,7 @@
  1721.    
  1722.    return;
  1723.  fail:
  1724. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1725. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1726.  }
  1727.  
  1728.  
  1729. @@ -5624,7 +5695,7 @@
  1730.    }
  1731.    return;
  1732.  fail:
  1733. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1734. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1735.  }
  1736.  
  1737.  
  1738. @@ -5644,7 +5715,7 @@
  1739.      }
  1740.    }
  1741.    
  1742. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1743. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1744.    convert_to_double_ex(args[1]);
  1745.    arg2 = (double) Z_DVAL_PP(args[1]);
  1746.    /*@SWIG@*/;
  1747. @@ -5658,7 +5729,7 @@
  1748.    
  1749.    return;
  1750.  fail:
  1751. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1752. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1753.  }
  1754.  
  1755.  
  1756. @@ -5688,7 +5759,7 @@
  1757.    }
  1758.    return;
  1759.  fail:
  1760. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1761. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1762.  }
  1763.  
  1764.  
  1765. @@ -5708,7 +5779,7 @@
  1766.      }
  1767.    }
  1768.    
  1769. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1770. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1771.    convert_to_double_ex(args[1]);
  1772.    arg2 = (double) Z_DVAL_PP(args[1]);
  1773.    /*@SWIG@*/;
  1774. @@ -5722,7 +5793,7 @@
  1775.    
  1776.    return;
  1777.  fail:
  1778. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1779. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1780.  }
  1781.  
  1782.  
  1783. @@ -5756,7 +5827,7 @@
  1784.    }
  1785.    return;
  1786.  fail:
  1787. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1788. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1789.  }
  1790.  
  1791.  
  1792. @@ -5776,7 +5847,7 @@
  1793.      }
  1794.    }
  1795.    
  1796. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1797. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1798.    if ((*args[1])->type==IS_NULL) {
  1799.      arg2 = (char *) 0;
  1800.    } else {
  1801. @@ -5794,7 +5865,7 @@
  1802.    
  1803.    return;
  1804.  fail:
  1805. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1806. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1807.  }
  1808.  
  1809.  
  1810. @@ -5828,7 +5899,7 @@
  1811.    }
  1812.    return;
  1813.  fail:
  1814. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1815. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1816.  }
  1817.  
  1818.  
  1819. @@ -5848,7 +5919,7 @@
  1820.      }
  1821.    }
  1822.    
  1823. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1824. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1825.    if ((*args[1])->type==IS_NULL) {
  1826.      arg2 = (char *) 0;
  1827.    } else {
  1828. @@ -5866,7 +5937,7 @@
  1829.    
  1830.    return;
  1831.  fail:
  1832. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1833. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1834.  }
  1835.  
  1836.  
  1837. @@ -5896,7 +5967,7 @@
  1838.    }
  1839.    return;
  1840.  fail:
  1841. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1842. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1843.  }
  1844.  
  1845.  
  1846. @@ -5916,7 +5987,7 @@
  1847.      }
  1848.    }
  1849.    
  1850. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1851. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1852.    convert_to_double_ex(args[1]);
  1853.    arg2 = (double) Z_DVAL_PP(args[1]);
  1854.    /*@SWIG@*/;
  1855. @@ -5930,7 +6001,7 @@
  1856.    
  1857.    return;
  1858.  fail:
  1859. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1860. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1861.  }
  1862.  
  1863.  
  1864. @@ -5960,7 +6031,7 @@
  1865.    }
  1866.    return;
  1867.  fail:
  1868. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1869. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1870.  }
  1871.  
  1872.  
  1873. @@ -5980,7 +6051,7 @@
  1874.      }
  1875.    }
  1876.    
  1877. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1878. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1879.    convert_to_double_ex(args[1]);
  1880.    arg2 = (double) Z_DVAL_PP(args[1]);
  1881.    /*@SWIG@*/;
  1882. @@ -5994,7 +6065,7 @@
  1883.    
  1884.    return;
  1885.  fail:
  1886. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1887. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1888.  }
  1889.  
  1890.  
  1891. @@ -6024,7 +6095,7 @@
  1892.    }
  1893.    return;
  1894.  fail:
  1895. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1896. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1897.  }
  1898.  
  1899.  
  1900. @@ -6044,7 +6115,7 @@
  1901.      }
  1902.    }
  1903.    
  1904. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1905. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1906.    convert_to_double_ex(args[1]);
  1907.    arg2 = (double) Z_DVAL_PP(args[1]);
  1908.    /*@SWIG@*/;
  1909. @@ -6058,7 +6129,7 @@
  1910.    
  1911.    return;
  1912.  fail:
  1913. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1914. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1915.  }
  1916.  
  1917.  
  1918. @@ -6088,7 +6159,7 @@
  1919.    }
  1920.    return;
  1921.  fail:
  1922. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1923. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1924.  }
  1925.  
  1926.  
  1927. @@ -6108,7 +6179,7 @@
  1928.      }
  1929.    }
  1930.    
  1931. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1932. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1933.    convert_to_double_ex(args[1]);
  1934.    arg2 = (double) Z_DVAL_PP(args[1]);
  1935.    /*@SWIG@*/;
  1936. @@ -6122,7 +6193,7 @@
  1937.    
  1938.    return;
  1939.  fail:
  1940. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1941. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1942.  }
  1943.  
  1944.  
  1945. @@ -6152,7 +6223,7 @@
  1946.    }
  1947.    return;
  1948.  fail:
  1949. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1950. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1951.  }
  1952.  
  1953.  
  1954. @@ -6172,7 +6243,7 @@
  1955.      }
  1956.    }
  1957.    
  1958. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  1959. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  1960.    convert_to_double_ex(args[1]);
  1961.    arg2 = (double) Z_DVAL_PP(args[1]);
  1962.    /*@SWIG@*/;
  1963. @@ -6186,7 +6257,7 @@
  1964.    
  1965.    return;
  1966.  fail:
  1967. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1968. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1969.  }
  1970.  
  1971.  
  1972. @@ -6220,7 +6291,7 @@
  1973.    }
  1974.    return;
  1975.  fail:
  1976. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1977. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1978.  }
  1979.  
  1980.  
  1981. @@ -6240,7 +6311,7 @@
  1982.      }
  1983.    }
  1984.    
  1985. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  1986. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  1987.    if ((*args[1])->type==IS_NULL) {
  1988.      arg2 = (char *) 0;
  1989.    } else {
  1990. @@ -6258,7 +6329,7 @@
  1991.    
  1992.    return;
  1993.  fail:
  1994. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1995. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  1996.  }
  1997.  
  1998.  
  1999. @@ -6292,7 +6363,7 @@
  2000.    }
  2001.    return;
  2002.  fail:
  2003. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2004. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2005.  }
  2006.  
  2007.  
  2008. @@ -6312,7 +6383,7 @@
  2009.      }
  2010.    }
  2011.    
  2012. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  2013. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  2014.    if ((*args[1])->type==IS_NULL) {
  2015.      arg2 = (char *) 0;
  2016.    } else {
  2017. @@ -6330,7 +6401,7 @@
  2018.    
  2019.    return;
  2020.  fail:
  2021. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2022. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2023.  }
  2024.  
  2025.  
  2026. @@ -6359,7 +6430,7 @@
  2027.      /* %typemap(in,numinputs=1) (int nGCPs, GDAL_GCP const *pGCPs ) */
  2028.    }
  2029.    if(arg_count > 1) {
  2030. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2031. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2032.      convert_to_long_ex(args[1]);
  2033.      arg4 = (int) Z_LVAL_PP(args[1]);
  2034.      /*@SWIG@*/;
  2035. @@ -6393,7 +6464,7 @@
  2036.        free( (void*) arg2 );
  2037.      }
  2038.    }
  2039. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2040. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2041.  }
  2042.  
  2043.  
  2044. @@ -6412,7 +6483,7 @@
  2045.    delete_GDALAsyncReaderShadow(arg1);
  2046.    return;
  2047.  fail:
  2048. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2049. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2050.  }
  2051.  
  2052.  
  2053. @@ -6446,7 +6517,7 @@
  2054.    }
  2055.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2056.    
  2057. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2058. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2059.    convert_to_double_ex(args[1]);
  2060.    arg2 = (double) Z_DVAL_PP(args[1]);
  2061.    /*@SWIG@*/;
  2062. @@ -6481,7 +6552,7 @@
  2063.    }
  2064.    return;
  2065.  fail:
  2066. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2067. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2068.  }
  2069.  
  2070.  
  2071. @@ -6503,7 +6574,7 @@
  2072.    }
  2073.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2074.    
  2075. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2076. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2077.    convert_to_double_ex(args[1]);
  2078.    arg2 = (double) Z_DVAL_PP(args[1]);
  2079.    /*@SWIG@*/;
  2080. @@ -6514,7 +6585,7 @@
  2081.    }
  2082.    return;
  2083.  fail:
  2084. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2085. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2086.  }
  2087.  
  2088.  
  2089. @@ -6537,7 +6608,7 @@
  2090.    
  2091.    return;
  2092.  fail:
  2093. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2094. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2095.  }
  2096.  
  2097.  
  2098. @@ -6563,7 +6634,7 @@
  2099.    }
  2100.    return;
  2101.  fail:
  2102. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2103. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2104.  }
  2105.  
  2106.  
  2107. @@ -6589,7 +6660,7 @@
  2108.    }
  2109.    return;
  2110.  fail:
  2111. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2112. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2113.  }
  2114.  
  2115.  
  2116. @@ -6615,7 +6686,7 @@
  2117.    }
  2118.    return;
  2119.  fail:
  2120. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2121. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2122.  }
  2123.  
  2124.  
  2125. @@ -6634,7 +6705,7 @@
  2126.    delete_GDALDatasetShadow(arg1);
  2127.    return;
  2128.  fail:
  2129. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2130. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2131.  }
  2132.  
  2133.  
  2134. @@ -6660,7 +6731,7 @@
  2135.    
  2136.    return;
  2137.  fail:
  2138. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2139. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2140.  }
  2141.  
  2142.  
  2143. @@ -6682,7 +6753,7 @@
  2144.    }
  2145.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2146.    
  2147. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2148. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2149.    convert_to_long_ex(args[1]);
  2150.    arg2 = (int) Z_LVAL_PP(args[1]);
  2151.    /*@SWIG@*/;
  2152. @@ -6693,7 +6764,7 @@
  2153.    
  2154.    return;
  2155.  fail:
  2156. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2157. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2158.  }
  2159.  
  2160.  
  2161. @@ -6723,7 +6794,7 @@
  2162.    }
  2163.    return;
  2164.  fail:
  2165. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2166. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2167.  }
  2168.  
  2169.  
  2170. @@ -6753,7 +6824,7 @@
  2171.    }
  2172.    return;
  2173.  fail:
  2174. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2175. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2176.  }
  2177.  
  2178.  
  2179. @@ -6775,7 +6846,7 @@
  2180.    }
  2181.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2182.    
  2183. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  2184. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  2185.    if ((*args[1])->type==IS_NULL) {
  2186.      arg2 = (char *) 0;
  2187.    } else {
  2188. @@ -6795,7 +6866,7 @@
  2189.    }
  2190.    return;
  2191.  fail:
  2192. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2193. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2194.  }
  2195.  
  2196.  
  2197. @@ -6829,7 +6900,7 @@
  2198.    }
  2199.    return;
  2200.  fail:
  2201. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2202. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2203.  }
  2204.  
  2205.  
  2206. @@ -6865,7 +6936,7 @@
  2207.    }
  2208.    return;
  2209.  fail:
  2210. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2211. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2212.  }
  2213.  
  2214.  
  2215. @@ -6894,7 +6965,7 @@
  2216.    }
  2217.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2218.    if(arg_count > 1) {
  2219. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  2220. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  2221.      if ((*args[1])->type==IS_NULL) {
  2222.        arg2 = (char *) 0;
  2223.      } else {
  2224. @@ -6959,7 +7030,7 @@
  2225.        free((void*) arg4);
  2226.      }
  2227.    }
  2228. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2229. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2230.  }
  2231.  
  2232.  
  2233. @@ -6985,7 +7056,7 @@
  2234.    }
  2235.    return;
  2236.  fail:
  2237. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2238. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2239.  }
  2240.  
  2241.  
  2242. @@ -7015,7 +7086,7 @@
  2243.    }
  2244.    return;
  2245.  fail:
  2246. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2247. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2248.  }
  2249.  
  2250.  
  2251. @@ -7068,7 +7139,7 @@
  2252.    }
  2253.    return;
  2254.  fail:
  2255. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2256. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2257.  }
  2258.  
  2259.  
  2260. @@ -7096,7 +7167,7 @@
  2261.      /* %typemap(in,numinputs=1) (int nGCPs, GDAL_GCP const *pGCPs ) */
  2262.    }
  2263.    
  2264. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  2265. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  2266.    if ((*args[2])->type==IS_NULL) {
  2267.      arg4 = (char *) 0;
  2268.    } else {
  2269. @@ -7123,7 +7194,7 @@
  2270.        free( (void*) arg3 );
  2271.      }
  2272.    }
  2273. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2274. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2275.  }
  2276.  
  2277.  
  2278. @@ -7146,7 +7217,7 @@
  2279.    
  2280.    return;
  2281.  fail:
  2282. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2283. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2284.  }
  2285.  
  2286.  
  2287. @@ -7171,7 +7242,7 @@
  2288.    }
  2289.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2290.    if(arg_count > 1) {
  2291. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2292. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2293.      convert_to_long_ex(args[1]);
  2294.      arg2 = (GDALDataType) Z_LVAL_PP(args[1]);
  2295.      /*@SWIG@*/;
  2296. @@ -7206,7 +7277,7 @@
  2297.      /* %typemap(freearg) char **options */
  2298.      CSLDestroy( arg3 );
  2299.    }
  2300. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2301. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2302.  }
  2303.  
  2304.  
  2305. @@ -7228,7 +7299,7 @@
  2306.    }
  2307.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2308.    
  2309. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2310. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2311.    convert_to_long_ex(args[1]);
  2312.    arg2 = (int) Z_LVAL_PP(args[1]);
  2313.    /*@SWIG@*/;
  2314. @@ -7239,7 +7310,7 @@
  2315.    }
  2316.    return;
  2317.  fail:
  2318. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2319. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2320.  }
  2321.  
  2322.  
  2323. @@ -7260,12 +7331,24 @@
  2324.    }
  2325.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2326.    result = (char **)GDALDatasetShadow_GetFileList(arg1);
  2327. -  
  2328. -  SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0);
  2329. -  
  2330. +  {
  2331. +    /* %typemap(out) char ** -> ( string ) */
  2332. +    char **stringarray = result;
  2333. +    if ( stringarray == NULL ) {
  2334. +      RETVAL_NULL();
  2335. +    }
  2336. +    else {
  2337. +      int len = CSLCount( stringarray );
  2338. +      array_init(return_value);
  2339. +      for ( int i = 0; i < len; ++i, ++stringarray ) {
  2340. +        add_next_index_string( return_value, *stringarray, 1 );
  2341. +      }
  2342. +    }
  2343. +    CSLDestroy(result);
  2344. +  }
  2345.    return;
  2346.  fail:
  2347. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2348. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2349.  }
  2350.  
  2351.  
  2352. @@ -7308,25 +7391,25 @@
  2353.    }
  2354.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2355.    
  2356. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2357. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2358.    convert_to_long_ex(args[1]);
  2359.    arg2 = (int) Z_LVAL_PP(args[1]);
  2360.    /*@SWIG@*/;
  2361.    
  2362.    
  2363. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2364. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2365.    convert_to_long_ex(args[2]);
  2366.    arg3 = (int) Z_LVAL_PP(args[2]);
  2367.    /*@SWIG@*/;
  2368.    
  2369.    
  2370. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2371. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2372.    convert_to_long_ex(args[3]);
  2373.    arg4 = (int) Z_LVAL_PP(args[3]);
  2374.    /*@SWIG@*/;
  2375.    
  2376.    
  2377. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2378. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2379.    convert_to_long_ex(args[4]);
  2380.    arg5 = (int) Z_LVAL_PP(args[4]);
  2381.    /*@SWIG@*/;
  2382. @@ -7440,7 +7523,7 @@
  2383.        free((void*) arg12);
  2384.      }
  2385.    }
  2386. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2387. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2388.  }
  2389.  
  2390.  
  2391. @@ -7490,25 +7573,25 @@
  2392.    }
  2393.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2394.    
  2395. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2396. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2397.    convert_to_long_ex(args[1]);
  2398.    arg2 = (int) Z_LVAL_PP(args[1]);
  2399.    /*@SWIG@*/;
  2400.    
  2401.    
  2402. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2403. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2404.    convert_to_long_ex(args[2]);
  2405.    arg3 = (int) Z_LVAL_PP(args[2]);
  2406.    /*@SWIG@*/;
  2407.    
  2408.    
  2409. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2410. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2411.    convert_to_long_ex(args[3]);
  2412.    arg4 = (int) Z_LVAL_PP(args[3]);
  2413.    /*@SWIG@*/;
  2414.    
  2415.    
  2416. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2417. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2418.    convert_to_long_ex(args[4]);
  2419.    arg5 = (int) Z_LVAL_PP(args[4]);
  2420.    /*@SWIG@*/;
  2421. @@ -7632,7 +7715,7 @@
  2422.        free((void*) arg12);
  2423.      }
  2424.    }
  2425. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2426. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2427.  }
  2428.  
  2429.  
  2430. @@ -7658,7 +7741,7 @@
  2431.    }
  2432.    return;
  2433.  fail:
  2434. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2435. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2436.  }
  2437.  
  2438.  
  2439. @@ -7684,7 +7767,7 @@
  2440.    }
  2441.    return;
  2442.  fail:
  2443. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2444. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2445.  }
  2446.  
  2447.  
  2448. @@ -7710,7 +7793,7 @@
  2449.    }
  2450.    return;
  2451.  fail:
  2452. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2453. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2454.  }
  2455.  
  2456.  
  2457. @@ -7736,7 +7819,7 @@
  2458.    }
  2459.    return;
  2460.  fail:
  2461. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2462. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2463.  }
  2464.  
  2465.  
  2466. @@ -7777,7 +7860,7 @@
  2467.    }
  2468.    return;
  2469.  fail:
  2470. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2471. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2472.  }
  2473.  
  2474.  
  2475. @@ -7803,7 +7886,7 @@
  2476.    }
  2477.    return;
  2478.  fail:
  2479. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2480. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2481.  }
  2482.  
  2483.  
  2484. @@ -7829,7 +7912,7 @@
  2485.    }
  2486.    return;
  2487.  fail:
  2488. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2489. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2490.  }
  2491.  
  2492.  
  2493. @@ -7851,7 +7934,7 @@
  2494.    }
  2495.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2496.    
  2497. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2498. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2499.    convert_to_long_ex(args[1]);
  2500.    arg2 = (GDALColorInterp) Z_LVAL_PP(args[1]);
  2501.    /*@SWIG@*/;
  2502. @@ -7862,7 +7945,7 @@
  2503.    }
  2504.    return;
  2505.  fail:
  2506. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2507. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2508.  }
  2509.  
  2510.  
  2511. @@ -7884,7 +7967,7 @@
  2512.    }
  2513.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2514.    
  2515. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2516. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2517.    convert_to_long_ex(args[1]);
  2518.    arg2 = (GDALColorInterp) Z_LVAL_PP(args[1]);
  2519.    /*@SWIG@*/;
  2520. @@ -7895,7 +7978,7 @@
  2521.    }
  2522.    return;
  2523.  fail:
  2524. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2525. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2526.  }
  2527.  
  2528.  
  2529. @@ -7936,7 +8019,7 @@
  2530.    }
  2531.    return;
  2532.  fail:
  2533. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2534. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2535.  }
  2536.  
  2537.  
  2538. @@ -7958,7 +8041,7 @@
  2539.    }
  2540.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2541.    
  2542. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2543. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2544.    convert_to_double_ex(args[1]);
  2545.    arg2 = (double) Z_DVAL_PP(args[1]);
  2546.    /*@SWIG@*/;
  2547. @@ -7969,7 +8052,7 @@
  2548.    }
  2549.    return;
  2550.  fail:
  2551. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2552. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2553.  }
  2554.  
  2555.  
  2556. @@ -7999,7 +8082,7 @@
  2557.    }
  2558.    return;
  2559.  fail:
  2560. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2561. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2562.  }
  2563.  
  2564.  
  2565. @@ -8021,7 +8104,7 @@
  2566.    }
  2567.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2568.    
  2569. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  2570. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  2571.    if ((*args[1])->type==IS_NULL) {
  2572.      arg2 = (char *) 0;
  2573.    } else {
  2574. @@ -8036,7 +8119,7 @@
  2575.    }
  2576.    return;
  2577.  fail:
  2578. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2579. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2580.  }
  2581.  
  2582.  
  2583. @@ -8073,7 +8156,7 @@
  2584.    }
  2585.    return;
  2586.  fail:
  2587. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2588. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2589.  }
  2590.  
  2591.  
  2592. @@ -8121,7 +8204,7 @@
  2593.      /* %typemap(freearg) char **options */
  2594.      CSLDestroy( arg2 );
  2595.    }
  2596. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2597. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2598.  }
  2599.  
  2600.  
  2601. @@ -8162,7 +8245,7 @@
  2602.    }
  2603.    return;
  2604.  fail:
  2605. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2606. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2607.  }
  2608.  
  2609.  
  2610. @@ -8203,7 +8286,7 @@
  2611.    }
  2612.    return;
  2613.  fail:
  2614. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2615. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2616.  }
  2617.  
  2618.  
  2619. @@ -8244,7 +8327,7 @@
  2620.    }
  2621.    return;
  2622.  fail:
  2623. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2624. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2625.  }
  2626.  
  2627.  
  2628. @@ -8285,7 +8368,7 @@
  2629.    }
  2630.    return;
  2631.  fail:
  2632. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2633. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2634.  }
  2635.  
  2636.  
  2637. @@ -8307,7 +8390,7 @@
  2638.    }
  2639.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2640.    
  2641. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2642. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2643.    convert_to_double_ex(args[1]);
  2644.    arg2 = (double) Z_DVAL_PP(args[1]);
  2645.    /*@SWIG@*/;
  2646. @@ -8318,7 +8401,7 @@
  2647.    }
  2648.    return;
  2649.  fail:
  2650. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2651. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2652.  }
  2653.  
  2654.  
  2655. @@ -8340,7 +8423,7 @@
  2656.    }
  2657.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2658.    
  2659. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2660. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2661.    convert_to_double_ex(args[1]);
  2662.    arg2 = (double) Z_DVAL_PP(args[1]);
  2663.    /*@SWIG@*/;
  2664. @@ -8351,7 +8434,7 @@
  2665.    }
  2666.    return;
  2667.  fail:
  2668. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2669. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2670.  }
  2671.  
  2672.  
  2673. @@ -8386,13 +8469,13 @@
  2674.    }
  2675.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2676.    
  2677. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2678. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2679.    convert_to_long_ex(args[1]);
  2680.    arg2 = (int) Z_LVAL_PP(args[1]);
  2681.    /*@SWIG@*/;
  2682.    
  2683.    
  2684. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2685. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2686.    convert_to_long_ex(args[2]);
  2687.    arg3 = (int) Z_LVAL_PP(args[2]);
  2688.    /*@SWIG@*/;
  2689. @@ -8427,7 +8510,7 @@
  2690.    }
  2691.    return;
  2692.  fail:
  2693. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2694. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2695.  }
  2696.  
  2697.  
  2698. @@ -8466,7 +8549,7 @@
  2699.    }
  2700.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2701.    
  2702. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,2,CONVERT_BOOL_IN@*/
  2703. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,2,CONVERT_BOOL_IN@*/
  2704.    convert_to_boolean_ex(args[1]);
  2705.    arg2 = (bool) Z_LVAL_PP(args[1]);
  2706.    /*@SWIG@*/;
  2707. @@ -8519,7 +8602,7 @@
  2708.    }
  2709.    return;
  2710.  fail:
  2711. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2712. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2713.  }
  2714.  
  2715.  
  2716. @@ -8544,25 +8627,25 @@
  2717.    }
  2718.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2719.    
  2720. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2721. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2722.    convert_to_double_ex(args[1]);
  2723.    arg2 = (double) Z_DVAL_PP(args[1]);
  2724.    /*@SWIG@*/;
  2725.    
  2726.    
  2727. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2728. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2729.    convert_to_double_ex(args[2]);
  2730.    arg3 = (double) Z_DVAL_PP(args[2]);
  2731.    /*@SWIG@*/;
  2732.    
  2733.    
  2734. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2735. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2736.    convert_to_double_ex(args[3]);
  2737.    arg4 = (double) Z_DVAL_PP(args[3]);
  2738.    /*@SWIG@*/;
  2739.    
  2740.    
  2741. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2742. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2743.    convert_to_double_ex(args[4]);
  2744.    arg5 = (double) Z_DVAL_PP(args[4]);
  2745.    /*@SWIG@*/;
  2746. @@ -8573,7 +8656,7 @@
  2747.    }
  2748.    return;
  2749.  fail:
  2750. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2751. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2752.  }
  2753.  
  2754.  
  2755. @@ -8599,7 +8682,7 @@
  2756.    }
  2757.    return;
  2758.  fail:
  2759. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2760. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2761.  }
  2762.  
  2763.  
  2764. @@ -8621,7 +8704,7 @@
  2765.    }
  2766.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2767.    
  2768. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2769. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2770.    convert_to_long_ex(args[1]);
  2771.    arg2 = (int) Z_LVAL_PP(args[1]);
  2772.    /*@SWIG@*/;
  2773. @@ -8632,7 +8715,7 @@
  2774.    
  2775.    return;
  2776.  fail:
  2777. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2778. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2779.  }
  2780.  
  2781.  
  2782. @@ -8661,14 +8744,14 @@
  2783.    }
  2784.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2785.    if(arg_count > 1) {
  2786. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2787. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2788.      convert_to_long_ex(args[1]);
  2789.      arg2 = (int) Z_LVAL_PP(args[1]);
  2790.      /*@SWIG@*/;
  2791.      
  2792.    }
  2793.    if(arg_count > 2) {
  2794. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2795. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2796.      convert_to_long_ex(args[2]);
  2797.      arg3 = (int) Z_LVAL_PP(args[2]);
  2798.      /*@SWIG@*/;
  2799. @@ -8702,7 +8785,7 @@
  2800.    }
  2801.    return;
  2802.  fail:
  2803. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2804. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2805.  }
  2806.  
  2807.  
  2808. @@ -8731,7 +8814,7 @@
  2809.    }
  2810.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2811.    if(arg_count > 1) {
  2812. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2813. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2814.      convert_to_long_ex(args[1]);
  2815.      arg3 = (int) Z_LVAL_PP(args[1]);
  2816.      /*@SWIG@*/;
  2817. @@ -8746,7 +8829,7 @@
  2818.    }
  2819.    return;
  2820.  fail:
  2821. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2822. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2823.  }
  2824.  
  2825.  
  2826. @@ -8775,7 +8858,7 @@
  2827.    }
  2828.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2829.    if(arg_count > 1) {
  2830. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2831. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2832.      convert_to_long_ex(args[1]);
  2833.      arg3 = (int) Z_LVAL_PP(args[1]);
  2834.      /*@SWIG@*/;
  2835. @@ -8790,7 +8873,7 @@
  2836.    }
  2837.    return;
  2838.  fail:
  2839. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2840. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2841.  }
  2842.  
  2843.  
  2844. @@ -8815,13 +8898,13 @@
  2845.    }
  2846.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2847.    
  2848. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2849. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2850.    convert_to_double_ex(args[1]);
  2851.    arg2 = (double) Z_DVAL_PP(args[1]);
  2852.    /*@SWIG@*/;
  2853.    
  2854.    if(arg_count > 2) {
  2855. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  2856. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  2857.      convert_to_double_ex(args[2]);
  2858.      arg3 = (double) Z_DVAL_PP(args[2]);
  2859.      /*@SWIG@*/;
  2860. @@ -8833,7 +8916,7 @@
  2861.    }
  2862.    return;
  2863.  fail:
  2864. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2865. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2866.  }
  2867.  
  2868.  
  2869. @@ -8879,25 +8962,25 @@
  2870.    }
  2871.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2872.    
  2873. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2874. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2875.    convert_to_long_ex(args[1]);
  2876.    arg2 = (int) Z_LVAL_PP(args[1]);
  2877.    /*@SWIG@*/;
  2878.    
  2879.    
  2880. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2881. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2882.    convert_to_long_ex(args[2]);
  2883.    arg3 = (int) Z_LVAL_PP(args[2]);
  2884.    /*@SWIG@*/;
  2885.    
  2886.    
  2887. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2888. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2889.    convert_to_long_ex(args[3]);
  2890.    arg4 = (int) Z_LVAL_PP(args[3]);
  2891.    /*@SWIG@*/;
  2892.    
  2893.    
  2894. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2895. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2896.    convert_to_long_ex(args[4]);
  2897.    arg5 = (int) Z_LVAL_PP(args[4]);
  2898.    /*@SWIG@*/;
  2899. @@ -8979,7 +9062,7 @@
  2900.        free( *arg7 );
  2901.      }
  2902.    }
  2903. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2904. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2905.  }
  2906.  
  2907.  
  2908. @@ -9018,25 +9101,25 @@
  2909.    }
  2910.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  2911.    
  2912. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2913. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2914.    convert_to_long_ex(args[1]);
  2915.    arg2 = (int) Z_LVAL_PP(args[1]);
  2916.    /*@SWIG@*/;
  2917.    
  2918.    
  2919. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2920. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2921.    convert_to_long_ex(args[2]);
  2922.    arg3 = (int) Z_LVAL_PP(args[2]);
  2923.    /*@SWIG@*/;
  2924.    
  2925.    
  2926. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2927. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2928.    convert_to_long_ex(args[3]);
  2929.    arg4 = (int) Z_LVAL_PP(args[3]);
  2930.    /*@SWIG@*/;
  2931.    
  2932.    
  2933. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  2934. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  2935.    convert_to_long_ex(args[4]);
  2936.    arg5 = (int) Z_LVAL_PP(args[4]);
  2937.    /*@SWIG@*/;
  2938. @@ -9108,7 +9191,7 @@
  2939.    }
  2940.    return;
  2941.  fail:
  2942. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2943. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2944.  }
  2945.  
  2946.  
  2947. @@ -9131,7 +9214,7 @@
  2948.    
  2949.    return;
  2950.  fail:
  2951. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2952. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2953.  }
  2954.  
  2955.  
  2956. @@ -9157,7 +9240,7 @@
  2957.    
  2958.    return;
  2959.  fail:
  2960. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2961. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2962.  }
  2963.  
  2964.  
  2965. @@ -9183,7 +9266,7 @@
  2966.    
  2967.    return;
  2968.  fail:
  2969. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2970. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2971.  }
  2972.  
  2973.  
  2974. @@ -9215,7 +9298,7 @@
  2975.    }
  2976.    return;
  2977.  fail:
  2978. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2979. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2980.  }
  2981.  
  2982.  
  2983. @@ -9247,7 +9330,7 @@
  2984.    }
  2985.    return;
  2986.  fail:
  2987. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2988. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2989.  }
  2990.  
  2991.  
  2992. @@ -9273,7 +9356,7 @@
  2993.    
  2994.    return;
  2995.  fail:
  2996. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2997. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  2998.  }
  2999.  
  3000.  
  3001. @@ -9305,7 +9388,7 @@
  3002.    }
  3003.    return;
  3004.  fail:
  3005. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3006. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3007.  }
  3008.  
  3009.  
  3010. @@ -9331,7 +9414,7 @@
  3011.    
  3012.    return;
  3013.  fail:
  3014. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3015. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3016.  }
  3017.  
  3018.  
  3019. @@ -9357,7 +9440,7 @@
  3020.    }
  3021.    return;
  3022.  fail:
  3023. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3024. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3025.  }
  3026.  
  3027.  
  3028. @@ -9379,7 +9462,7 @@
  3029.    }
  3030.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3031.    
  3032. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3033. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3034.    convert_to_long_ex(args[1]);
  3035.    arg2 = (int) Z_LVAL_PP(args[1]);
  3036.    /*@SWIG@*/;
  3037. @@ -9390,7 +9473,7 @@
  3038.    }
  3039.    return;
  3040.  fail:
  3041. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3042. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3043.  }
  3044.  
  3045.  
  3046. @@ -9422,21 +9505,21 @@
  3047.    }
  3048.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3049.    if(arg_count > 1) {
  3050. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3051. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3052.      convert_to_double_ex(args[1]);
  3053.      arg2 = (double) Z_DVAL_PP(args[1]);
  3054.      /*@SWIG@*/;
  3055.      
  3056.    }
  3057.    if(arg_count > 2) {
  3058. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3059. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3060.      convert_to_double_ex(args[2]);
  3061.      arg3 = (double) Z_DVAL_PP(args[2]);
  3062.      /*@SWIG@*/;
  3063.      
  3064.    }
  3065.    if(arg_count > 3) {
  3066. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3067. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3068.      convert_to_long_ex(args[3]);
  3069.      arg4 = (int) Z_LVAL_PP(args[3]);
  3070.      /*@SWIG@*/;
  3071. @@ -9450,14 +9533,14 @@
  3072.      }
  3073.    }
  3074.    if(arg_count > 5) {
  3075. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3076. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3077.      convert_to_long_ex(args[5]);
  3078.      arg6 = (int) Z_LVAL_PP(args[5]);
  3079.      /*@SWIG@*/;
  3080.      
  3081.    }
  3082.    if(arg_count > 6) {
  3083. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3084. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3085.      convert_to_long_ex(args[6]);
  3086.      arg7 = (int) Z_LVAL_PP(args[6]);
  3087.      /*@SWIG@*/;
  3088. @@ -9487,7 +9570,7 @@
  3089.    }
  3090.    return;
  3091.  fail:
  3092. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3093. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3094.  }
  3095.  
  3096.  
  3097. @@ -9546,7 +9629,7 @@
  3098.      }
  3099.    }
  3100.    if(arg_count > 5) {
  3101. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3102. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3103.      convert_to_long_ex(args[5]);
  3104.      arg6 = (int) Z_LVAL_PP(args[5]);
  3105.      /*@SWIG@*/;
  3106. @@ -9576,7 +9659,7 @@
  3107.    }
  3108.    return;
  3109.  fail:
  3110. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3111. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3112.  }
  3113.  
  3114.  
  3115. @@ -9601,19 +9684,19 @@
  3116.    }
  3117.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3118.    
  3119. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3120. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3121.    convert_to_double_ex(args[1]);
  3122.    arg2 = (double) Z_DVAL_PP(args[1]);
  3123.    /*@SWIG@*/;
  3124.    
  3125.    
  3126. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3127. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3128.    convert_to_double_ex(args[2]);
  3129.    arg3 = (double) Z_DVAL_PP(args[2]);
  3130.    /*@SWIG@*/;
  3131.    
  3132.    
  3133. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3134. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3135.    convert_to_long_ex(args[3]);
  3136.    arg4 = (int) Z_LVAL_PP(args[3]);
  3137.    /*@SWIG@*/;
  3138. @@ -9629,7 +9712,7 @@
  3139.    }
  3140.    return;
  3141.  fail:
  3142. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3143. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3144.  }
  3145.  
  3146.  
  3147. @@ -9655,10 +9738,95 @@
  3148.    }
  3149.    return;
  3150.  fail:
  3151. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3152. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3153.  }
  3154.  
  3155.  
  3156. +ZEND_NAMED_FUNCTION(_wrap_Band_GetCategoryNames) {
  3157. +  GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
  3158. +  zval **args[1];
  3159. +  char **result = 0 ;
  3160. +  
  3161. +  SWIG_ResetError();
  3162. +  if(ZEND_NUM_ARGS() != 1 || zend_get_parameters_array_ex(1, args) != SUCCESS) {
  3163. +    WRONG_PARAM_COUNT;
  3164. +  }
  3165. +  
  3166. +  {
  3167. +    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_GDALRasterBandShadow, 0) < 0) {
  3168. +      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of Band_GetCategoryNames. Expected SWIGTYPE_p_GDALRasterBandShadow");
  3169. +    }
  3170. +  }
  3171. +  if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3172. +  result = (char **)GDALRasterBandShadow_GetCategoryNames(arg1);
  3173. +  {
  3174. +    /* %typemap(out) char ** -> ( string ) */
  3175. +    char **stringarray = result;
  3176. +    if ( stringarray == NULL ) {
  3177. +      RETVAL_NULL();
  3178. +    }
  3179. +    else {
  3180. +      int len = CSLCount( stringarray );
  3181. +      array_init(return_value);
  3182. +      for ( int i = 0; i < len; ++i, ++stringarray ) {
  3183. +        add_next_index_string( return_value, *stringarray, 1 );
  3184. +      }
  3185. +    }
  3186. +  }
  3187. +  return;
  3188. +fail:
  3189. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3190. +}
  3191. +
  3192. +
  3193. +ZEND_NAMED_FUNCTION(_wrap_Band_SetCategoryNames) {
  3194. +  GDALRasterBandShadow *arg1 = (GDALRasterBandShadow *) 0 ;
  3195. +  char **arg2 = (char **) 0 ;
  3196. +  zval **args[2];
  3197. +  CPLErr result;
  3198. +  
  3199. +  SWIG_ResetError();
  3200. +  if(ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) != SUCCESS) {
  3201. +    WRONG_PARAM_COUNT;
  3202. +  }
  3203. +  
  3204. +  {
  3205. +    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_GDALRasterBandShadow, 0) < 0) {
  3206. +      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of Band_SetCategoryNames. Expected SWIGTYPE_p_GDALRasterBandShadow");
  3207. +    }
  3208. +  }
  3209. +  if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3210. +  {
  3211. +    /* %typemap(in) char **options */
  3212. +    zend_error(E_ERROR,"Typemap (in) char **options not properly defined");
  3213. +    //  int size = PySequence_Size(args[1]);
  3214. +    //  for (int i = 0; i < size; i++) {
  3215. +    //    char *pszItem = NULL;
  3216. +    //    if ( ! PyArg_Parse( PySequence_GetItem(args[1],i), "s", &pszItem ) ) {
  3217. +    //      PyErr_SetString(PyExc_TypeError,"sequence must contain strings");
  3218. +    //      SWIG_fail;
  3219. +    //    }
  3220. +    //    arg2 = CSLAddString( arg2, pszItem );
  3221. +    //  }
  3222. +  }
  3223. +  result = (CPLErr)GDALRasterBandShadow_SetCategoryNames(arg1,arg2);
  3224. +  {
  3225. +    ZVAL_LONG(return_value,result);
  3226. +  }
  3227. +  {
  3228. +    /* %typemap(freearg) char **options */
  3229. +    CSLDestroy( arg2 );
  3230. +  }
  3231. +  return;
  3232. +fail:
  3233. +  {
  3234. +    /* %typemap(freearg) char **options */
  3235. +    CSLDestroy( arg2 );
  3236. +  }
  3237. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3238. +}
  3239. +
  3240. +
  3241.  ZEND_NAMED_FUNCTION(_wrap_new_ColorTable) {
  3242.    GDALPaletteInterp arg1 = (GDALPaletteInterp) GPI_RGB ;
  3243.    zval **args[1];
  3244. @@ -9672,7 +9840,7 @@
  3245.    WRONG_PARAM_COUNT;
  3246.    
  3247.    if(arg_count > 0) {
  3248. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3249. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3250.      convert_to_long_ex(args[0]);
  3251.      arg1 = (GDALPaletteInterp) Z_LVAL_PP(args[0]);
  3252.      /*@SWIG@*/;
  3253. @@ -9684,7 +9852,7 @@
  3254.    
  3255.    return;
  3256.  fail:
  3257. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3258. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3259.  }
  3260.  
  3261.  
  3262. @@ -9703,7 +9871,7 @@
  3263.    delete_GDALColorTableShadow(arg1);
  3264.    return;
  3265.  fail:
  3266. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3267. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3268.  }
  3269.  
  3270.  
  3271. @@ -9729,7 +9897,7 @@
  3272.    
  3273.    return;
  3274.  fail:
  3275. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3276. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3277.  }
  3278.  
  3279.  
  3280. @@ -9755,7 +9923,7 @@
  3281.    }
  3282.    return;
  3283.  fail:
  3284. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3285. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3286.  }
  3287.  
  3288.  
  3289. @@ -9781,7 +9949,7 @@
  3290.    }
  3291.    return;
  3292.  fail:
  3293. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3294. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3295.  }
  3296.  
  3297.  
  3298. @@ -9803,7 +9971,7 @@
  3299.    }
  3300.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3301.    
  3302. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3303. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3304.    convert_to_long_ex(args[1]);
  3305.    arg2 = (int) Z_LVAL_PP(args[1]);
  3306.    /*@SWIG@*/;
  3307. @@ -9819,7 +9987,7 @@
  3308.    }
  3309.    return;
  3310.  fail:
  3311. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3312. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3313.  }
  3314.  
  3315.  
  3316. @@ -9842,7 +10010,7 @@
  3317.    }
  3318.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3319.    
  3320. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3321. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3322.    convert_to_long_ex(args[1]);
  3323.    arg2 = (int) Z_LVAL_PP(args[1]);
  3324.    /*@SWIG@*/;
  3325. @@ -9861,7 +10029,7 @@
  3326.    }
  3327.    return;
  3328.  fail:
  3329. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3330. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3331.  }
  3332.  
  3333.  
  3334. @@ -9883,7 +10051,7 @@
  3335.    }
  3336.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3337.    
  3338. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3339. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3340.    convert_to_long_ex(args[1]);
  3341.    arg2 = (int) Z_LVAL_PP(args[1]);
  3342.    /*@SWIG@*/;
  3343. @@ -9900,7 +10068,7 @@
  3344.    
  3345.    return;
  3346.  fail:
  3347. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3348. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3349.  }
  3350.  
  3351.  
  3352. @@ -9924,7 +10092,7 @@
  3353.    }
  3354.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3355.    
  3356. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3357. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3358.    convert_to_long_ex(args[1]);
  3359.    arg2 = (int) Z_LVAL_PP(args[1]);
  3360.    /*@SWIG@*/;
  3361. @@ -9938,7 +10106,7 @@
  3362.      arg3 = &ce;
  3363.    }
  3364.    
  3365. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3366. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3367.    convert_to_long_ex(args[3]);
  3368.    arg4 = (int) Z_LVAL_PP(args[3]);
  3369.    /*@SWIG@*/;
  3370. @@ -9955,7 +10123,7 @@
  3371.    
  3372.    return;
  3373.  fail:
  3374. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3375. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3376.  }
  3377.  
  3378.  
  3379. @@ -9973,7 +10141,7 @@
  3380.    
  3381.    return;
  3382.  fail:
  3383. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3384. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3385.  }
  3386.  
  3387.  
  3388. @@ -9992,7 +10160,7 @@
  3389.    delete_GDALRasterAttributeTableShadow(arg1);
  3390.    return;
  3391.  fail:
  3392. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3393. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3394.  }
  3395.  
  3396.  
  3397. @@ -10018,7 +10186,7 @@
  3398.    
  3399.    return;
  3400.  fail:
  3401. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3402. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3403.  }
  3404.  
  3405.  
  3406. @@ -10044,7 +10212,7 @@
  3407.    }
  3408.    return;
  3409.  fail:
  3410. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3411. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3412.  }
  3413.  
  3414.  
  3415. @@ -10066,7 +10234,7 @@
  3416.    }
  3417.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3418.    
  3419. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3420. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3421.    convert_to_long_ex(args[1]);
  3422.    arg2 = (int) Z_LVAL_PP(args[1]);
  3423.    /*@SWIG@*/;
  3424. @@ -10081,7 +10249,7 @@
  3425.    }
  3426.    return;
  3427.  fail:
  3428. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3429. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3430.  }
  3431.  
  3432.  
  3433. @@ -10103,7 +10271,7 @@
  3434.    }
  3435.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3436.    
  3437. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3438. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3439.    convert_to_long_ex(args[1]);
  3440.    arg2 = (int) Z_LVAL_PP(args[1]);
  3441.    /*@SWIG@*/;
  3442. @@ -10114,7 +10282,7 @@
  3443.    }
  3444.    return;
  3445.  fail:
  3446. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3447. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3448.  }
  3449.  
  3450.  
  3451. @@ -10136,7 +10304,7 @@
  3452.    }
  3453.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3454.    
  3455. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3456. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3457.    convert_to_long_ex(args[1]);
  3458.    arg2 = (int) Z_LVAL_PP(args[1]);
  3459.    /*@SWIG@*/;
  3460. @@ -10147,7 +10315,7 @@
  3461.    }
  3462.    return;
  3463.  fail:
  3464. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3465. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3466.  }
  3467.  
  3468.  
  3469. @@ -10169,7 +10337,7 @@
  3470.    }
  3471.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3472.    
  3473. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3474. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3475.    convert_to_long_ex(args[1]);
  3476.    arg2 = (GDALRATFieldUsage) Z_LVAL_PP(args[1]);
  3477.    /*@SWIG@*/;
  3478. @@ -10180,7 +10348,7 @@
  3479.    }
  3480.    return;
  3481.  fail:
  3482. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3483. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3484.  }
  3485.  
  3486.  
  3487. @@ -10206,7 +10374,7 @@
  3488.    }
  3489.    return;
  3490.  fail:
  3491. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3492. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3493.  }
  3494.  
  3495.  
  3496. @@ -10229,13 +10397,13 @@
  3497.    }
  3498.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3499.    
  3500. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3501. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3502.    convert_to_long_ex(args[1]);
  3503.    arg2 = (int) Z_LVAL_PP(args[1]);
  3504.    /*@SWIG@*/;
  3505.    
  3506.    
  3507. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3508. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3509.    convert_to_long_ex(args[2]);
  3510.    arg3 = (int) Z_LVAL_PP(args[2]);
  3511.    /*@SWIG@*/;
  3512. @@ -10250,7 +10418,7 @@
  3513.    }
  3514.    return;
  3515.  fail:
  3516. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3517. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3518.  }
  3519.  
  3520.  
  3521. @@ -10273,13 +10441,13 @@
  3522.    }
  3523.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3524.    
  3525. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3526. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3527.    convert_to_long_ex(args[1]);
  3528.    arg2 = (int) Z_LVAL_PP(args[1]);
  3529.    /*@SWIG@*/;
  3530.    
  3531.    
  3532. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3533. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3534.    convert_to_long_ex(args[2]);
  3535.    arg3 = (int) Z_LVAL_PP(args[2]);
  3536.    /*@SWIG@*/;
  3537. @@ -10290,7 +10458,7 @@
  3538.    }
  3539.    return;
  3540.  fail:
  3541. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3542. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3543.  }
  3544.  
  3545.  
  3546. @@ -10313,13 +10481,13 @@
  3547.    }
  3548.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3549.    
  3550. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3551. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3552.    convert_to_long_ex(args[1]);
  3553.    arg2 = (int) Z_LVAL_PP(args[1]);
  3554.    /*@SWIG@*/;
  3555.    
  3556.    
  3557. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3558. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3559.    convert_to_long_ex(args[2]);
  3560.    arg3 = (int) Z_LVAL_PP(args[2]);
  3561.    /*@SWIG@*/;
  3562. @@ -10330,7 +10498,7 @@
  3563.    }
  3564.    return;
  3565.  fail:
  3566. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3567. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3568.  }
  3569.  
  3570.  
  3571. @@ -10353,13 +10521,13 @@
  3572.    }
  3573.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3574.    
  3575. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3576. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3577.    convert_to_long_ex(args[1]);
  3578.    arg2 = (int) Z_LVAL_PP(args[1]);
  3579.    /*@SWIG@*/;
  3580.    
  3581.    
  3582. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3583. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3584.    convert_to_long_ex(args[2]);
  3585.    arg3 = (int) Z_LVAL_PP(args[2]);
  3586.    /*@SWIG@*/;
  3587. @@ -10373,7 +10541,7 @@
  3588.    
  3589.    return;
  3590.  fail:
  3591. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3592. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3593.  }
  3594.  
  3595.  
  3596. @@ -10396,19 +10564,19 @@
  3597.    }
  3598.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3599.    
  3600. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3601. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3602.    convert_to_long_ex(args[1]);
  3603.    arg2 = (int) Z_LVAL_PP(args[1]);
  3604.    /*@SWIG@*/;
  3605.    
  3606.    
  3607. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3608. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3609.    convert_to_long_ex(args[2]);
  3610.    arg3 = (int) Z_LVAL_PP(args[2]);
  3611.    /*@SWIG@*/;
  3612.    
  3613.    
  3614. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3615. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3616.    convert_to_long_ex(args[3]);
  3617.    arg4 = (int) Z_LVAL_PP(args[3]);
  3618.    /*@SWIG@*/;
  3619. @@ -10417,7 +10585,7 @@
  3620.    
  3621.    return;
  3622.  fail:
  3623. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3624. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3625.  }
  3626.  
  3627.  
  3628. @@ -10440,19 +10608,19 @@
  3629.    }
  3630.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3631.    
  3632. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3633. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3634.    convert_to_long_ex(args[1]);
  3635.    arg2 = (int) Z_LVAL_PP(args[1]);
  3636.    /*@SWIG@*/;
  3637.    
  3638.    
  3639. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3640. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3641.    convert_to_long_ex(args[2]);
  3642.    arg3 = (int) Z_LVAL_PP(args[2]);
  3643.    /*@SWIG@*/;
  3644.    
  3645.    
  3646. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3647. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3648.    convert_to_double_ex(args[3]);
  3649.    arg4 = (double) Z_DVAL_PP(args[3]);
  3650.    /*@SWIG@*/;
  3651. @@ -10461,7 +10629,7 @@
  3652.    
  3653.    return;
  3654.  fail:
  3655. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3656. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3657.  }
  3658.  
  3659.  
  3660. @@ -10482,7 +10650,7 @@
  3661.    }
  3662.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3663.    
  3664. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3665. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3666.    convert_to_long_ex(args[1]);
  3667.    arg2 = (int) Z_LVAL_PP(args[1]);
  3668.    /*@SWIG@*/;
  3669. @@ -10491,7 +10659,7 @@
  3670.    
  3671.    return;
  3672.  fail:
  3673. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3674. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3675.  }
  3676.  
  3677.  
  3678. @@ -10515,7 +10683,7 @@
  3679.    }
  3680.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3681.    
  3682. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3683. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3684.    if ((*args[1])->type==IS_NULL) {
  3685.      arg2 = (char *) 0;
  3686.    } else {
  3687. @@ -10525,13 +10693,13 @@
  3688.    /*@SWIG@*/;
  3689.    
  3690.    
  3691. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3692. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3693.    convert_to_long_ex(args[2]);
  3694.    arg3 = (GDALRATFieldType) Z_LVAL_PP(args[2]);
  3695.    /*@SWIG@*/;
  3696.    
  3697.    
  3698. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3699. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3700.    convert_to_long_ex(args[3]);
  3701.    arg4 = (GDALRATFieldUsage) Z_LVAL_PP(args[3]);
  3702.    /*@SWIG@*/;
  3703. @@ -10542,7 +10710,7 @@
  3704.    }
  3705.    return;
  3706.  fail:
  3707. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3708. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3709.  }
  3710.  
  3711.  
  3712. @@ -10586,7 +10754,7 @@
  3713.    }
  3714.    return;
  3715.  fail:
  3716. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3717. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3718.  }
  3719.  
  3720.  
  3721. @@ -10609,13 +10777,13 @@
  3722.    }
  3723.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3724.    
  3725. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3726. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3727.    convert_to_double_ex(args[1]);
  3728.    arg2 = (double) Z_DVAL_PP(args[1]);
  3729.    /*@SWIG@*/;
  3730.    
  3731.    
  3732. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3733. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3734.    convert_to_double_ex(args[2]);
  3735.    arg3 = (double) Z_DVAL_PP(args[2]);
  3736.    /*@SWIG@*/;
  3737. @@ -10626,7 +10794,7 @@
  3738.    }
  3739.    return;
  3740.  fail:
  3741. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3742. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3743.  }
  3744.  
  3745.  
  3746. @@ -10648,7 +10816,7 @@
  3747.    }
  3748.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  3749.    
  3750. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3751. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3752.    convert_to_double_ex(args[1]);
  3753.    arg2 = (double) Z_DVAL_PP(args[1]);
  3754.    /*@SWIG@*/;
  3755. @@ -10659,7 +10827,7 @@
  3756.    }
  3757.    return;
  3758.  fail:
  3759. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3760. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3761.  }
  3762.  
  3763.  
  3764. @@ -10678,13 +10846,13 @@
  3765.    WRONG_PARAM_COUNT;
  3766.    
  3767.    
  3768. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3769. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3770.    convert_to_double_ex(args[0]);
  3771.    arg1 = (double) Z_DVAL_PP(args[0]);
  3772.    /*@SWIG@*/;
  3773.    
  3774.    if(arg_count > 1) {
  3775. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3776. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3777.      if ((*args[1])->type==IS_NULL) {
  3778.        arg2 = (char *) 0;
  3779.      } else {
  3780. @@ -10710,7 +10878,7 @@
  3781.    }
  3782.    return;
  3783.  fail:
  3784. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3785. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3786.  }
  3787.  
  3788.  
  3789. @@ -10749,7 +10917,7 @@
  3790.      }
  3791.    }
  3792.    
  3793. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3794. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3795.    convert_to_long_ex(args[3]);
  3796.    arg4 = (int) Z_LVAL_PP(args[3]);
  3797.    /*@SWIG@*/;
  3798. @@ -10803,7 +10971,7 @@
  3799.    }
  3800.    return;
  3801.  fail:
  3802. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3803. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3804.  }
  3805.  
  3806.  
  3807. @@ -10900,7 +11068,7 @@
  3808.    }
  3809.    return;
  3810.  fail:
  3811. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3812. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3813.  }
  3814.  
  3815.  
  3816. @@ -10936,7 +11104,7 @@
  3817.      }
  3818.    }
  3819.    if(arg_count > 2) {
  3820. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3821. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3822.      if ((*args[2])->type==IS_NULL) {
  3823.        arg3 = (char *) 0;
  3824.      } else {
  3825. @@ -10947,7 +11115,7 @@
  3826.      
  3827.    }
  3828.    if(arg_count > 3) {
  3829. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3830. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3831.      if ((*args[3])->type==IS_NULL) {
  3832.        arg4 = (char *) 0;
  3833.      } else {
  3834. @@ -10958,21 +11126,21 @@
  3835.      
  3836.    }
  3837.    if(arg_count > 4) {
  3838. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3839. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3840.      convert_to_long_ex(args[4]);
  3841.      arg5 = (GDALResampleAlg) Z_LVAL_PP(args[4]);
  3842.      /*@SWIG@*/;
  3843.      
  3844.    }
  3845.    if(arg_count > 5) {
  3846. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3847. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3848.      convert_to_double_ex(args[5]);
  3849.      arg6 = (double) Z_DVAL_PP(args[5]);
  3850.      /*@SWIG@*/;
  3851.      
  3852.    }
  3853.    if(arg_count > 6) {
  3854. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3855. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3856.      convert_to_double_ex(args[6]);
  3857.      arg7 = (double) Z_DVAL_PP(args[6]);
  3858.      /*@SWIG@*/;
  3859. @@ -11012,7 +11180,7 @@
  3860.    }
  3861.    return;
  3862.  fail:
  3863. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3864. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3865.  }
  3866.  
  3867.  
  3868. @@ -11100,7 +11268,7 @@
  3869.      /* %typemap(freearg) char **options */
  3870.      CSLDestroy( arg3 );
  3871.    }
  3872. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3873. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3874.  }
  3875.  
  3876.  
  3877. @@ -11175,7 +11343,7 @@
  3878.      }
  3879.    }
  3880.    if(arg_count > 5) {
  3881. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3882. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3883.      convert_to_long_ex(args[5]);
  3884.      arg7 = (int) Z_LVAL_PP(args[5]);
  3885.      /*@SWIG@*/;
  3886. @@ -11257,7 +11425,7 @@
  3887.      /* %typemap(freearg) char **options */
  3888.      CSLDestroy( arg9 );
  3889.    }
  3890. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3891. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3892.  }
  3893.  
  3894.  
  3895. @@ -11296,7 +11464,7 @@
  3896.      }
  3897.    }
  3898.    
  3899. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3900. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3901.    convert_to_long_ex(args[3]);
  3902.    arg4 = (int) Z_LVAL_PP(args[3]);
  3903.    /*@SWIG@*/;
  3904. @@ -11358,7 +11526,7 @@
  3905.      /* %typemap(freearg) char **options */
  3906.      CSLDestroy( arg5 );
  3907.    }
  3908. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3909. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3910.  }
  3911.  
  3912.  
  3913. @@ -11392,13 +11560,13 @@
  3914.      }
  3915.    }
  3916.    
  3917. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  3918. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  3919.    convert_to_double_ex(args[2]);
  3920.    arg3 = (double) Z_DVAL_PP(args[2]);
  3921.    /*@SWIG@*/;
  3922.    
  3923.    
  3924. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3925. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3926.    convert_to_long_ex(args[3]);
  3927.    arg4 = (int) Z_LVAL_PP(args[3]);
  3928.    /*@SWIG@*/;
  3929. @@ -11455,7 +11623,7 @@
  3930.      /* %typemap(freearg) char **options */
  3931.      CSLDestroy( arg5 );
  3932.    }
  3933. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3934. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3935.  }
  3936.  
  3937.  
  3938. @@ -11495,13 +11663,13 @@
  3939.      }
  3940.    }
  3941.    
  3942. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3943. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3944.    convert_to_long_ex(args[3]);
  3945.    arg4 = (int) Z_LVAL_PP(args[3]);
  3946.    /*@SWIG@*/;
  3947.    
  3948.    if(arg_count > 4) {
  3949. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3950. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3951.      convert_to_long_ex(args[4]);
  3952.      arg5 = (int) Z_LVAL_PP(args[4]);
  3953.      /*@SWIG@*/;
  3954. @@ -11564,7 +11732,7 @@
  3955.      /* %typemap(freearg) char **options */
  3956.      CSLDestroy( arg6 );
  3957.    }
  3958. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3959. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3960.  }
  3961.  
  3962.  
  3963. @@ -11592,7 +11760,7 @@
  3964.      }
  3965.    }
  3966.    
  3967. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  3968. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  3969.    convert_to_long_ex(args[1]);
  3970.    arg2 = (int) Z_LVAL_PP(args[1]);
  3971.    /*@SWIG@*/;
  3972. @@ -11603,7 +11771,7 @@
  3973.      }
  3974.    }
  3975.    if(arg_count > 3) {
  3976. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3977. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3978.      if ((*args[3])->type==IS_NULL) {
  3979.        arg4 = (char *) 0;
  3980.      } else {
  3981. @@ -11642,7 +11810,7 @@
  3982.    }
  3983.    return;
  3984.  fail:
  3985. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3986. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  3987.  }
  3988.  
  3989.  
  3990. @@ -11674,7 +11842,7 @@
  3991.      }
  3992.    }
  3993.    if(arg_count > 2) {
  3994. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  3995. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  3996.      if ((*args[2])->type==IS_NULL) {
  3997.        arg3 = (char *) 0;
  3998.      } else {
  3999. @@ -11718,7 +11886,7 @@
  4000.    }
  4001.    return;
  4002.  fail:
  4003. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4004. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4005.  }
  4006.  
  4007.  
  4008. @@ -11752,19 +11920,19 @@
  4009.      }
  4010.    }
  4011.    
  4012. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4013. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4014.    convert_to_double_ex(args[1]);
  4015.    arg2 = (double) Z_DVAL_PP(args[1]);
  4016.    /*@SWIG@*/;
  4017.    
  4018.    
  4019. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4020. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4021.    convert_to_double_ex(args[2]);
  4022.    arg3 = (double) Z_DVAL_PP(args[2]);
  4023.    /*@SWIG@*/;
  4024.    
  4025.    
  4026. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4027. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4028.    convert_to_long_ex(args[3]);
  4029.    arg4 = (int) Z_LVAL_PP(args[3]);
  4030.    /*@SWIG@*/;
  4031. @@ -11775,13 +11943,13 @@
  4032.      }
  4033.    }
  4034.    
  4035. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4036. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4037.    convert_to_long_ex(args[5]);
  4038.    arg6 = (int) Z_LVAL_PP(args[5]);
  4039.    /*@SWIG@*/;
  4040.    
  4041.    
  4042. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4043. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4044.    convert_to_double_ex(args[6]);
  4045.    arg7 = (double) Z_DVAL_PP(args[6]);
  4046.    /*@SWIG@*/;
  4047. @@ -11792,13 +11960,13 @@
  4048.      }
  4049.    }
  4050.    
  4051. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4052. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4053.    convert_to_long_ex(args[8]);
  4054.    arg9 = (int) Z_LVAL_PP(args[8]);
  4055.    /*@SWIG@*/;
  4056.    
  4057.    
  4058. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4059. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4060.    convert_to_long_ex(args[9]);
  4061.    arg10 = (int) Z_LVAL_PP(args[9]);
  4062.    /*@SWIG@*/;
  4063. @@ -11837,7 +12005,7 @@
  4064.    }
  4065.    return;
  4066.  fail:
  4067. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4068. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4069.  }
  4070.  
  4071.  
  4072. @@ -11863,7 +12031,7 @@
  4073.      }
  4074.    }
  4075.    if(arg_count > 1) {
  4076. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4077. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4078.      if ((*args[1])->type==IS_NULL) {
  4079.        arg2 = (char *) 0;
  4080.      } else {
  4081. @@ -11874,7 +12042,7 @@
  4082.      
  4083.    }
  4084.    if(arg_count > 2) {
  4085. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4086. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4087.      if ((*args[2])->type==IS_NULL) {
  4088.        arg3 = (char *) 0;
  4089.      } else {
  4090. @@ -11885,14 +12053,14 @@
  4091.      
  4092.    }
  4093.    if(arg_count > 3) {
  4094. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4095. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4096.      convert_to_long_ex(args[3]);
  4097.      arg4 = (GDALResampleAlg) Z_LVAL_PP(args[3]);
  4098.      /*@SWIG@*/;
  4099.      
  4100.    }
  4101.    if(arg_count > 4) {
  4102. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4103. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4104.      convert_to_double_ex(args[4]);
  4105.      arg5 = (double) Z_DVAL_PP(args[4]);
  4106.      /*@SWIG@*/;
  4107. @@ -11909,7 +12077,7 @@
  4108.    
  4109.    return;
  4110.  fail:
  4111. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4112. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4113.  }
  4114.  
  4115.  
  4116. @@ -11962,7 +12130,7 @@
  4117.      /* %typemap(freearg) char **options */
  4118.      CSLDestroy( arg3 );
  4119.    }
  4120. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4121. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4122.  }
  4123.  
  4124.  
  4125. @@ -11981,7 +12149,7 @@
  4126.    delete_GDALTransformerInfoShadow(arg1);
  4127.    return;
  4128.  fail:
  4129. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4130. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4131.  }
  4132.  
  4133.  
  4134. @@ -12005,7 +12173,7 @@
  4135.    }
  4136.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  4137.    
  4138. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4139. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4140.    convert_to_long_ex(args[1]);
  4141.    arg2 = (int) Z_LVAL_PP(args[1]);
  4142.    /*@SWIG@*/;
  4143. @@ -12029,7 +12197,7 @@
  4144.    }
  4145.    return;
  4146.  fail:
  4147. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4148. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4149.  }
  4150.  
  4151.  
  4152. @@ -12062,25 +12230,25 @@
  4153.    }
  4154.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  4155.    
  4156. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4157. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4158.    convert_to_long_ex(args[1]);
  4159.    arg3 = (int) Z_LVAL_PP(args[1]);
  4160.    /*@SWIG@*/;
  4161.    
  4162.    
  4163. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4164. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4165.    convert_to_double_ex(args[2]);
  4166.    arg4 = (double) Z_DVAL_PP(args[2]);
  4167.    /*@SWIG@*/;
  4168.    
  4169.    
  4170. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4171. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4172.    convert_to_double_ex(args[3]);
  4173.    arg5 = (double) Z_DVAL_PP(args[3]);
  4174.    /*@SWIG@*/;
  4175.    
  4176.    if(arg_count > 4) {
  4177. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4178. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4179.      convert_to_double_ex(args[4]);
  4180.      arg6 = (double) Z_DVAL_PP(args[4]);
  4181.      /*@SWIG@*/;
  4182. @@ -12097,7 +12265,7 @@
  4183.    }
  4184.    return;
  4185.  fail:
  4186. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4187. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4188.  }
  4189.  
  4190.  
  4191. @@ -12181,13 +12349,13 @@
  4192.    }
  4193.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  4194.    
  4195. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4196. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4197.    convert_to_long_ex(args[1]);
  4198.    arg2 = (int) Z_LVAL_PP(args[1]);
  4199.    /*@SWIG@*/;
  4200.    
  4201.    
  4202. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4203. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4204.    convert_to_long_ex(args[2]);
  4205.    arg3 = (int) Z_LVAL_PP(args[2]);
  4206.    /*@SWIG@*/;
  4207. @@ -12218,7 +12386,7 @@
  4208.    }
  4209.    return;
  4210.  fail:
  4211. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4212. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4213.  }
  4214.  
  4215.  
  4216. @@ -12249,13 +12417,13 @@
  4217.      }
  4218.    }
  4219.    
  4220. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4221. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4222.    convert_to_double_ex(args[1]);
  4223.    arg2 = (double) Z_DVAL_PP(args[1]);
  4224.    /*@SWIG@*/;
  4225.    
  4226.    
  4227. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4228. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4229.    convert_to_double_ex(args[2]);
  4230.    arg3 = (double) Z_DVAL_PP(args[2]);
  4231.    /*@SWIG@*/;
  4232. @@ -12276,7 +12444,7 @@
  4233.    }
  4234.    return;
  4235.  fail:
  4236. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4237. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4238.  }
  4239.  
  4240.  
  4241. @@ -12316,7 +12484,7 @@
  4242.    }
  4243.    return;
  4244.  fail:
  4245. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4246. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4247.  }
  4248.  
  4249.  
  4250. @@ -12333,7 +12501,7 @@
  4251.    WRONG_PARAM_COUNT;
  4252.    
  4253.    if(arg_count > 0) {
  4254. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4255. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4256.      if ((*args[0])->type==IS_NULL) {
  4257.        arg1 = (char *) 0;
  4258.      } else {
  4259. @@ -12353,7 +12521,7 @@
  4260.    }
  4261.    return;
  4262.  fail:
  4263. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4264. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4265.  }
  4266.  
  4267.  
  4268. @@ -12367,7 +12535,7 @@
  4269.    
  4270.    return;
  4271.  fail:
  4272. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4273. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4274.  }
  4275.  
  4276.  
  4277. @@ -12381,7 +12549,7 @@
  4278.    
  4279.    return;
  4280.  fail:
  4281. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4282. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4283.  }
  4284.  
  4285.  
  4286. @@ -12399,7 +12567,7 @@
  4287.    }
  4288.    return;
  4289.  fail:
  4290. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4291. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4292.  }
  4293.  
  4294.  
  4295. @@ -12417,7 +12585,7 @@
  4296.    }
  4297.    return;
  4298.  fail:
  4299. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4300. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4301.  }
  4302.  
  4303.  
  4304. @@ -12431,7 +12599,7 @@
  4305.    }
  4306.    
  4307.    
  4308. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4309. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4310.    convert_to_long_ex(args[0]);
  4311.    arg1 = (int) Z_LVAL_PP(args[0]);
  4312.    /*@SWIG@*/;
  4313. @@ -12440,7 +12608,7 @@
  4314.    
  4315.    return;
  4316.  fail:
  4317. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4318. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4319.  }
  4320.  
  4321.  
  4322. @@ -12455,7 +12623,7 @@
  4323.    }
  4324.    
  4325.    
  4326. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4327. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4328.    convert_to_long_ex(args[0]);
  4329.    arg1 = (GDALDataType) Z_LVAL_PP(args[0]);
  4330.    /*@SWIG@*/;
  4331. @@ -12466,7 +12634,7 @@
  4332.    }
  4333.    return;
  4334.  fail:
  4335. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4336. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4337.  }
  4338.  
  4339.  
  4340. @@ -12481,7 +12649,7 @@
  4341.    }
  4342.    
  4343.    
  4344. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4345. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4346.    convert_to_long_ex(args[0]);
  4347.    arg1 = (GDALDataType) Z_LVAL_PP(args[0]);
  4348.    /*@SWIG@*/;
  4349. @@ -12492,7 +12660,7 @@
  4350.    }
  4351.    return;
  4352.  fail:
  4353. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4354. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4355.  }
  4356.  
  4357.  
  4358. @@ -12507,7 +12675,7 @@
  4359.    }
  4360.    
  4361.    
  4362. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4363. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4364.    convert_to_long_ex(args[0]);
  4365.    arg1 = (GDALDataType) Z_LVAL_PP(args[0]);
  4366.    /*@SWIG@*/;
  4367. @@ -12522,7 +12690,7 @@
  4368.    }
  4369.    return;
  4370.  fail:
  4371. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4372. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4373.  }
  4374.  
  4375.  
  4376. @@ -12537,7 +12705,7 @@
  4377.    }
  4378.    
  4379.    
  4380. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4381. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4382.    if ((*args[0])->type==IS_NULL) {
  4383.      arg1 = (char *) 0;
  4384.    } else {
  4385. @@ -12552,7 +12720,7 @@
  4386.    }
  4387.    return;
  4388.  fail:
  4389. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4390. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4391.  }
  4392.  
  4393.  
  4394. @@ -12567,7 +12735,7 @@
  4395.    }
  4396.    
  4397.    
  4398. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4399. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4400.    convert_to_long_ex(args[0]);
  4401.    arg1 = (GDALColorInterp) Z_LVAL_PP(args[0]);
  4402.    /*@SWIG@*/;
  4403. @@ -12582,7 +12750,7 @@
  4404.    }
  4405.    return;
  4406.  fail:
  4407. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4408. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4409.  }
  4410.  
  4411.  
  4412. @@ -12597,7 +12765,7 @@
  4413.    }
  4414.    
  4415.    
  4416. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4417. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4418.    convert_to_long_ex(args[0]);
  4419.    arg1 = (GDALPaletteInterp) Z_LVAL_PP(args[0]);
  4420.    /*@SWIG@*/;
  4421. @@ -12612,7 +12780,7 @@
  4422.    }
  4423.    return;
  4424.  fail:
  4425. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4426. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4427.  }
  4428.  
  4429.  
  4430. @@ -12631,13 +12799,13 @@
  4431.    WRONG_PARAM_COUNT;
  4432.    
  4433.    
  4434. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4435. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4436.    convert_to_double_ex(args[0]);
  4437.    arg1 = (double) Z_DVAL_PP(args[0]);
  4438.    /*@SWIG@*/;
  4439.    
  4440.    
  4441. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4442. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4443.    if ((*args[1])->type==IS_NULL) {
  4444.      arg2 = (char *) 0;
  4445.    } else {
  4446. @@ -12647,7 +12815,7 @@
  4447.    /*@SWIG@*/;
  4448.    
  4449.    if(arg_count > 2) {
  4450. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4451. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4452.      convert_to_long_ex(args[2]);
  4453.      arg3 = (int) Z_LVAL_PP(args[2]);
  4454.      /*@SWIG@*/;
  4455. @@ -12663,7 +12831,7 @@
  4456.    }
  4457.    return;
  4458.  fail:
  4459. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4460. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4461.  }
  4462.  
  4463.  
  4464. @@ -12678,7 +12846,7 @@
  4465.    }
  4466.    
  4467.    
  4468. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4469. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4470.    convert_to_double_ex(args[0]);
  4471.    arg1 = (double) Z_DVAL_PP(args[0]);
  4472.    /*@SWIG@*/;
  4473. @@ -12689,7 +12857,7 @@
  4474.    }
  4475.    return;
  4476.  fail:
  4477. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4478. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4479.  }
  4480.  
  4481.  
  4482. @@ -12704,7 +12872,7 @@
  4483.    }
  4484.    
  4485.    
  4486. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  4487. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  4488.    convert_to_double_ex(args[0]);
  4489.    arg1 = (double) Z_DVAL_PP(args[0]);
  4490.    /*@SWIG@*/;
  4491. @@ -12715,7 +12883,7 @@
  4492.    }
  4493.    return;
  4494.  fail:
  4495. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4496. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4497.  }
  4498.  
  4499.  
  4500. @@ -12730,7 +12898,7 @@
  4501.    }
  4502.    
  4503.    
  4504. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4505. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4506.    if ((*args[0])->type==IS_NULL) {
  4507.      arg1 = (char *) 0;
  4508.    } else {
  4509. @@ -12745,7 +12913,7 @@
  4510.    
  4511.    return;
  4512.  fail:
  4513. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4514. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4515.  }
  4516.  
  4517.  
  4518. @@ -12774,7 +12942,7 @@
  4519.    }
  4520.    return;
  4521.  fail:
  4522. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4523. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4524.  }
  4525.  
  4526.  
  4527. @@ -12792,7 +12960,7 @@
  4528.    }
  4529.    return;
  4530.  fail:
  4531. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4532. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4533.  }
  4534.  
  4535.  
  4536. @@ -12807,7 +12975,7 @@
  4537.    }
  4538.    
  4539.    
  4540. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4541. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4542.    if ((*args[0])->type==IS_NULL) {
  4543.      arg1 = (char *) 0;
  4544.    } else {
  4545. @@ -12827,7 +12995,7 @@
  4546.    
  4547.    return;
  4548.  fail:
  4549. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4550. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4551.  }
  4552.  
  4553.  
  4554. @@ -12842,7 +13010,7 @@
  4555.    }
  4556.    
  4557.    
  4558. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4559. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4560.    convert_to_long_ex(args[0]);
  4561.    arg1 = (int) Z_LVAL_PP(args[0]);
  4562.    /*@SWIG@*/;
  4563. @@ -12853,7 +13021,7 @@
  4564.    
  4565.    return;
  4566.  fail:
  4567. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4568. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4569.  }
  4570.  
  4571.  
  4572. @@ -12871,7 +13039,7 @@
  4573.    WRONG_PARAM_COUNT;
  4574.    
  4575.    
  4576. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4577. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4578.    if ((*args[0])->type==IS_NULL) {
  4579.      arg1 = (char *) 0;
  4580.    } else {
  4581. @@ -12881,7 +13049,7 @@
  4582.    /*@SWIG@*/;
  4583.    
  4584.    if(arg_count > 1) {
  4585. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4586. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4587.      convert_to_long_ex(args[1]);
  4588.      arg2 = (GDALAccess) Z_LVAL_PP(args[1]);
  4589.      /*@SWIG@*/;
  4590. @@ -12893,7 +13061,7 @@
  4591.    
  4592.    return;
  4593.  fail:
  4594. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4595. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4596.  }
  4597.  
  4598.  
  4599. @@ -12911,7 +13079,7 @@
  4600.    WRONG_PARAM_COUNT;
  4601.    
  4602.    
  4603. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4604. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4605.    if ((*args[0])->type==IS_NULL) {
  4606.      arg1 = (char *) 0;
  4607.    } else {
  4608. @@ -12921,7 +13089,7 @@
  4609.    /*@SWIG@*/;
  4610.    
  4611.    if(arg_count > 1) {
  4612. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4613. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4614.      convert_to_long_ex(args[1]);
  4615.      arg2 = (GDALAccess) Z_LVAL_PP(args[1]);
  4616.      /*@SWIG@*/;
  4617. @@ -12933,7 +13101,7 @@
  4618.    
  4619.    return;
  4620.  fail:
  4621. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4622. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4623.  }
  4624.  
  4625.  
  4626. @@ -12951,7 +13119,7 @@
  4627.    WRONG_PARAM_COUNT;
  4628.    
  4629.    
  4630. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4631. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4632.    if ((*args[0])->type==IS_NULL) {
  4633.      arg1 = (char *) 0;
  4634.    } else {
  4635. @@ -12989,7 +13157,7 @@
  4636.      /* %typemap(freearg) char **options */
  4637.      CSLDestroy( arg2 );
  4638.    }
  4639. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4640. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4641.  }
  4642.  
  4643.  
  4644. @@ -13020,7 +13188,7 @@
  4645.      //  }
  4646.    }
  4647.    if(arg_count > 1) {
  4648. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4649. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4650.      convert_to_long_ex(args[1]);
  4651.      arg2 = (int) Z_LVAL_PP(args[1]);
  4652.      /*@SWIG@*/;
  4653. @@ -13051,7 +13219,7 @@
  4654.      /* %typemap(freearg) char **options */
  4655.      CSLDestroy( arg1 );
  4656.    }
  4657. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4658. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4659.  }
  4660.  
  4661.  
  4662. @@ -13198,6 +13366,7 @@
  4663.   SWIG_ZEND_NAMED_FE(driver_createcopy,_wrap_Driver_CreateCopy,NULL)
  4664.   SWIG_ZEND_NAMED_FE(driver_delete,_wrap_Driver_Delete,NULL)
  4665.   SWIG_ZEND_NAMED_FE(driver_rename,_wrap_Driver_Rename,NULL)
  4666. + SWIG_ZEND_NAMED_FE(driver_copyfiles,_wrap_Driver_CopyFiles,NULL)
  4667.   SWIG_ZEND_NAMED_FE(driver_register,_wrap_Driver_Register,NULL)
  4668.   SWIG_ZEND_NAMED_FE(driver_deregister,_wrap_Driver_Deregister,NULL)
  4669.   SWIG_ZEND_NAMED_FE(colorentry_c1_set,_wrap_ColorEntry_c1_set,NULL)
  4670. @@ -13323,6 +13492,8 @@
  4671.   SWIG_ZEND_NAMED_FE(band_getdefaulthistogram,_wrap_Band_GetDefaultHistogram,NULL)
  4672.   SWIG_ZEND_NAMED_FE(band_setdefaulthistogram,_wrap_Band_SetDefaultHistogram,NULL)
  4673.   SWIG_ZEND_NAMED_FE(band_hasarbitraryoverviews,_wrap_Band_HasArbitraryOverviews,NULL)
  4674. + SWIG_ZEND_NAMED_FE(band_getcategorynames,_wrap_Band_GetCategoryNames,NULL)
  4675. + SWIG_ZEND_NAMED_FE(band_setcategorynames,_wrap_Band_SetCategoryNames,NULL)
  4676.   SWIG_ZEND_NAMED_FE(new_colortable,_wrap_new_ColorTable,NULL)
  4677.   SWIG_ZEND_NAMED_FE(colortable_c_clone,_wrap_ColorTable_c_Clone,NULL)
  4678.   SWIG_ZEND_NAMED_FE(colortable_getpaletteinterpretation,_wrap_ColorTable_GetPaletteInterpretation,NULL)
  4679. @@ -13670,6 +13841,11 @@
  4680.    SWIG_php_minit {
  4681.      SWIG_InitializeModule(0);
  4682.  
  4683. +
  4684. +  if (GDALGetDriverCount() == 0 ) {
  4685. +    GDALAllRegister();
  4686. +  }
  4687. +
  4688.  /* oinit subsection */
  4689.  ZEND_INIT_MODULE_GLOBALS(gdal, gdal_init_globals, gdal_destroy_globals);
  4690.  
  4691. Index: swig/php/ogr_wrap.cpp
  4692. ===================================================================
  4693. --- swig/php/ogr_wrap.cpp   (revision 21891)
  4694. +++ swig/php/ogr_wrap.cpp   (working copy)
  4695. @@ -1,6 +1,6 @@
  4696.  /* ----------------------------------------------------------------------------
  4697.   * This file was automatically generated by SWIG (http://www.swig.org).
  4698. - * Version 1.3.40
  4699. + * Version 2.0.1
  4700.   *
  4701.   * This file is not intended to be easily readable and contains a number of
  4702.   * coding conventions designed to improve portability and efficiency. Do not make
  4703. @@ -196,7 +196,7 @@
  4704.  /*
  4705.     Flags/methods for returning states.
  4706.    
  4707. -   The SWIG conversion methods, as ConvertPtr, return and integer
  4708. +   The SWIG conversion methods, as ConvertPtr, return an integer
  4709.     that tells if the conversion was successful or not. And if not,
  4710.     an error code can be returned (see swigerrors.swg for the codes).
  4711.    
  4712. @@ -728,9 +728,6 @@
  4713.  #endif
  4714.  
  4715.  /* -----------------------------------------------------------------------------
  4716. - * See the LICENSE file for information on copyright, usage and redistribution
  4717. - * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  4718. - *
  4719.   * phprun.swg
  4720.   *
  4721.   * PHP runtime library
  4722. @@ -741,6 +738,7 @@
  4723.  #endif
  4724.  #include "zend.h"
  4725.  #include "zend_API.h"
  4726. +#include "zend_exceptions.h"
  4727.  #include "php.h"
  4728.  #include "ext/standard/php_string.h"
  4729.  
  4730. @@ -755,17 +753,17 @@
  4731.  #endif
  4732.  
  4733.  #ifndef Z_SET_ISREF_P
  4734. -// For PHP < 5.3
  4735. +/* For PHP < 5.3 */
  4736.  # define Z_SET_ISREF_P(z) (z)->is_ref = 1
  4737.  #endif
  4738.  #ifndef Z_SET_REFCOUNT_P
  4739. -// For PHP < 5.3
  4740. +/* For PHP < 5.3 */
  4741.  # define Z_SET_REFCOUNT_P(z, rc) (z)->refcount = (rc)
  4742.  #endif
  4743.  
  4744.  #define SWIG_LONG_CONSTANT(N, V) zend_register_long_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  4745.  #define SWIG_DOUBLE_CONSTANT(N, V) zend_register_double_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  4746. -#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), V, strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  4747. +#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  4748.  #define SWIG_CHAR_CONSTANT(N, V) do {\
  4749.      static char swig_char = (V);\
  4750.      zend_register_stringl_constant((char*)#N, sizeof(#N), &swig_char, 1, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);\
  4751. @@ -1155,8 +1153,8 @@
  4752.  typedef void OGRFieldDefnShadow;
  4753.  #endif
  4754.  
  4755. -SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_CreateDataSource(OGRDriverShadow *self,char const *name,char **options=0){
  4756. -    OGRDataSourceShadow *ds = (OGRDataSourceShadow*) OGR_Dr_CreateDataSource( self, name, options);
  4757. +SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_CreateDataSource(OGRDriverShadow *self,char const *utf8_path,char **options=0){
  4758. +    OGRDataSourceShadow *ds = (OGRDataSourceShadow*) OGR_Dr_CreateDataSource( self, utf8_path, options);
  4759.      return ds;
  4760.    }
  4761.  SWIGINTERN OGRDataSourceShadow *OGRDriverShadow_CopyDataSource(OGRDriverShadow *self,OGRDataSourceShadow *copy_ds,char const *utf8_path,char **options=0){
  4762. @@ -1167,9 +1165,9 @@
  4763.      OGRDataSourceShadow* ds = (OGRDataSourceShadow*) OGR_Dr_Open(self, utf8_path, update);
  4764.      return ds;
  4765.    }
  4766. -SWIGINTERN int OGRDriverShadow_DeleteDataSource(OGRDriverShadow *self,char const *name){
  4767. +SWIGINTERN int OGRDriverShadow_DeleteDataSource(OGRDriverShadow *self,char const *utf8_path){
  4768.  
  4769. -    return OGR_Dr_DeleteDataSource( self, name );
  4770. +    return OGR_Dr_DeleteDataSource( self, utf8_path );
  4771.    }
  4772.  SWIGINTERN bool OGRDriverShadow_TestCapability(OGRDriverShadow *self,char const *cap){
  4773.      return (OGR_Dr_TestCapability(self, cap) > 0);
  4774. @@ -1205,23 +1203,29 @@
  4775.      return OGR_DS_DeleteLayer(self, index);
  4776.    }
  4777.  
  4778. -static char *
  4779. +
  4780. +#include "ogr_core.h"
  4781. +static char const *
  4782.  OGRErrMessages( int rc ) {
  4783.    switch( rc ) {
  4784. -  case 0:
  4785. -    return "OGR Error 0: None";
  4786. -  case 1:
  4787. -    return "OGR Error 1: Not enough data";
  4788. -  case 2:
  4789. -    return "OGR Error 2: Unsupported geometry type";
  4790. -  case 3:
  4791. -    return "OGR Error 3: Unsupported operation";
  4792. -  case 4:
  4793. -    return "OGR Error 4: Corrupt data";
  4794. -  case 5:
  4795. -    return "OGR Error 5: General Error";
  4796. -  case 6:
  4797. -    return "OGR Error 6: Unsupported SRS";
  4798. +  case OGRERR_NONE:
  4799. +    return "OGR Error: None";
  4800. +  case OGRERR_NOT_ENOUGH_DATA:
  4801. +    return "OGR Error: Not enough data to deserialize";
  4802. +  case OGRERR_NOT_ENOUGH_MEMORY:
  4803. +    return "OGR Error: Not enough memory";
  4804. +  case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
  4805. +    return "OGR Error: Unsupported geometry type";
  4806. +  case OGRERR_UNSUPPORTED_OPERATION:
  4807. +    return "OGR Error: Unsupported operation";
  4808. +  case OGRERR_CORRUPT_DATA:
  4809. +    return "OGR Error: Corrupt data";
  4810. +  case OGRERR_FAILURE:
  4811. +    return "OGR Error: General Error";
  4812. +  case OGRERR_UNSUPPORTED_SRS:
  4813. +    return "OGR Error: Unsupported SRS";
  4814. +  case OGRERR_INVALID_HANDLE:
  4815. +    return "OGR Error: Invalid handle";
  4816.    default:
  4817.      return "OGR Error: Unknown";
  4818.    }
  4819. @@ -1564,6 +1568,15 @@
  4820.  SWIGINTERN OGRErr OGRFeatureShadow_SetFrom(OGRFeatureShadow *self,OGRFeatureShadow *other,int forgiving=1){
  4821.      return OGR_F_SetFrom(self, other, forgiving);
  4822.    }
  4823. +SWIGINTERN OGRErr OGRFeatureShadow_SetFromWithMap(OGRFeatureShadow *self,OGRFeatureShadow *other,int forgiving,int nList,int *pList){
  4824. +    if (nList != OGR_F_GetFieldCount(other))
  4825. +    {
  4826. +        CPLError(CE_Failure, CPLE_AppDefined,
  4827. +                 "The size of map doesn't match with the field count of the source feature");
  4828. +        return OGRERR_FAILURE;
  4829. +    }
  4830. +    return OGR_F_SetFromWithMap(self, other, forgiving, pList);
  4831. +  }
  4832.  SWIGINTERN char const *OGRFeatureShadow_GetStyleString(OGRFeatureShadow *self){
  4833.      return (const char*) OGR_F_GetStyleString(self);
  4834.    }
  4835. @@ -1708,7 +1721,7 @@
  4836.  
  4837.    OGRGeometryShadow* CreateGeometryFromWkb( int len, char *bin_string,
  4838.                                              OSRSpatialReferenceShadow *reference=NULL ) {
  4839. -    OGRGeometryShadow *geom;
  4840. +    OGRGeometryH geom = NULL;
  4841.      OGRErr err = OGR_G_CreateFromWkb( (unsigned char *) bin_string,
  4842.                                        reference,
  4843.                                        &geom,
  4844. @@ -1724,7 +1737,7 @@
  4845.  
  4846.    OGRGeometryShadow* CreateGeometryFromWkt( char **val,
  4847.                                        OSRSpatialReferenceShadow *reference=NULL ) {
  4848. -    OGRGeometryShadow *geom;
  4849. +    OGRGeometryH geom = NULL;
  4850.      OGRErr err = OGR_G_CreateFromWkt(val,
  4851.                                        reference,
  4852.                                        &geom);
  4853. @@ -1768,7 +1781,7 @@
  4854.      return NULL;
  4855.    }
  4856.  
  4857. -  return hPolygon;
  4858. +  return (OGRGeometryShadow* )hPolygon;
  4859.    }
  4860.  
  4861.  
  4862. @@ -1778,7 +1791,7 @@
  4863.          double dfStartAngle, double dfEndAngle,
  4864.          double dfMaxAngleStepSizeDegrees ) {
  4865.    
  4866. -  return OGR_G_ApproximateArcAngles(
  4867. +  return (OGRGeometryShadow* )OGR_G_ApproximateArcAngles(
  4868.               dfCenterX, dfCenterY, dfZ,
  4869.               dfPrimaryRadius, dfSecondaryAxis, dfRotation,
  4870.               dfStartAngle, dfEndAngle, dfMaxAngleStepSizeDegrees );
  4871. @@ -1788,28 +1801,28 @@
  4872.  OGRGeometryShadow* ForceToPolygon( OGRGeometryShadow *geom_in ) {
  4873.   if (geom_in == NULL)
  4874.       return NULL;
  4875. - return OGR_G_ForceToPolygon( OGR_G_Clone(geom_in) );
  4876. + return (OGRGeometryShadow* )OGR_G_ForceToPolygon( OGR_G_Clone(geom_in) );
  4877.  }
  4878.  
  4879.  
  4880.  OGRGeometryShadow* ForceToMultiPolygon( OGRGeometryShadow *geom_in ) {
  4881.   if (geom_in == NULL)
  4882.       return NULL;
  4883. - return OGR_G_ForceToMultiPolygon( OGR_G_Clone(geom_in) );
  4884. + return (OGRGeometryShadow* )OGR_G_ForceToMultiPolygon( OGR_G_Clone(geom_in) );
  4885.  }
  4886.  
  4887.  
  4888.  OGRGeometryShadow* ForceToMultiPoint( OGRGeometryShadow *geom_in ) {
  4889.   if (geom_in == NULL)
  4890.       return NULL;
  4891. - return OGR_G_ForceToMultiPoint( OGR_G_Clone(geom_in) );
  4892. + return (OGRGeometryShadow* )OGR_G_ForceToMultiPoint( OGR_G_Clone(geom_in) );
  4893.  }
  4894.  
  4895.  
  4896.  OGRGeometryShadow* ForceToMultiLineString( OGRGeometryShadow *geom_in ) {
  4897.   if (geom_in == NULL)
  4898.       return NULL;
  4899. - return OGR_G_ForceToMultiLineString( OGR_G_Clone(geom_in) );
  4900. + return (OGRGeometryShadow* )OGR_G_ForceToMultiLineString( OGR_G_Clone(geom_in) );
  4901.  }
  4902.  
  4903.  SWIGINTERN void delete_OGRGeometryShadow(OGRGeometryShadow *self){
  4904. @@ -2062,9 +2075,9 @@
  4905.    }
  4906.  
  4907.  
  4908. -  OGRDataSourceShadow* Open( const char *filename, int update =0 ) {
  4909. +  OGRDataSourceShadow* Open( const char *utf8_path, int update =0 ) {
  4910.      CPLErrorReset();
  4911. -    OGRDataSourceShadow* ds = (OGRDataSourceShadow*)OGROpen(filename,update,NULL);
  4912. +    OGRDataSourceShadow* ds = (OGRDataSourceShadow*)OGROpen(utf8_path,update,NULL);
  4913.      if( CPLGetLastErrorType() == CE_Failure && ds != NULL )
  4914.      {
  4915.          CPLDebug( "SWIG",
  4916. @@ -2256,7 +2269,7 @@
  4917.    }
  4918.    return;
  4919.  fail:
  4920. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4921. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4922.  }
  4923.  
  4924.  
  4925. @@ -2281,7 +2294,7 @@
  4926.    }
  4927.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  4928.    
  4929. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4930. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4931.    if ((*args[1])->type==IS_NULL) {
  4932.      arg2 = (char *) 0;
  4933.    } else {
  4934. @@ -2305,11 +2318,6 @@
  4935.        //  }
  4936.      }
  4937.    }
  4938. -  {
  4939. -    if (!arg2) {
  4940. -      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
  4941. -    }
  4942. -  }
  4943.    result = (OGRDataSourceShadow *)OGRDriverShadow_CreateDataSource(arg1,(char const *)arg2,arg3);
  4944.    
  4945.    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_OGRDataSourceShadow, 1);
  4946. @@ -2324,7 +2332,7 @@
  4947.      /* %typemap(freearg) char **options */
  4948.      CSLDestroy( arg3 );
  4949.    }
  4950. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4951. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4952.  }
  4953.  
  4954.  
  4955. @@ -2355,7 +2363,7 @@
  4956.      }
  4957.    }
  4958.    
  4959. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4960. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4961.    if ((*args[2])->type==IS_NULL) {
  4962.      arg3 = (char *) 0;
  4963.    } else {
  4964. @@ -2393,7 +2401,7 @@
  4965.      /* %typemap(freearg) char **options */
  4966.      CSLDestroy( arg4 );
  4967.    }
  4968. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4969. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4970.  }
  4971.  
  4972.  
  4973. @@ -2418,7 +2426,7 @@
  4974.    }
  4975.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  4976.    
  4977. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  4978. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  4979.    if ((*args[1])->type==IS_NULL) {
  4980.      arg2 = (char *) 0;
  4981.    } else {
  4982. @@ -2428,7 +2436,7 @@
  4983.    /*@SWIG@*/;
  4984.    
  4985.    if(arg_count > 2) {
  4986. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  4987. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  4988.      convert_to_long_ex(args[2]);
  4989.      arg3 = (int) Z_LVAL_PP(args[2]);
  4990.      /*@SWIG@*/;
  4991. @@ -2440,7 +2448,7 @@
  4992.    
  4993.    return;
  4994.  fail:
  4995. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4996. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  4997.  }
  4998.  
  4999.  
  5000. @@ -2462,7 +2470,7 @@
  5001.    }
  5002.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5003.    
  5004. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5005. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5006.    if ((*args[1])->type==IS_NULL) {
  5007.      arg2 = (char *) 0;
  5008.    } else {
  5009. @@ -2471,18 +2479,13 @@
  5010.    }
  5011.    /*@SWIG@*/;
  5012.    
  5013. -  {
  5014. -    if (!arg2) {
  5015. -      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
  5016. -    }
  5017. -  }
  5018.    result = (int)OGRDriverShadow_DeleteDataSource(arg1,(char const *)arg2);
  5019.    {
  5020.      ZVAL_LONG(return_value,result);
  5021.    }
  5022.    return;
  5023.  fail:
  5024. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5025. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5026.  }
  5027.  
  5028.  
  5029. @@ -2504,7 +2507,7 @@
  5030.    }
  5031.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5032.    
  5033. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5034. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5035.    if ((*args[1])->type==IS_NULL) {
  5036.      arg2 = (char *) 0;
  5037.    } else {
  5038. @@ -2524,7 +2527,7 @@
  5039.    }
  5040.    return;
  5041.  fail:
  5042. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5043. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5044.  }
  5045.  
  5046.  
  5047. @@ -2554,7 +2557,7 @@
  5048.    }
  5049.    return;
  5050.  fail:
  5051. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5052. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5053.  }
  5054.  
  5055.  
  5056. @@ -2577,7 +2580,7 @@
  5057.    
  5058.    return;
  5059.  fail:
  5060. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5061. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5062.  }
  5063.  
  5064.  
  5065. @@ -2600,7 +2603,7 @@
  5066.    
  5067.    return;
  5068.  fail:
  5069. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5070. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5071.  }
  5072.  
  5073.  
  5074. @@ -2630,7 +2633,7 @@
  5075.    }
  5076.    return;
  5077.  fail:
  5078. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5079. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5080.  }
  5081.  
  5082.  
  5083. @@ -2649,7 +2652,7 @@
  5084.    delete_OGRDataSourceShadow(arg1);
  5085.    return;
  5086.  fail:
  5087. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5088. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5089.  }
  5090.  
  5091.  
  5092. @@ -2675,7 +2678,7 @@
  5093.    }
  5094.    return;
  5095.  fail:
  5096. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5097. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5098.  }
  5099.  
  5100.  
  5101. @@ -2701,7 +2704,7 @@
  5102.    }
  5103.    return;
  5104.  fail:
  5105. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5106. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5107.  }
  5108.  
  5109.  
  5110. @@ -2727,7 +2730,7 @@
  5111.    }
  5112.    return;
  5113.  fail:
  5114. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5115. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5116.  }
  5117.  
  5118.  
  5119. @@ -2753,7 +2756,7 @@
  5120.    
  5121.    return;
  5122.  fail:
  5123. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5124. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5125.  }
  5126.  
  5127.  
  5128. @@ -2783,7 +2786,7 @@
  5129.    }
  5130.    return;
  5131.  fail:
  5132. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5133. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5134.  }
  5135.  
  5136.  
  5137. @@ -2805,7 +2808,7 @@
  5138.    }
  5139.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5140.    
  5141. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5142. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5143.    convert_to_long_ex(args[1]);
  5144.    arg2 = (int) Z_LVAL_PP(args[1]);
  5145.    /*@SWIG@*/;
  5146. @@ -2819,11 +2822,13 @@
  5147.    }
  5148.    {
  5149.      /* %typemap(ret) OGRErr */
  5150. -    RETVAL_LONG(0);
  5151. +    if (result != 0) {
  5152. +      RETVAL_LONG(result);
  5153. +    }
  5154.    }
  5155.    return;
  5156.  fail:
  5157. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5158. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5159.  }
  5160.  
  5161.  
  5162. @@ -2850,7 +2855,7 @@
  5163.    }
  5164.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5165.    
  5166. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5167. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5168.    if ((*args[1])->type==IS_NULL) {
  5169.      arg2 = (char *) 0;
  5170.    } else {
  5171. @@ -2867,7 +2872,7 @@
  5172.      }
  5173.    }
  5174.    if(arg_count > 3) {
  5175. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5176. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5177.      convert_to_long_ex(args[3]);
  5178.      arg4 = (OGRwkbGeometryType) Z_LVAL_PP(args[3]);
  5179.      /*@SWIG@*/;
  5180. @@ -2907,7 +2912,7 @@
  5181.      /* %typemap(freearg) char **options */
  5182.      CSLDestroy( arg5 );
  5183.    }
  5184. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5185. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5186.  }
  5187.  
  5188.  
  5189. @@ -2938,7 +2943,7 @@
  5190.      }
  5191.    }
  5192.    
  5193. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5194. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5195.    if ((*args[2])->type==IS_NULL) {
  5196.      arg3 = (char *) 0;
  5197.    } else {
  5198. @@ -2981,7 +2986,7 @@
  5199.      /* %typemap(freearg) char **options */
  5200.      CSLDestroy( arg4 );
  5201.    }
  5202. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5203. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5204.  }
  5205.  
  5206.  
  5207. @@ -3005,7 +3010,7 @@
  5208.    }
  5209.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5210.    if(arg_count > 1) {
  5211. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5212. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5213.      convert_to_long_ex(args[1]);
  5214.      arg2 = (int) Z_LVAL_PP(args[1]);
  5215.      /*@SWIG@*/;
  5216. @@ -3017,7 +3022,7 @@
  5217.    
  5218.    return;
  5219.  fail:
  5220. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5221. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5222.  }
  5223.  
  5224.  
  5225. @@ -3039,7 +3044,7 @@
  5226.    }
  5227.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5228.    
  5229. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5230. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5231.    if ((*args[1])->type==IS_NULL) {
  5232.      arg2 = (char *) 0;
  5233.    } else {
  5234. @@ -3054,7 +3059,7 @@
  5235.    
  5236.    return;
  5237.  fail:
  5238. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5239. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5240.  }
  5241.  
  5242.  
  5243. @@ -3076,7 +3081,7 @@
  5244.    }
  5245.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5246.    
  5247. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5248. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5249.    if ((*args[1])->type==IS_NULL) {
  5250.      arg2 = (char *) 0;
  5251.    } else {
  5252. @@ -3096,7 +3101,7 @@
  5253.    }
  5254.    return;
  5255.  fail:
  5256. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5257. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5258.  }
  5259.  
  5260.  
  5261. @@ -3122,7 +3127,7 @@
  5262.    }
  5263.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5264.    
  5265. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5266. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5267.    if ((*args[1])->type==IS_NULL) {
  5268.      arg2 = (char *) 0;
  5269.    } else {
  5270. @@ -3139,7 +3144,7 @@
  5271.      }
  5272.    }
  5273.    if(arg_count > 3) {
  5274. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5275. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5276.      if ((*args[3])->type==IS_NULL) {
  5277.        arg4 = (char *) 0;
  5278.      } else {
  5279. @@ -3160,7 +3165,7 @@
  5280.    
  5281.    return;
  5282.  fail:
  5283. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5284. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5285.  }
  5286.  
  5287.  
  5288. @@ -3189,7 +3194,7 @@
  5289.    
  5290.    return;
  5291.  fail:
  5292. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5293. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5294.  }
  5295.  
  5296.  
  5297. @@ -3215,7 +3220,7 @@
  5298.    }
  5299.    return;
  5300.  fail:
  5301. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5302. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5303.  }
  5304.  
  5305.  
  5306. @@ -3244,7 +3249,7 @@
  5307.    
  5308.    return;
  5309.  fail:
  5310. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5311. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5312.  }
  5313.  
  5314.  
  5315. @@ -3268,25 +3273,25 @@
  5316.    }
  5317.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5318.    
  5319. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  5320. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  5321.    convert_to_double_ex(args[1]);
  5322.    arg2 = (double) Z_DVAL_PP(args[1]);
  5323.    /*@SWIG@*/;
  5324.    
  5325.    
  5326. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  5327. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  5328.    convert_to_double_ex(args[2]);
  5329.    arg3 = (double) Z_DVAL_PP(args[2]);
  5330.    /*@SWIG@*/;
  5331.    
  5332.    
  5333. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  5334. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  5335.    convert_to_double_ex(args[3]);
  5336.    arg4 = (double) Z_DVAL_PP(args[3]);
  5337.    /*@SWIG@*/;
  5338.    
  5339.    
  5340. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  5341. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  5342.    convert_to_double_ex(args[4]);
  5343.    arg5 = (double) Z_DVAL_PP(args[4]);
  5344.    /*@SWIG@*/;
  5345. @@ -3295,7 +3300,7 @@
  5346.    
  5347.    return;
  5348.  fail:
  5349. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5350. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5351.  }
  5352.  
  5353.  
  5354. @@ -3321,7 +3326,7 @@
  5355.    
  5356.    return;
  5357.  fail:
  5358. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5359. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5360.  }
  5361.  
  5362.  
  5363. @@ -3343,7 +3348,7 @@
  5364.    }
  5365.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5366.    
  5367. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5368. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5369.    if ((*args[1])->type==IS_NULL) {
  5370.      arg2 = (char *) 0;
  5371.    } else {
  5372. @@ -3361,11 +3366,13 @@
  5373.    }
  5374.    {
  5375.      /* %typemap(ret) OGRErr */
  5376. -    RETVAL_LONG(0);
  5377. +    if (result != 0) {
  5378. +      RETVAL_LONG(result);
  5379. +    }
  5380.    }
  5381.    return;
  5382.  fail:
  5383. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5384. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5385.  }
  5386.  
  5387.  
  5388. @@ -3388,7 +3395,7 @@
  5389.    
  5390.    return;
  5391.  fail:
  5392. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5393. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5394.  }
  5395.  
  5396.  
  5397. @@ -3418,7 +3425,7 @@
  5398.    }
  5399.    return;
  5400.  fail:
  5401. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5402. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5403.  }
  5404.  
  5405.  
  5406. @@ -3444,7 +3451,7 @@
  5407.    }
  5408.    return;
  5409.  fail:
  5410. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5411. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5412.  }
  5413.  
  5414.  
  5415. @@ -3474,7 +3481,7 @@
  5416.    }
  5417.    return;
  5418.  fail:
  5419. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5420. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5421.  }
  5422.  
  5423.  
  5424. @@ -3504,7 +3511,7 @@
  5425.    }
  5426.    return;
  5427.  fail:
  5428. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5429. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5430.  }
  5431.  
  5432.  
  5433. @@ -3526,7 +3533,7 @@
  5434.    }
  5435.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5436.    
  5437. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5438. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5439.    convert_to_long_ex(args[1]);
  5440.    arg2 = (long) Z_LVAL_PP(args[1]);
  5441.    /*@SWIG@*/;
  5442. @@ -3537,7 +3544,7 @@
  5443.    
  5444.    return;
  5445.  fail:
  5446. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5447. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5448.  }
  5449.  
  5450.  
  5451. @@ -3563,7 +3570,7 @@
  5452.    
  5453.    return;
  5454.  fail:
  5455. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5456. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5457.  }
  5458.  
  5459.  
  5460. @@ -3585,7 +3592,7 @@
  5461.    }
  5462.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5463.    
  5464. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5465. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5466.    convert_to_long_ex(args[1]);
  5467.    arg2 = (long) Z_LVAL_PP(args[1]);
  5468.    /*@SWIG@*/;
  5469. @@ -3599,11 +3606,13 @@
  5470.    }
  5471.    {
  5472.      /* %typemap(ret) OGRErr */
  5473. -    RETVAL_LONG(0);
  5474. +    if (result != 0) {
  5475. +      RETVAL_LONG(result);
  5476. +    }
  5477.    }
  5478.    return;
  5479.  fail:
  5480. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5481. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5482.  }
  5483.  
  5484.  
  5485. @@ -3643,11 +3652,13 @@
  5486.    }
  5487.    {
  5488.      /* %typemap(ret) OGRErr */
  5489. -    RETVAL_LONG(0);
  5490. +    if (result != 0) {
  5491. +      RETVAL_LONG(result);
  5492. +    }
  5493.    }
  5494.    return;
  5495.  fail:
  5496. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5497. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5498.  }
  5499.  
  5500.  
  5501. @@ -3687,11 +3698,13 @@
  5502.    }
  5503.    {
  5504.      /* %typemap(ret) OGRErr */
  5505. -    RETVAL_LONG(0);
  5506. +    if (result != 0) {
  5507. +      RETVAL_LONG(result);
  5508. +    }
  5509.    }
  5510.    return;
  5511.  fail:
  5512. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5513. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5514.  }
  5515.  
  5516.  
  5517. @@ -3713,7 +3726,7 @@
  5518.    }
  5519.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5520.    
  5521. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5522. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5523.    convert_to_long_ex(args[1]);
  5524.    arg2 = (long) Z_LVAL_PP(args[1]);
  5525.    /*@SWIG@*/;
  5526. @@ -3727,11 +3740,13 @@
  5527.    }
  5528.    {
  5529.      /* %typemap(ret) OGRErr */
  5530. -    RETVAL_LONG(0);
  5531. +    if (result != 0) {
  5532. +      RETVAL_LONG(result);
  5533. +    }
  5534.    }
  5535.    return;
  5536.  fail:
  5537. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5538. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5539.  }
  5540.  
  5541.  
  5542. @@ -3760,11 +3775,13 @@
  5543.    }
  5544.    {
  5545.      /* %typemap(ret) OGRErr */
  5546. -    RETVAL_LONG(0);
  5547. +    if (result != 0) {
  5548. +      RETVAL_LONG(result);
  5549. +    }
  5550.    }
  5551.    return;
  5552.  fail:
  5553. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5554. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5555.  }
  5556.  
  5557.  
  5558. @@ -3790,7 +3807,7 @@
  5559.    
  5560.    return;
  5561.  fail:
  5562. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5563. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5564.  }
  5565.  
  5566.  
  5567. @@ -3814,7 +3831,7 @@
  5568.    }
  5569.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5570.    if(arg_count > 1) {
  5571. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5572. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5573.      convert_to_long_ex(args[1]);
  5574.      arg2 = (int) Z_LVAL_PP(args[1]);
  5575.      /*@SWIG@*/;
  5576. @@ -3826,7 +3843,7 @@
  5577.    }
  5578.    return;
  5579.  fail:
  5580. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5581. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5582.  }
  5583.  
  5584.  
  5585. @@ -3856,7 +3873,7 @@
  5586.    }
  5587.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5588.    if(arg_count > 1) {
  5589. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5590. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5591.      convert_to_long_ex(args[1]);
  5592.      arg3 = (int) Z_LVAL_PP(args[1]);
  5593.      /*@SWIG@*/;
  5594. @@ -3876,11 +3893,13 @@
  5595.    }
  5596.    {
  5597.      /* %typemap(ret) OGRErr */
  5598. -    RETVAL_LONG(0);
  5599. +    if (result != 0) {
  5600. +      RETVAL_LONG(result);
  5601. +    }
  5602.    }
  5603.    return;
  5604.  fail:
  5605. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5606. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5607.  }
  5608.  
  5609.  
  5610. @@ -3902,7 +3921,7 @@
  5611.    }
  5612.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5613.    
  5614. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5615. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5616.    if ((*args[1])->type==IS_NULL) {
  5617.      arg2 = (char *) 0;
  5618.    } else {
  5619. @@ -3922,7 +3941,7 @@
  5620.    }
  5621.    return;
  5622.  fail:
  5623. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5624. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5625.  }
  5626.  
  5627.  
  5628. @@ -3952,7 +3971,7 @@
  5629.      }
  5630.    }
  5631.    if(arg_count > 2) {
  5632. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5633. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5634.      convert_to_long_ex(args[2]);
  5635.      arg3 = (int) Z_LVAL_PP(args[2]);
  5636.      /*@SWIG@*/;
  5637. @@ -3972,11 +3991,13 @@
  5638.    }
  5639.    {
  5640.      /* %typemap(ret) OGRErr */
  5641. -    RETVAL_LONG(0);
  5642. +    if (result != 0) {
  5643. +      RETVAL_LONG(result);
  5644. +    }
  5645.    }
  5646.    return;
  5647.  fail:
  5648. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5649. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5650.  }
  5651.  
  5652.  
  5653. @@ -4005,11 +4026,13 @@
  5654.    }
  5655.    {
  5656.      /* %typemap(ret) OGRErr */
  5657. -    RETVAL_LONG(0);
  5658. +    if (result != 0) {
  5659. +      RETVAL_LONG(result);
  5660. +    }
  5661.    }
  5662.    return;
  5663.  fail:
  5664. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5665. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5666.  }
  5667.  
  5668.  
  5669. @@ -4038,11 +4061,13 @@
  5670.    }
  5671.    {
  5672.      /* %typemap(ret) OGRErr */
  5673. -    RETVAL_LONG(0);
  5674. +    if (result != 0) {
  5675. +      RETVAL_LONG(result);
  5676. +    }
  5677.    }
  5678.    return;
  5679.  fail:
  5680. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5681. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5682.  }
  5683.  
  5684.  
  5685. @@ -4071,11 +4096,13 @@
  5686.    }
  5687.    {
  5688.      /* %typemap(ret) OGRErr */
  5689. -    RETVAL_LONG(0);
  5690. +    if (result != 0) {
  5691. +      RETVAL_LONG(result);
  5692. +    }
  5693.    }
  5694.    return;
  5695.  fail:
  5696. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5697. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5698.  }
  5699.  
  5700.  
  5701. @@ -4101,7 +4128,7 @@
  5702.    
  5703.    return;
  5704.  fail:
  5705. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5706. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5707.  }
  5708.  
  5709.  
  5710. @@ -4128,7 +4155,7 @@
  5711.    }
  5712.    return;
  5713.  fail:
  5714. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5715. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5716.  }
  5717.  
  5718.  
  5719. @@ -4175,7 +4202,9 @@
  5720.    }
  5721.    {
  5722.      /* %typemap(ret) OGRErr */
  5723. -    RETVAL_LONG(0);
  5724. +    if (result != 0) {
  5725. +      RETVAL_LONG(result);
  5726. +    }
  5727.    }
  5728.    return;
  5729.  fail:
  5730. @@ -4183,7 +4212,7 @@
  5731.      /* %typemap(freearg) char **options */
  5732.      CSLDestroy( arg2 );
  5733.    }
  5734. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5735. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5736.  }
  5737.  
  5738.  
  5739. @@ -4202,7 +4231,7 @@
  5740.    delete_OGRFeatureShadow(arg1);
  5741.    return;
  5742.  fail:
  5743. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5744. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5745.  }
  5746.  
  5747.  
  5748. @@ -4232,7 +4261,7 @@
  5749.    
  5750.    return;
  5751.  fail:
  5752. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5753. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5754.  }
  5755.  
  5756.  
  5757. @@ -4258,7 +4287,7 @@
  5758.    
  5759.    return;
  5760.  fail:
  5761. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5762. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5763.  }
  5764.  
  5765.  
  5766. @@ -4293,11 +4322,13 @@
  5767.    }
  5768.    {
  5769.      /* %typemap(ret) OGRErr */
  5770. -    RETVAL_LONG(0);
  5771. +    if (result != 0) {
  5772. +      RETVAL_LONG(result);
  5773. +    }
  5774.    }
  5775.    return;
  5776.  fail:
  5777. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5778. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5779.  }
  5780.  
  5781.  
  5782. @@ -4332,11 +4363,13 @@
  5783.    }
  5784.    {
  5785.      /* %typemap(ret) OGRErr */
  5786. -    RETVAL_LONG(0);
  5787. +    if (result != 0) {
  5788. +      RETVAL_LONG(result);
  5789. +    }
  5790.    }
  5791.    return;
  5792.  fail:
  5793. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5794. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5795.  }
  5796.  
  5797.  
  5798. @@ -4362,7 +4395,7 @@
  5799.    
  5800.    return;
  5801.  fail:
  5802. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5803. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5804.  }
  5805.  
  5806.  
  5807. @@ -4388,7 +4421,7 @@
  5808.    
  5809.    return;
  5810.  fail:
  5811. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5812. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5813.  }
  5814.  
  5815.  
  5816. @@ -4425,7 +4458,7 @@
  5817.    }
  5818.    return;
  5819.  fail:
  5820. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5821. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5822.  }
  5823.  
  5824.  
  5825. @@ -4451,7 +4484,7 @@
  5826.    }
  5827.    return;
  5828.  fail:
  5829. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5830. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5831.  }
  5832.  
  5833.  
  5834. @@ -4473,7 +4506,7 @@
  5835.    }
  5836.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5837.    
  5838. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5839. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5840.    convert_to_long_ex(args[1]);
  5841.    arg2 = (int) Z_LVAL_PP(args[1]);
  5842.    /*@SWIG@*/;
  5843. @@ -4484,7 +4517,7 @@
  5844.    
  5845.    return;
  5846.  fail:
  5847. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5848. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5849.  }
  5850.  
  5851.  
  5852. @@ -4506,7 +4539,7 @@
  5853.    }
  5854.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5855.    
  5856. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5857. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5858.    if ((*args[1])->type==IS_NULL) {
  5859.      arg2 = (char *) 0;
  5860.    } else {
  5861. @@ -4526,7 +4559,7 @@
  5862.    
  5863.    return;
  5864.  fail:
  5865. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5866. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5867.  }
  5868.  
  5869.  
  5870. @@ -4587,7 +4620,7 @@
  5871.    }
  5872.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5873.    
  5874. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5875. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5876.    convert_to_long_ex(args[1]);
  5877.    arg2 = (int) Z_LVAL_PP(args[1]);
  5878.    /*@SWIG@*/;
  5879. @@ -4602,7 +4635,7 @@
  5880.    }
  5881.    return;
  5882.  fail:
  5883. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5884. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5885.  }
  5886.  
  5887.  
  5888. @@ -4624,7 +4657,7 @@
  5889.    }
  5890.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5891.    
  5892. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5893. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5894.    if ((*args[1])->type==IS_NULL) {
  5895.      arg2 = (char *) 0;
  5896.    } else {
  5897. @@ -4648,7 +4681,7 @@
  5898.    }
  5899.    return;
  5900.  fail:
  5901. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5902. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5903.  }
  5904.  
  5905.  
  5906. @@ -4709,7 +4742,7 @@
  5907.    }
  5908.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5909.    
  5910. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5911. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5912.    convert_to_long_ex(args[1]);
  5913.    arg2 = (int) Z_LVAL_PP(args[1]);
  5914.    /*@SWIG@*/;
  5915. @@ -4720,7 +4753,7 @@
  5916.    }
  5917.    return;
  5918.  fail:
  5919. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5920. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5921.  }
  5922.  
  5923.  
  5924. @@ -4742,7 +4775,7 @@
  5925.    }
  5926.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5927.    
  5928. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5929. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5930.    if ((*args[1])->type==IS_NULL) {
  5931.      arg2 = (char *) 0;
  5932.    } else {
  5933. @@ -4762,7 +4795,7 @@
  5934.    }
  5935.    return;
  5936.  fail:
  5937. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5938. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5939.  }
  5940.  
  5941.  
  5942. @@ -4823,7 +4856,7 @@
  5943.    }
  5944.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5945.    
  5946. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5947. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5948.    convert_to_long_ex(args[1]);
  5949.    arg2 = (int) Z_LVAL_PP(args[1]);
  5950.    /*@SWIG@*/;
  5951. @@ -4834,7 +4867,7 @@
  5952.    }
  5953.    return;
  5954.  fail:
  5955. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5956. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5957.  }
  5958.  
  5959.  
  5960. @@ -4856,7 +4889,7 @@
  5961.    }
  5962.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5963.    
  5964. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  5965. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  5966.    if ((*args[1])->type==IS_NULL) {
  5967.      arg2 = (char *) 0;
  5968.    } else {
  5969. @@ -4876,7 +4909,7 @@
  5970.    }
  5971.    return;
  5972.  fail:
  5973. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5974. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5975.  }
  5976.  
  5977.  
  5978. @@ -4957,7 +4990,7 @@
  5979.    }
  5980.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5981.    
  5982. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  5983. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  5984.    convert_to_long_ex(args[1]);
  5985.    arg2 = (int) Z_LVAL_PP(args[1]);
  5986.    /*@SWIG@*/;
  5987. @@ -5008,7 +5041,7 @@
  5988.    }
  5989.    return;
  5990.  fail:
  5991. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5992. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  5993.  }
  5994.  
  5995.  
  5996. @@ -5031,7 +5064,7 @@
  5997.    }
  5998.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  5999.    
  6000. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6001. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6002.    convert_to_long_ex(args[1]);
  6003.    arg2 = (int) Z_LVAL_PP(args[1]);
  6004.    /*@SWIG@*/;
  6005. @@ -5050,7 +5083,7 @@
  6006.    
  6007.    return;
  6008.  fail:
  6009. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6010. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6011.  }
  6012.  
  6013.  
  6014. @@ -5073,7 +5106,7 @@
  6015.    }
  6016.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6017.    
  6018. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6019. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6020.    convert_to_long_ex(args[1]);
  6021.    arg2 = (int) Z_LVAL_PP(args[1]);
  6022.    /*@SWIG@*/;
  6023. @@ -5092,7 +5125,7 @@
  6024.    
  6025.    return;
  6026.  fail:
  6027. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6028. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6029.  }
  6030.  
  6031.  
  6032. @@ -5114,7 +5147,7 @@
  6033.    }
  6034.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6035.    
  6036. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6037. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6038.    convert_to_long_ex(args[1]);
  6039.    arg2 = (int) Z_LVAL_PP(args[1]);
  6040.    /*@SWIG@*/;
  6041. @@ -5128,7 +5161,7 @@
  6042.    
  6043.    return;
  6044.  fail:
  6045. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6046. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6047.  }
  6048.  
  6049.  
  6050. @@ -5150,7 +5183,7 @@
  6051.    }
  6052.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6053.    
  6054. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6055. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6056.    convert_to_long_ex(args[1]);
  6057.    arg2 = (int) Z_LVAL_PP(args[1]);
  6058.    /*@SWIG@*/;
  6059. @@ -5161,7 +5194,7 @@
  6060.    }
  6061.    return;
  6062.  fail:
  6063. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6064. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6065.  }
  6066.  
  6067.  
  6068. @@ -5183,7 +5216,7 @@
  6069.    }
  6070.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6071.    
  6072. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6073. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6074.    if ((*args[1])->type==IS_NULL) {
  6075.      arg2 = (char *) 0;
  6076.    } else {
  6077. @@ -5203,7 +5236,7 @@
  6078.    }
  6079.    return;
  6080.  fail:
  6081. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6082. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6083.  }
  6084.  
  6085.  
  6086. @@ -5264,7 +5297,7 @@
  6087.    }
  6088.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6089.    
  6090. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6091. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6092.    if ((*args[1])->type==IS_NULL) {
  6093.      arg2 = (char *) 0;
  6094.    } else {
  6095. @@ -5284,7 +5317,7 @@
  6096.    }
  6097.    return;
  6098.  fail:
  6099. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6100. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6101.  }
  6102.  
  6103.  
  6104. @@ -5310,7 +5343,7 @@
  6105.    }
  6106.    return;
  6107.  fail:
  6108. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6109. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6110.  }
  6111.  
  6112.  
  6113. @@ -5332,7 +5365,7 @@
  6114.    }
  6115.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6116.    
  6117. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6118. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6119.    convert_to_long_ex(args[1]);
  6120.    arg2 = (int) Z_LVAL_PP(args[1]);
  6121.    /*@SWIG@*/;
  6122. @@ -5346,11 +5379,13 @@
  6123.    }
  6124.    {
  6125.      /* %typemap(ret) OGRErr */
  6126. -    RETVAL_LONG(0);
  6127. +    if (result != 0) {
  6128. +      RETVAL_LONG(result);
  6129. +    }
  6130.    }
  6131.    return;
  6132.  fail:
  6133. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6134. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6135.  }
  6136.  
  6137.  
  6138. @@ -5373,7 +5408,7 @@
  6139.    
  6140.    return;
  6141.  fail:
  6142. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6143. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6144.  }
  6145.  
  6146.  
  6147. @@ -5394,7 +5429,7 @@
  6148.    }
  6149.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6150.    
  6151. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6152. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6153.    convert_to_long_ex(args[1]);
  6154.    arg2 = (int) Z_LVAL_PP(args[1]);
  6155.    /*@SWIG@*/;
  6156. @@ -5403,7 +5438,7 @@
  6157.    
  6158.    return;
  6159.  fail:
  6160. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6161. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6162.  }
  6163.  
  6164.  
  6165. @@ -5424,7 +5459,7 @@
  6166.    }
  6167.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6168.    
  6169. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6170. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6171.    if ((*args[1])->type==IS_NULL) {
  6172.      arg2 = (char *) 0;
  6173.    } else {
  6174. @@ -5442,7 +5477,7 @@
  6175.    
  6176.    return;
  6177.  fail:
  6178. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6179. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6180.  }
  6181.  
  6182.  
  6183. @@ -5503,7 +5538,7 @@
  6184.    }
  6185.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6186.    
  6187. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6188. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6189.    convert_to_long_ex(args[1]);
  6190.    arg2 = (int) Z_LVAL_PP(args[1]);
  6191.    /*@SWIG@*/;
  6192. @@ -5517,7 +5552,7 @@
  6193.    
  6194.    return;
  6195.  fail:
  6196. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6197. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6198.  }
  6199.  
  6200.  
  6201. @@ -5539,7 +5574,7 @@
  6202.    }
  6203.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6204.    
  6205. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6206. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6207.    if ((*args[1])->type==IS_NULL) {
  6208.      arg2 = (char *) 0;
  6209.    } else {
  6210. @@ -5562,7 +5597,7 @@
  6211.    
  6212.    return;
  6213.  fail:
  6214. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6215. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6216.  }
  6217.  
  6218.  
  6219. @@ -5584,13 +5619,13 @@
  6220.    }
  6221.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6222.    
  6223. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6224. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6225.    convert_to_long_ex(args[1]);
  6226.    arg2 = (int) Z_LVAL_PP(args[1]);
  6227.    /*@SWIG@*/;
  6228.    
  6229.    
  6230. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6231. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6232.    convert_to_long_ex(args[2]);
  6233.    arg3 = (int) Z_LVAL_PP(args[2]);
  6234.    /*@SWIG@*/;
  6235. @@ -5599,7 +5634,7 @@
  6236.    
  6237.    return;
  6238.  fail:
  6239. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6240. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6241.  }
  6242.  
  6243.  
  6244. @@ -5621,7 +5656,7 @@
  6245.    }
  6246.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6247.    
  6248. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6249. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6250.    if ((*args[1])->type==IS_NULL) {
  6251.      arg2 = (char *) 0;
  6252.    } else {
  6253. @@ -5631,7 +5666,7 @@
  6254.    /*@SWIG@*/;
  6255.    
  6256.    
  6257. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6258. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6259.    convert_to_long_ex(args[2]);
  6260.    arg3 = (int) Z_LVAL_PP(args[2]);
  6261.    /*@SWIG@*/;
  6262. @@ -5645,7 +5680,7 @@
  6263.    
  6264.    return;
  6265.  fail:
  6266. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6267. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6268.  }
  6269.  
  6270.  
  6271. @@ -5667,13 +5702,13 @@
  6272.    }
  6273.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6274.    
  6275. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6276. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6277.    convert_to_long_ex(args[1]);
  6278.    arg2 = (int) Z_LVAL_PP(args[1]);
  6279.    /*@SWIG@*/;
  6280.    
  6281.    
  6282. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  6283. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  6284.    convert_to_double_ex(args[2]);
  6285.    arg3 = (double) Z_DVAL_PP(args[2]);
  6286.    /*@SWIG@*/;
  6287. @@ -5682,7 +5717,7 @@
  6288.    
  6289.    return;
  6290.  fail:
  6291. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6292. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6293.  }
  6294.  
  6295.  
  6296. @@ -5704,7 +5739,7 @@
  6297.    }
  6298.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6299.    
  6300. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6301. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6302.    if ((*args[1])->type==IS_NULL) {
  6303.      arg2 = (char *) 0;
  6304.    } else {
  6305. @@ -5714,7 +5749,7 @@
  6306.    /*@SWIG@*/;
  6307.    
  6308.    
  6309. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  6310. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  6311.    convert_to_double_ex(args[2]);
  6312.    arg3 = (double) Z_DVAL_PP(args[2]);
  6313.    /*@SWIG@*/;
  6314. @@ -5728,7 +5763,7 @@
  6315.    
  6316.    return;
  6317.  fail:
  6318. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6319. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6320.  }
  6321.  
  6322.  
  6323. @@ -5756,49 +5791,49 @@
  6324.    }
  6325.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6326.    
  6327. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6328. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6329.    convert_to_long_ex(args[1]);
  6330.    arg2 = (int) Z_LVAL_PP(args[1]);
  6331.    /*@SWIG@*/;
  6332.    
  6333.    
  6334. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6335. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6336.    convert_to_long_ex(args[2]);
  6337.    arg3 = (int) Z_LVAL_PP(args[2]);
  6338.    /*@SWIG@*/;
  6339.    
  6340.    
  6341. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6342. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6343.    convert_to_long_ex(args[3]);
  6344.    arg4 = (int) Z_LVAL_PP(args[3]);
  6345.    /*@SWIG@*/;
  6346.    
  6347.    
  6348. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6349. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6350.    convert_to_long_ex(args[4]);
  6351.    arg5 = (int) Z_LVAL_PP(args[4]);
  6352.    /*@SWIG@*/;
  6353.    
  6354.    
  6355. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6356. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6357.    convert_to_long_ex(args[5]);
  6358.    arg6 = (int) Z_LVAL_PP(args[5]);
  6359.    /*@SWIG@*/;
  6360.    
  6361.    
  6362. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6363. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6364.    convert_to_long_ex(args[6]);
  6365.    arg7 = (int) Z_LVAL_PP(args[6]);
  6366.    /*@SWIG@*/;
  6367.    
  6368.    
  6369. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6370. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6371.    convert_to_long_ex(args[7]);
  6372.    arg8 = (int) Z_LVAL_PP(args[7]);
  6373.    /*@SWIG@*/;
  6374.    
  6375.    
  6376. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6377. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6378.    convert_to_long_ex(args[8]);
  6379.    arg9 = (int) Z_LVAL_PP(args[8]);
  6380.    /*@SWIG@*/;
  6381. @@ -5807,7 +5842,7 @@
  6382.    
  6383.    return;
  6384.  fail:
  6385. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6386. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6387.  }
  6388.  
  6389.  
  6390. @@ -5835,7 +5870,7 @@
  6391.    }
  6392.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6393.    
  6394. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6395. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6396.    if ((*args[1])->type==IS_NULL) {
  6397.      arg2 = (char *) 0;
  6398.    } else {
  6399. @@ -5845,43 +5880,43 @@
  6400.    /*@SWIG@*/;
  6401.    
  6402.    
  6403. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6404. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6405.    convert_to_long_ex(args[2]);
  6406.    arg3 = (int) Z_LVAL_PP(args[2]);
  6407.    /*@SWIG@*/;
  6408.    
  6409.    
  6410. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6411. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6412.    convert_to_long_ex(args[3]);
  6413.    arg4 = (int) Z_LVAL_PP(args[3]);
  6414.    /*@SWIG@*/;
  6415.    
  6416.    
  6417. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6418. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6419.    convert_to_long_ex(args[4]);
  6420.    arg5 = (int) Z_LVAL_PP(args[4]);
  6421.    /*@SWIG@*/;
  6422.    
  6423.    
  6424. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6425. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6426.    convert_to_long_ex(args[5]);
  6427.    arg6 = (int) Z_LVAL_PP(args[5]);
  6428.    /*@SWIG@*/;
  6429.    
  6430.    
  6431. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6432. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6433.    convert_to_long_ex(args[6]);
  6434.    arg7 = (int) Z_LVAL_PP(args[6]);
  6435.    /*@SWIG@*/;
  6436.    
  6437.    
  6438. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6439. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6440.    convert_to_long_ex(args[7]);
  6441.    arg8 = (int) Z_LVAL_PP(args[7]);
  6442.    /*@SWIG@*/;
  6443.    
  6444.    
  6445. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6446. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6447.    convert_to_long_ex(args[8]);
  6448.    arg9 = (int) Z_LVAL_PP(args[8]);
  6449.    /*@SWIG@*/;
  6450. @@ -5895,7 +5930,7 @@
  6451.    
  6452.    return;
  6453.  fail:
  6454. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6455. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6456.  }
  6457.  
  6458.  
  6459. @@ -6101,7 +6136,7 @@
  6460.    }
  6461.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6462.    
  6463. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6464. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6465.    convert_to_long_ex(args[1]);
  6466.    arg2 = (int) Z_LVAL_PP(args[1]);
  6467.    /*@SWIG@*/;
  6468. @@ -6139,7 +6174,7 @@
  6469.        free((void*) arg4);
  6470.      }
  6471.    }
  6472. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6473. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6474.  }
  6475.  
  6476.  
  6477. @@ -6162,13 +6197,13 @@
  6478.    }
  6479.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6480.    
  6481. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6482. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6483.    convert_to_long_ex(args[1]);
  6484.    arg2 = (int) Z_LVAL_PP(args[1]);
  6485.    /*@SWIG@*/;
  6486.    
  6487.    
  6488. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6489. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6490.    convert_to_long_ex(args[2]);
  6491.    arg3 = (int) Z_LVAL_PP(args[2]);
  6492.    /*@SWIG@*/;
  6493. @@ -6182,7 +6217,7 @@
  6494.    
  6495.    return;
  6496.  fail:
  6497. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6498. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6499.  }
  6500.  
  6501.  
  6502. @@ -6204,7 +6239,7 @@
  6503.    }
  6504.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6505.    
  6506. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6507. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6508.    convert_to_long_ex(args[1]);
  6509.    arg2 = (int) Z_LVAL_PP(args[1]);
  6510.    /*@SWIG@*/;
  6511. @@ -6234,7 +6269,7 @@
  6512.      /* %typemap(freearg) char **options */
  6513.      CSLDestroy( arg3 );
  6514.    }
  6515. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6516. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6517.  }
  6518.  
  6519.  
  6520. @@ -6264,7 +6299,7 @@
  6521.      }
  6522.    }
  6523.    if(arg_count > 2) {
  6524. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6525. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6526.      convert_to_long_ex(args[2]);
  6527.      arg3 = (int) Z_LVAL_PP(args[2]);
  6528.      /*@SWIG@*/;
  6529. @@ -6284,14 +6319,100 @@
  6530.    }
  6531.    {
  6532.      /* %typemap(ret) OGRErr */
  6533. -    RETVAL_LONG(0);
  6534. +    if (result != 0) {
  6535. +      RETVAL_LONG(result);
  6536. +    }
  6537.    }
  6538.    return;
  6539.  fail:
  6540. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6541. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6542.  }
  6543.  
  6544.  
  6545. +ZEND_NAMED_FUNCTION(_wrap_Feature_SetFromWithMap) {
  6546. +  OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
  6547. +  OGRFeatureShadow *arg2 = (OGRFeatureShadow *) 0 ;
  6548. +  int arg3 ;
  6549. +  int arg4 ;
  6550. +  int *arg5 = (int *) 0 ;
  6551. +  zval **args[4];
  6552. +  OGRErr result;
  6553. +  
  6554. +  SWIG_ResetError();
  6555. +  if(ZEND_NUM_ARGS() != 4 || zend_get_parameters_array_ex(4, args) != SUCCESS) {
  6556. +    WRONG_PARAM_COUNT;
  6557. +  }
  6558. +  
  6559. +  {
  6560. +    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_OGRFeatureShadow, 0) < 0) {
  6561. +      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of Feature_SetFromWithMap. Expected SWIGTYPE_p_OGRFeatureShadow");
  6562. +    }
  6563. +  }
  6564. +  if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6565. +  {
  6566. +    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_OGRFeatureShadow, 0) < 0) {
  6567. +      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of Feature_SetFromWithMap. Expected SWIGTYPE_p_OGRFeatureShadow");
  6568. +    }
  6569. +  }
  6570. +  
  6571. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6572. +  convert_to_long_ex(args[2]);
  6573. +  arg3 = (int) Z_LVAL_PP(args[2]);
  6574. +  /*@SWIG@*/;
  6575. +  
  6576. +  {
  6577. +    /* %typemap(in,numinputs=1) (int nList, int* pList)*/
  6578. +    zend_error(E_ERROR,"Typemap (in,numinputs=1) (int nList, int*pList) not properly defined");
  6579. +    /* check if is List */
  6580. +    //  if ( !PySequence_Check(args[3]) ) {
  6581. +    //    PyErr_SetString(PyExc_TypeError, "not a sequence");
  6582. +    //    SWIG_fail;
  6583. +    //  }
  6584. +    //  arg4 = PySequence_Size(args[3]);
  6585. +    //  arg5 = (int*) malloc(arg4*sizeof(int));
  6586. +    //  for( int i = 0; i<arg4; i++ ) {
  6587. +    //    PyObject *o = PySequence_GetItem(args[3],i);
  6588. +    //    if ( !PyArg_Parse(o,"i",&arg5[i]) ) {
  6589. +    //      SWIG_fail;
  6590. +    //    }
  6591. +    //  }
  6592. +  }
  6593. +  {
  6594. +    if (!arg2) {
  6595. +      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
  6596. +    }
  6597. +  }
  6598. +  result = (OGRErr)OGRFeatureShadow_SetFromWithMap(arg1,arg2,arg3,arg4,arg5);
  6599. +  {
  6600. +    /* %typemap(out) OGRErr */
  6601. +    if (result != 0 ) {
  6602. +      SWIG_PHP_Error(E_ERROR,OGRErrMessages(result));
  6603. +    }
  6604. +  }
  6605. +  {
  6606. +    /* %typemap(freearg) (int nList, int* pList) */
  6607. +    if (arg5) {
  6608. +      free((void*) arg5);
  6609. +    }
  6610. +  }
  6611. +  {
  6612. +    /* %typemap(ret) OGRErr */
  6613. +    if (result != 0) {
  6614. +      RETVAL_LONG(result);
  6615. +    }
  6616. +  }
  6617. +  return;
  6618. +fail:
  6619. +  {
  6620. +    /* %typemap(freearg) (int nList, int* pList) */
  6621. +    if (arg5) {
  6622. +      free((void*) arg5);
  6623. +    }
  6624. +  }
  6625. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6626. +}
  6627. +
  6628. +
  6629.  ZEND_NAMED_FUNCTION(_wrap_Feature_GetStyleString) {
  6630.    OGRFeatureShadow *arg1 = (OGRFeatureShadow *) 0 ;
  6631.    zval **args[1];
  6632. @@ -6318,7 +6439,7 @@
  6633.    }
  6634.    return;
  6635.  fail:
  6636. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6637. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6638.  }
  6639.  
  6640.  
  6641. @@ -6339,7 +6460,7 @@
  6642.    }
  6643.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6644.    
  6645. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6646. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6647.    if ((*args[1])->type==IS_NULL) {
  6648.      arg2 = (char *) 0;
  6649.    } else {
  6650. @@ -6352,7 +6473,7 @@
  6651.    
  6652.    return;
  6653.  fail:
  6654. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6655. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6656.  }
  6657.  
  6658.  
  6659. @@ -6374,7 +6495,7 @@
  6660.    }
  6661.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6662.    
  6663. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6664. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6665.    convert_to_long_ex(args[1]);
  6666.    arg2 = (int) Z_LVAL_PP(args[1]);
  6667.    /*@SWIG@*/;
  6668. @@ -6385,7 +6506,7 @@
  6669.    }
  6670.    return;
  6671.  fail:
  6672. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6673. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6674.  }
  6675.  
  6676.  
  6677. @@ -6407,7 +6528,7 @@
  6678.    }
  6679.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6680.    
  6681. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6682. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6683.    if ((*args[1])->type==IS_NULL) {
  6684.      arg2 = (char *) 0;
  6685.    } else {
  6686. @@ -6427,7 +6548,7 @@
  6687.    }
  6688.    return;
  6689.  fail:
  6690. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6691. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6692.  }
  6693.  
  6694.  
  6695. @@ -6485,7 +6606,7 @@
  6696.    delete_OGRFeatureDefnShadow(arg1);
  6697.    return;
  6698.  fail:
  6699. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6700. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6701.  }
  6702.  
  6703.  
  6704. @@ -6502,7 +6623,7 @@
  6705.    WRONG_PARAM_COUNT;
  6706.    
  6707.    if(arg_count > 0) {
  6708. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6709. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6710.      if ((*args[0])->type==IS_NULL) {
  6711.        arg1 = (char *) 0;
  6712.      } else {
  6713. @@ -6518,7 +6639,7 @@
  6714.    
  6715.    return;
  6716.  fail:
  6717. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6718. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6719.  }
  6720.  
  6721.  
  6722. @@ -6548,7 +6669,7 @@
  6723.    }
  6724.    return;
  6725.  fail:
  6726. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6727. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6728.  }
  6729.  
  6730.  
  6731. @@ -6574,7 +6695,7 @@
  6732.    }
  6733.    return;
  6734.  fail:
  6735. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6736. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6737.  }
  6738.  
  6739.  
  6740. @@ -6596,7 +6717,7 @@
  6741.    }
  6742.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6743.    
  6744. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6745. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6746.    convert_to_long_ex(args[1]);
  6747.    arg2 = (int) Z_LVAL_PP(args[1]);
  6748.    /*@SWIG@*/;
  6749. @@ -6607,7 +6728,7 @@
  6750.    
  6751.    return;
  6752.  fail:
  6753. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6754. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6755.  }
  6756.  
  6757.  
  6758. @@ -6629,7 +6750,7 @@
  6759.    }
  6760.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6761.    
  6762. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6763. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6764.    if ((*args[1])->type==IS_NULL) {
  6765.      arg2 = (char *) 0;
  6766.    } else {
  6767. @@ -6649,7 +6770,7 @@
  6768.    }
  6769.    return;
  6770.  fail:
  6771. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6772. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6773.  }
  6774.  
  6775.  
  6776. @@ -6683,7 +6804,7 @@
  6777.    
  6778.    return;
  6779.  fail:
  6780. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6781. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6782.  }
  6783.  
  6784.  
  6785. @@ -6709,7 +6830,7 @@
  6786.    }
  6787.    return;
  6788.  fail:
  6789. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6790. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6791.  }
  6792.  
  6793.  
  6794. @@ -6730,7 +6851,7 @@
  6795.    }
  6796.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6797.    
  6798. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6799. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6800.    convert_to_long_ex(args[1]);
  6801.    arg2 = (OGRwkbGeometryType) Z_LVAL_PP(args[1]);
  6802.    /*@SWIG@*/;
  6803. @@ -6739,7 +6860,7 @@
  6804.    
  6805.    return;
  6806.  fail:
  6807. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6808. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6809.  }
  6810.  
  6811.  
  6812. @@ -6765,7 +6886,7 @@
  6813.    }
  6814.    return;
  6815.  fail:
  6816. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6817. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6818.  }
  6819.  
  6820.  
  6821. @@ -6791,7 +6912,7 @@
  6822.    }
  6823.    return;
  6824.  fail:
  6825. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6826. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6827.  }
  6828.  
  6829.  
  6830. @@ -6812,7 +6933,7 @@
  6831.    }
  6832.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6833.    
  6834. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6835. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6836.    convert_to_long_ex(args[1]);
  6837.    arg2 = (int) Z_LVAL_PP(args[1]);
  6838.    /*@SWIG@*/;
  6839. @@ -6821,7 +6942,7 @@
  6840.    
  6841.    return;
  6842.  fail:
  6843. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6844. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6845.  }
  6846.  
  6847.  
  6848. @@ -6847,7 +6968,7 @@
  6849.    }
  6850.    return;
  6851.  fail:
  6852. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6853. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6854.  }
  6855.  
  6856.  
  6857. @@ -6868,7 +6989,7 @@
  6858.    }
  6859.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6860.    
  6861. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6862. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6863.    convert_to_long_ex(args[1]);
  6864.    arg2 = (int) Z_LVAL_PP(args[1]);
  6865.    /*@SWIG@*/;
  6866. @@ -6877,7 +6998,7 @@
  6867.    
  6868.    return;
  6869.  fail:
  6870. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6871. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6872.  }
  6873.  
  6874.  
  6875. @@ -6896,7 +7017,7 @@
  6876.    delete_OGRFieldDefnShadow(arg1);
  6877.    return;
  6878.  fail:
  6879. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6880. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6881.  }
  6882.  
  6883.  
  6884. @@ -6914,7 +7035,7 @@
  6885.    WRONG_PARAM_COUNT;
  6886.    
  6887.    if(arg_count > 0) {
  6888. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6889. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6890.      if ((*args[0])->type==IS_NULL) {
  6891.        arg1 = (char *) 0;
  6892.      } else {
  6893. @@ -6925,7 +7046,7 @@
  6894.      
  6895.    }
  6896.    if(arg_count > 1) {
  6897. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6898. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6899.      convert_to_long_ex(args[1]);
  6900.      arg2 = (OGRFieldType) Z_LVAL_PP(args[1]);
  6901.      /*@SWIG@*/;
  6902. @@ -6937,7 +7058,7 @@
  6903.    
  6904.    return;
  6905.  fail:
  6906. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6907. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6908.  }
  6909.  
  6910.  
  6911. @@ -6967,7 +7088,7 @@
  6912.    }
  6913.    return;
  6914.  fail:
  6915. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6916. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6917.  }
  6918.  
  6919.  
  6920. @@ -6997,7 +7118,7 @@
  6921.    }
  6922.    return;
  6923.  fail:
  6924. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6925. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6926.  }
  6927.  
  6928.  
  6929. @@ -7018,7 +7139,7 @@
  6930.    }
  6931.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6932.    
  6933. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  6934. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  6935.    if ((*args[1])->type==IS_NULL) {
  6936.      arg2 = (char *) 0;
  6937.    } else {
  6938. @@ -7036,7 +7157,7 @@
  6939.    
  6940.    return;
  6941.  fail:
  6942. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6943. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6944.  }
  6945.  
  6946.  
  6947. @@ -7062,7 +7183,7 @@
  6948.    }
  6949.    return;
  6950.  fail:
  6951. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6952. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6953.  }
  6954.  
  6955.  
  6956. @@ -7083,7 +7204,7 @@
  6957.    }
  6958.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6959.    
  6960. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6961. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6962.    convert_to_long_ex(args[1]);
  6963.    arg2 = (OGRFieldType) Z_LVAL_PP(args[1]);
  6964.    /*@SWIG@*/;
  6965. @@ -7092,7 +7213,7 @@
  6966.    
  6967.    return;
  6968.  fail:
  6969. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6970. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6971.  }
  6972.  
  6973.  
  6974. @@ -7118,7 +7239,7 @@
  6975.    }
  6976.    return;
  6977.  fail:
  6978. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6979. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6980.  }
  6981.  
  6982.  
  6983. @@ -7139,7 +7260,7 @@
  6984.    }
  6985.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  6986.    
  6987. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  6988. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  6989.    convert_to_long_ex(args[1]);
  6990.    arg2 = (OGRJustification) Z_LVAL_PP(args[1]);
  6991.    /*@SWIG@*/;
  6992. @@ -7148,7 +7269,7 @@
  6993.    
  6994.    return;
  6995.  fail:
  6996. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6997. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  6998.  }
  6999.  
  7000.  
  7001. @@ -7174,7 +7295,7 @@
  7002.    }
  7003.    return;
  7004.  fail:
  7005. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7006. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7007.  }
  7008.  
  7009.  
  7010. @@ -7195,7 +7316,7 @@
  7011.    }
  7012.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7013.    
  7014. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7015. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7016.    convert_to_long_ex(args[1]);
  7017.    arg2 = (int) Z_LVAL_PP(args[1]);
  7018.    /*@SWIG@*/;
  7019. @@ -7204,7 +7325,7 @@
  7020.    
  7021.    return;
  7022.  fail:
  7023. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7024. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7025.  }
  7026.  
  7027.  
  7028. @@ -7230,7 +7351,7 @@
  7029.    }
  7030.    return;
  7031.  fail:
  7032. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7033. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7034.  }
  7035.  
  7036.  
  7037. @@ -7251,7 +7372,7 @@
  7038.    }
  7039.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7040.    
  7041. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7042. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7043.    convert_to_long_ex(args[1]);
  7044.    arg2 = (int) Z_LVAL_PP(args[1]);
  7045.    /*@SWIG@*/;
  7046. @@ -7260,7 +7381,7 @@
  7047.    
  7048.    return;
  7049.  fail:
  7050. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7051. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7052.  }
  7053.  
  7054.  
  7055. @@ -7290,7 +7411,7 @@
  7056.    }
  7057.    return;
  7058.  fail:
  7059. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7060. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7061.  }
  7062.  
  7063.  
  7064. @@ -7312,7 +7433,7 @@
  7065.    }
  7066.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7067.    
  7068. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7069. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7070.    convert_to_long_ex(args[1]);
  7071.    arg2 = (OGRFieldType) Z_LVAL_PP(args[1]);
  7072.    /*@SWIG@*/;
  7073. @@ -7327,7 +7448,7 @@
  7074.    }
  7075.    return;
  7076.  fail:
  7077. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7078. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7079.  }
  7080.  
  7081.  
  7082. @@ -7353,7 +7474,7 @@
  7083.    }
  7084.    return;
  7085.  fail:
  7086. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7087. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7088.  }
  7089.  
  7090.  
  7091. @@ -7374,7 +7495,7 @@
  7092.    }
  7093.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7094.    
  7095. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7096. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7097.    convert_to_long_ex(args[1]);
  7098.    arg2 = (int) Z_LVAL_PP(args[1]);
  7099.    /*@SWIG@*/;
  7100. @@ -7383,7 +7504,7 @@
  7101.    
  7102.    return;
  7103.  fail:
  7104. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7105. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7106.  }
  7107.  
  7108.  
  7109. @@ -7420,7 +7541,7 @@
  7110.    
  7111.    return;
  7112.  fail:
  7113. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7114. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7115.  }
  7116.  
  7117.  
  7118. @@ -7456,7 +7577,7 @@
  7119.    
  7120.    return;
  7121.  fail:
  7122. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7123. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7124.  }
  7125.  
  7126.  
  7127. @@ -7471,7 +7592,7 @@
  7128.    }
  7129.    
  7130.    
  7131. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  7132. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  7133.    if ((*args[0])->type==IS_NULL) {
  7134.      arg1 = (char *) 0;
  7135.    } else {
  7136. @@ -7486,7 +7607,7 @@
  7137.    
  7138.    return;
  7139.  fail:
  7140. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7141. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7142.  }
  7143.  
  7144.  
  7145. @@ -7501,7 +7622,7 @@
  7146.    }
  7147.    
  7148.    
  7149. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  7150. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  7151.    if ((*args[0])->type==IS_NULL) {
  7152.      arg1 = (char *) 0;
  7153.    } else {
  7154. @@ -7516,7 +7637,7 @@
  7155.    
  7156.    return;
  7157.  fail:
  7158. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7159. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7160.  }
  7161.  
  7162.  
  7163. @@ -7541,21 +7662,21 @@
  7164.      }
  7165.    }
  7166.    if(arg_count > 1) {
  7167. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7168. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7169.      convert_to_long_ex(args[1]);
  7170.      arg2 = (int) Z_LVAL_PP(args[1]);
  7171.      /*@SWIG@*/;
  7172.      
  7173.    }
  7174.    if(arg_count > 2) {
  7175. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7176. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7177.      convert_to_long_ex(args[2]);
  7178.      arg3 = (int) Z_LVAL_PP(args[2]);
  7179.      /*@SWIG@*/;
  7180.      
  7181.    }
  7182.    if(arg_count > 3) {
  7183. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7184. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7185.      convert_to_double_ex(args[3]);
  7186.      arg4 = (double) Z_DVAL_PP(args[3]);
  7187.      /*@SWIG@*/;
  7188. @@ -7567,7 +7688,7 @@
  7189.    
  7190.    return;
  7191.  fail:
  7192. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7193. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7194.  }
  7195.  
  7196.  
  7197. @@ -7590,55 +7711,55 @@
  7198.    }
  7199.    
  7200.    
  7201. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7202. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7203.    convert_to_double_ex(args[0]);
  7204.    arg1 = (double) Z_DVAL_PP(args[0]);
  7205.    /*@SWIG@*/;
  7206.    
  7207.    
  7208. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7209. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7210.    convert_to_double_ex(args[1]);
  7211.    arg2 = (double) Z_DVAL_PP(args[1]);
  7212.    /*@SWIG@*/;
  7213.    
  7214.    
  7215. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7216. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7217.    convert_to_double_ex(args[2]);
  7218.    arg3 = (double) Z_DVAL_PP(args[2]);
  7219.    /*@SWIG@*/;
  7220.    
  7221.    
  7222. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7223. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7224.    convert_to_double_ex(args[3]);
  7225.    arg4 = (double) Z_DVAL_PP(args[3]);
  7226.    /*@SWIG@*/;
  7227.    
  7228.    
  7229. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7230. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7231.    convert_to_double_ex(args[4]);
  7232.    arg5 = (double) Z_DVAL_PP(args[4]);
  7233.    /*@SWIG@*/;
  7234.    
  7235.    
  7236. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7237. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7238.    convert_to_double_ex(args[5]);
  7239.    arg6 = (double) Z_DVAL_PP(args[5]);
  7240.    /*@SWIG@*/;
  7241.    
  7242.    
  7243. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7244. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7245.    convert_to_double_ex(args[6]);
  7246.    arg7 = (double) Z_DVAL_PP(args[6]);
  7247.    /*@SWIG@*/;
  7248.    
  7249.    
  7250. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7251. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7252.    convert_to_double_ex(args[7]);
  7253.    arg8 = (double) Z_DVAL_PP(args[7]);
  7254.    /*@SWIG@*/;
  7255.    
  7256.    
  7257. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7258. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7259.    convert_to_double_ex(args[8]);
  7260.    arg9 = (double) Z_DVAL_PP(args[8]);
  7261.    /*@SWIG@*/;
  7262. @@ -7649,7 +7770,7 @@
  7263.    
  7264.    return;
  7265.  fail:
  7266. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7267. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7268.  }
  7269.  
  7270.  
  7271. @@ -7674,7 +7795,7 @@
  7272.    
  7273.    return;
  7274.  fail:
  7275. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7276. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7277.  }
  7278.  
  7279.  
  7280. @@ -7699,7 +7820,7 @@
  7281.    
  7282.    return;
  7283.  fail:
  7284. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7285. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7286.  }
  7287.  
  7288.  
  7289. @@ -7724,7 +7845,7 @@
  7290.    
  7291.    return;
  7292.  fail:
  7293. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7294. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7295.  }
  7296.  
  7297.  
  7298. @@ -7749,7 +7870,7 @@
  7299.    
  7300.    return;
  7301.  fail:
  7302. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7303. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7304.  }
  7305.  
  7306.  
  7307. @@ -7768,7 +7889,7 @@
  7308.    delete_OGRGeometryShadow(arg1);
  7309.    return;
  7310.  fail:
  7311. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7312. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7313.  }
  7314.  
  7315.  
  7316. @@ -7789,14 +7910,14 @@
  7317.    WRONG_PARAM_COUNT;
  7318.    
  7319.    if(arg_count > 0) {
  7320. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7321. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7322.      convert_to_long_ex(args[0]);
  7323.      arg1 = (OGRwkbGeometryType) Z_LVAL_PP(args[0]);
  7324.      /*@SWIG@*/;
  7325.      
  7326.    }
  7327.    if(arg_count > 1) {
  7328. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  7329. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  7330.      if ((*args[1])->type==IS_NULL) {
  7331.        arg2 = (char *) 0;
  7332.      } else {
  7333. @@ -7815,7 +7936,7 @@
  7334.      }
  7335.    }
  7336.    if(arg_count > 3) {
  7337. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  7338. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  7339.      if ((*args[3])->type==IS_NULL) {
  7340.        arg5 = (char *) 0;
  7341.      } else {
  7342. @@ -7831,7 +7952,7 @@
  7343.    
  7344.    return;
  7345.  fail:
  7346. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7347. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7348.  }
  7349.  
  7350.  
  7351. @@ -7883,7 +8004,9 @@
  7352.    }
  7353.    {
  7354.      /* %typemap(ret) OGRErr */
  7355. -    RETVAL_LONG(0);
  7356. +    if (result != 0) {
  7357. +      RETVAL_LONG(result);
  7358. +    }
  7359.    }
  7360.    return;
  7361.  fail:
  7362. @@ -7892,7 +8015,7 @@
  7363.      if ( *arg2 )
  7364.      CPLFree( *arg2 );
  7365.    }
  7366. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7367. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7368.  }
  7369.  
  7370.  
  7371. @@ -7925,7 +8048,7 @@
  7372.    }
  7373.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7374.    if(arg_count > 1) {
  7375. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7376. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7377.      convert_to_long_ex(args[1]);
  7378.      arg4 = (OGRwkbByteOrder) Z_LVAL_PP(args[1]);
  7379.      /*@SWIG@*/;
  7380. @@ -7950,7 +8073,9 @@
  7381.    }
  7382.    {
  7383.      /* %typemap(ret) OGRErr */
  7384. -    RETVAL_LONG(0);
  7385. +    if (result != 0) {
  7386. +      RETVAL_LONG(result);
  7387. +    }
  7388.    }
  7389.    return;
  7390.  fail:
  7391. @@ -7960,7 +8085,7 @@
  7392.        free( *arg3 );
  7393.      }
  7394.    }
  7395. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7396. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7397.  }
  7398.  
  7399.  
  7400. @@ -7990,7 +8115,7 @@
  7401.    }
  7402.    return;
  7403.  fail:
  7404. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7405. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7406.  }
  7407.  
  7408.  
  7409. @@ -8014,7 +8139,7 @@
  7410.    }
  7411.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7412.    if(arg_count > 1) {
  7413. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  7414. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  7415.      if ((*args[1])->type==IS_NULL) {
  7416.        arg2 = (char *) 0;
  7417.      } else {
  7418. @@ -8034,7 +8159,7 @@
  7419.    }
  7420.    return;
  7421.  fail:
  7422. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7423. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7424.  }
  7425.  
  7426.  
  7427. @@ -8064,7 +8189,7 @@
  7428.    }
  7429.    return;
  7430.  fail:
  7431. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7432. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7433.  }
  7434.  
  7435.  
  7436. @@ -8089,19 +8214,19 @@
  7437.    }
  7438.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7439.    
  7440. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7441. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7442.    convert_to_double_ex(args[1]);
  7443.    arg2 = (double) Z_DVAL_PP(args[1]);
  7444.    /*@SWIG@*/;
  7445.    
  7446.    
  7447. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7448. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7449.    convert_to_double_ex(args[2]);
  7450.    arg3 = (double) Z_DVAL_PP(args[2]);
  7451.    /*@SWIG@*/;
  7452.    
  7453.    if(arg_count > 3) {
  7454. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7455. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7456.      convert_to_double_ex(args[3]);
  7457.      arg4 = (double) Z_DVAL_PP(args[3]);
  7458.      /*@SWIG@*/;
  7459. @@ -8111,7 +8236,7 @@
  7460.    
  7461.    return;
  7462.  fail:
  7463. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7464. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7465.  }
  7466.  
  7467.  
  7468. @@ -8133,13 +8258,13 @@
  7469.    }
  7470.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7471.    
  7472. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7473. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7474.    convert_to_double_ex(args[1]);
  7475.    arg2 = (double) Z_DVAL_PP(args[1]);
  7476.    /*@SWIG@*/;
  7477.    
  7478.    
  7479. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7480. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7481.    convert_to_double_ex(args[2]);
  7482.    arg3 = (double) Z_DVAL_PP(args[2]);
  7483.    /*@SWIG@*/;
  7484. @@ -8148,7 +8273,7 @@
  7485.    
  7486.    return;
  7487.  fail:
  7488. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7489. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7490.  }
  7491.  
  7492.  
  7493. @@ -8188,11 +8313,13 @@
  7494.    }
  7495.    {
  7496.      /* %typemap(ret) OGRErr */
  7497. -    RETVAL_LONG(0);
  7498. +    if (result != 0) {
  7499. +      RETVAL_LONG(result);
  7500. +    }
  7501.    }
  7502.    return;
  7503.  fail:
  7504. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7505. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7506.  }
  7507.  
  7508.  
  7509. @@ -8232,11 +8359,13 @@
  7510.    }
  7511.    {
  7512.      /* %typemap(ret) OGRErr */
  7513. -    RETVAL_LONG(0);
  7514. +    if (result != 0) {
  7515. +      RETVAL_LONG(result);
  7516. +    }
  7517.    }
  7518.    return;
  7519.  fail:
  7520. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7521. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7522.  }
  7523.  
  7524.  
  7525. @@ -8262,7 +8391,7 @@
  7526.    
  7527.    return;
  7528.  fail:
  7529. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7530. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7531.  }
  7532.  
  7533.  
  7534. @@ -8288,7 +8417,7 @@
  7535.    }
  7536.    return;
  7537.  fail:
  7538. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7539. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7540.  }
  7541.  
  7542.  
  7543. @@ -8318,7 +8447,7 @@
  7544.    }
  7545.    return;
  7546.  fail:
  7547. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7548. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7549.  }
  7550.  
  7551.  
  7552. @@ -8344,7 +8473,7 @@
  7553.    }
  7554.    return;
  7555.  fail:
  7556. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7557. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7558.  }
  7559.  
  7560.  
  7561. @@ -8370,7 +8499,7 @@
  7562.    }
  7563.    return;
  7564.  fail:
  7565. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7566. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7567.  }
  7568.  
  7569.  
  7570. @@ -8396,7 +8525,7 @@
  7571.    }
  7572.    return;
  7573.  fail:
  7574. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7575. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7576.  }
  7577.  
  7578.  
  7579. @@ -8422,7 +8551,7 @@
  7580.    }
  7581.    return;
  7582.  fail:
  7583. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7584. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7585.  }
  7586.  
  7587.  
  7588. @@ -8446,7 +8575,7 @@
  7589.    }
  7590.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7591.    if(arg_count > 1) {
  7592. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7593. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7594.      convert_to_long_ex(args[1]);
  7595.      arg2 = (int) Z_LVAL_PP(args[1]);
  7596.      /*@SWIG@*/;
  7597. @@ -8458,7 +8587,7 @@
  7598.    }
  7599.    return;
  7600.  fail:
  7601. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7602. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7603.  }
  7604.  
  7605.  
  7606. @@ -8482,7 +8611,7 @@
  7607.    }
  7608.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7609.    if(arg_count > 1) {
  7610. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7611. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7612.      convert_to_long_ex(args[1]);
  7613.      arg2 = (int) Z_LVAL_PP(args[1]);
  7614.      /*@SWIG@*/;
  7615. @@ -8494,7 +8623,7 @@
  7616.    }
  7617.    return;
  7618.  fail:
  7619. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7620. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7621.  }
  7622.  
  7623.  
  7624. @@ -8518,7 +8647,7 @@
  7625.    }
  7626.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7627.    if(arg_count > 1) {
  7628. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7629. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7630.      convert_to_long_ex(args[1]);
  7631.      arg2 = (int) Z_LVAL_PP(args[1]);
  7632.      /*@SWIG@*/;
  7633. @@ -8530,7 +8659,7 @@
  7634.    }
  7635.    return;
  7636.  fail:
  7637. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7638. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7639.  }
  7640.  
  7641.  
  7642. @@ -8559,7 +8688,7 @@
  7643.    }
  7644.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7645.    if(arg_count > 1) {
  7646. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7647. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7648.      convert_to_long_ex(args[1]);
  7649.      arg2 = (int) Z_LVAL_PP(args[1]);
  7650.      /*@SWIG@*/;
  7651. @@ -8574,7 +8703,7 @@
  7652.    }
  7653.    return;
  7654.  fail:
  7655. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7656. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7657.  }
  7658.  
  7659.  
  7660. @@ -8603,7 +8732,7 @@
  7661.    }
  7662.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7663.    if(arg_count > 1) {
  7664. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7665. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7666.      convert_to_long_ex(args[1]);
  7667.      arg2 = (int) Z_LVAL_PP(args[1]);
  7668.      /*@SWIG@*/;
  7669. @@ -8618,7 +8747,7 @@
  7670.    }
  7671.    return;
  7672.  fail:
  7673. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7674. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7675.  }
  7676.  
  7677.  
  7678. @@ -8644,7 +8773,7 @@
  7679.    }
  7680.    return;
  7681.  fail:
  7682. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7683. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7684.  }
  7685.  
  7686.  
  7687. @@ -8670,25 +8799,25 @@
  7688.    }
  7689.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7690.    
  7691. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7692. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7693.    convert_to_long_ex(args[1]);
  7694.    arg2 = (int) Z_LVAL_PP(args[1]);
  7695.    /*@SWIG@*/;
  7696.    
  7697.    
  7698. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7699. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7700.    convert_to_double_ex(args[2]);
  7701.    arg3 = (double) Z_DVAL_PP(args[2]);
  7702.    /*@SWIG@*/;
  7703.    
  7704.    
  7705. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7706. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7707.    convert_to_double_ex(args[3]);
  7708.    arg4 = (double) Z_DVAL_PP(args[3]);
  7709.    /*@SWIG@*/;
  7710.    
  7711.    if(arg_count > 4) {
  7712. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7713. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7714.      convert_to_double_ex(args[4]);
  7715.      arg5 = (double) Z_DVAL_PP(args[4]);
  7716.      /*@SWIG@*/;
  7717. @@ -8698,7 +8827,7 @@
  7718.    
  7719.    return;
  7720.  fail:
  7721. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7722. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7723.  }
  7724.  
  7725.  
  7726. @@ -8721,19 +8850,19 @@
  7727.    }
  7728.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7729.    
  7730. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7731. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7732.    convert_to_long_ex(args[1]);
  7733.    arg2 = (int) Z_LVAL_PP(args[1]);
  7734.    /*@SWIG@*/;
  7735.    
  7736.    
  7737. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7738. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7739.    convert_to_double_ex(args[2]);
  7740.    arg3 = (double) Z_DVAL_PP(args[2]);
  7741.    /*@SWIG@*/;
  7742.    
  7743.    
  7744. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7745. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7746.    convert_to_double_ex(args[3]);
  7747.    arg4 = (double) Z_DVAL_PP(args[3]);
  7748.    /*@SWIG@*/;
  7749. @@ -8742,7 +8871,7 @@
  7750.    
  7751.    return;
  7752.  fail:
  7753. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7754. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7755.  }
  7756.  
  7757.  
  7758. @@ -8764,7 +8893,7 @@
  7759.    }
  7760.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7761.    
  7762. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7763. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7764.    convert_to_long_ex(args[1]);
  7765.    arg2 = (int) Z_LVAL_PP(args[1]);
  7766.    /*@SWIG@*/;
  7767. @@ -8775,7 +8904,7 @@
  7768.    
  7769.    return;
  7770.  fail:
  7771. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7772. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7773.  }
  7774.  
  7775.  
  7776. @@ -8797,7 +8926,7 @@
  7777.    }
  7778.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7779.    
  7780. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7781. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7782.    convert_to_double_ex(args[1]);
  7783.    arg2 = (double) Z_DVAL_PP(args[1]);
  7784.    /*@SWIG@*/;
  7785. @@ -8808,7 +8937,7 @@
  7786.    
  7787.    return;
  7788.  fail:
  7789. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7790. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7791.  }
  7792.  
  7793.  
  7794. @@ -8834,7 +8963,7 @@
  7795.    
  7796.    return;
  7797.  fail:
  7798. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7799. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7800.  }
  7801.  
  7802.  
  7803. @@ -8860,7 +8989,7 @@
  7804.    
  7805.    return;
  7806.  fail:
  7807. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7808. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7809.  }
  7810.  
  7811.  
  7812. @@ -8886,7 +9015,7 @@
  7813.    
  7814.    return;
  7815.  fail:
  7816. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7817. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7818.  }
  7819.  
  7820.  
  7821. @@ -8911,13 +9040,13 @@
  7822.    }
  7823.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  7824.    
  7825. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  7826. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  7827.    convert_to_double_ex(args[1]);
  7828.    arg2 = (double) Z_DVAL_PP(args[1]);
  7829.    /*@SWIG@*/;
  7830.    
  7831.    if(arg_count > 2) {
  7832. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  7833. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  7834.      convert_to_long_ex(args[2]);
  7835.      arg3 = (int) Z_LVAL_PP(args[2]);
  7836.      /*@SWIG@*/;
  7837. @@ -8929,7 +9058,7 @@
  7838.    
  7839.    return;
  7840.  fail:
  7841. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7842. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7843.  }
  7844.  
  7845.  
  7846. @@ -8966,7 +9095,7 @@
  7847.    
  7848.    return;
  7849.  fail:
  7850. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7851. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7852.  }
  7853.  
  7854.  
  7855. @@ -9003,7 +9132,7 @@
  7856.    
  7857.    return;
  7858.  fail:
  7859. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7860. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7861.  }
  7862.  
  7863.  
  7864. @@ -9029,7 +9158,7 @@
  7865.    
  7866.    return;
  7867.  fail:
  7868. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7869. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7870.  }
  7871.  
  7872.  
  7873. @@ -9066,7 +9195,7 @@
  7874.    
  7875.    return;
  7876.  fail:
  7877. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7878. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7879.  }
  7880.  
  7881.  
  7882. @@ -9103,7 +9232,7 @@
  7883.    
  7884.    return;
  7885.  fail:
  7886. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7887. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7888.  }
  7889.  
  7890.  
  7891. @@ -9140,7 +9269,7 @@
  7892.    
  7893.    return;
  7894.  fail:
  7895. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7896. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7897.  }
  7898.  
  7899.  
  7900. @@ -9177,7 +9306,7 @@
  7901.    }
  7902.    return;
  7903.  fail:
  7904. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7905. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7906.  }
  7907.  
  7908.  
  7909. @@ -9200,7 +9329,7 @@
  7910.    
  7911.    return;
  7912.  fail:
  7913. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7914. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7915.  }
  7916.  
  7917.  
  7918. @@ -9226,7 +9355,7 @@
  7919.    }
  7920.    return;
  7921.  fail:
  7922. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7923. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7924.  }
  7925.  
  7926.  
  7927. @@ -9252,7 +9381,7 @@
  7928.    }
  7929.    return;
  7930.  fail:
  7931. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7932. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7933.  }
  7934.  
  7935.  
  7936. @@ -9278,7 +9407,7 @@
  7937.    }
  7938.    return;
  7939.  fail:
  7940. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7941. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7942.  }
  7943.  
  7944.  
  7945. @@ -9304,7 +9433,7 @@
  7946.    }
  7947.    return;
  7948.  fail:
  7949. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7950. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7951.  }
  7952.  
  7953.  
  7954. @@ -9341,7 +9470,7 @@
  7955.    }
  7956.    return;
  7957.  fail:
  7958. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7959. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7960.  }
  7961.  
  7962.  
  7963. @@ -9378,7 +9507,7 @@
  7964.    }
  7965.    return;
  7966.  fail:
  7967. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7968. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7969.  }
  7970.  
  7971.  
  7972. @@ -9415,7 +9544,7 @@
  7973.    }
  7974.    return;
  7975.  fail:
  7976. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7977. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7978.  }
  7979.  
  7980.  
  7981. @@ -9452,7 +9581,7 @@
  7982.    }
  7983.    return;
  7984.  fail:
  7985. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7986. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7987.  }
  7988.  
  7989.  
  7990. @@ -9489,7 +9618,7 @@
  7991.    }
  7992.    return;
  7993.  fail:
  7994. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7995. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  7996.  }
  7997.  
  7998.  
  7999. @@ -9526,7 +9655,7 @@
  8000.    }
  8001.    return;
  8002.  fail:
  8003. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8004. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8005.  }
  8006.  
  8007.  
  8008. @@ -9563,7 +9692,7 @@
  8009.    }
  8010.    return;
  8011.  fail:
  8012. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8013. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8014.  }
  8015.  
  8016.  
  8017. @@ -9600,7 +9729,7 @@
  8018.    }
  8019.    return;
  8020.  fail:
  8021. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8022. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8023.  }
  8024.  
  8025.  
  8026. @@ -9637,7 +9766,7 @@
  8027.    }
  8028.    return;
  8029.  fail:
  8030. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8031. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8032.  }
  8033.  
  8034.  
  8035. @@ -9674,7 +9803,7 @@
  8036.    }
  8037.    return;
  8038.  fail:
  8039. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8040. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8041.  }
  8042.  
  8043.  
  8044. @@ -9714,11 +9843,13 @@
  8045.    }
  8046.    {
  8047.      /* %typemap(ret) OGRErr */
  8048. -    RETVAL_LONG(0);
  8049. +    if (result != 0) {
  8050. +      RETVAL_LONG(result);
  8051. +    }
  8052.    }
  8053.    return;
  8054.  fail:
  8055. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8056. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8057.  }
  8058.  
  8059.  
  8060. @@ -9758,11 +9889,13 @@
  8061.    }
  8062.    {
  8063.      /* %typemap(ret) OGRErr */
  8064. -    RETVAL_LONG(0);
  8065. +    if (result != 0) {
  8066. +      RETVAL_LONG(result);
  8067. +    }
  8068.    }
  8069.    return;
  8070.  fail:
  8071. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8072. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8073.  }
  8074.  
  8075.  
  8076. @@ -9788,7 +9921,7 @@
  8077.    
  8078.    return;
  8079.  fail:
  8080. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8081. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8082.  }
  8083.  
  8084.  
  8085. @@ -9817,7 +9950,7 @@
  8086.    
  8087.    return;
  8088.  fail:
  8089. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8090. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8091.  }
  8092.  
  8093.  
  8094. @@ -9840,7 +9973,7 @@
  8095.    
  8096.    return;
  8097.  fail:
  8098. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8099. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8100.  }
  8101.  
  8102.  
  8103. @@ -9863,7 +9996,7 @@
  8104.    
  8105.    return;
  8106.  fail:
  8107. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8108. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8109.  }
  8110.  
  8111.  
  8112. @@ -9884,7 +10017,7 @@
  8113.    }
  8114.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  8115.    
  8116. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  8117. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  8118.    convert_to_double_ex(args[1]);
  8119.    arg2 = (double) Z_DVAL_PP(args[1]);
  8120.    /*@SWIG@*/;
  8121. @@ -9893,7 +10026,7 @@
  8122.    
  8123.    return;
  8124.  fail:
  8125. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8126. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8127.  }
  8128.  
  8129.  
  8130. @@ -9927,7 +10060,7 @@
  8131.    }
  8132.    return;
  8133.  fail:
  8134. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8135. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8136.  }
  8137.  
  8138.  
  8139. @@ -9953,7 +10086,7 @@
  8140.    
  8141.    return;
  8142.  fail:
  8143. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8144. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8145.  }
  8146.  
  8147.  
  8148. @@ -9979,7 +10112,7 @@
  8149.    }
  8150.    return;
  8151.  fail:
  8152. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8153. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8154.  }
  8155.  
  8156.  
  8157. @@ -10005,7 +10138,7 @@
  8158.    }
  8159.    return;
  8160.  fail:
  8161. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8162. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8163.  }
  8164.  
  8165.  
  8166. @@ -10026,7 +10159,7 @@
  8167.    }
  8168.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  8169.    
  8170. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8171. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8172.    convert_to_long_ex(args[1]);
  8173.    arg2 = (int) Z_LVAL_PP(args[1]);
  8174.    /*@SWIG@*/;
  8175. @@ -10035,7 +10168,7 @@
  8176.    
  8177.    return;
  8178.  fail:
  8179. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8180. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8181.  }
  8182.  
  8183.  
  8184. @@ -10061,7 +10194,7 @@
  8185.    }
  8186.    return;
  8187.  fail:
  8188. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8189. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8190.  }
  8191.  
  8192.  
  8193. @@ -10079,7 +10212,7 @@
  8194.    }
  8195.    return;
  8196.  fail:
  8197. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8198. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8199.  }
  8200.  
  8201.  
  8202. @@ -10097,7 +10230,7 @@
  8203.    }
  8204.    return;
  8205.  fail:
  8206. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8207. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8208.  }
  8209.  
  8210.  
  8211. @@ -10112,7 +10245,7 @@
  8212.    }
  8213.    
  8214.    
  8215. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8216. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8217.    convert_to_long_ex(args[0]);
  8218.    arg1 = (int) Z_LVAL_PP(args[0]);
  8219.    /*@SWIG@*/;
  8220. @@ -10126,11 +10259,13 @@
  8221.    }
  8222.    {
  8223.      /* %typemap(ret) OGRErr */
  8224. -    RETVAL_LONG(0);
  8225. +    if (result != 0) {
  8226. +      RETVAL_LONG(result);
  8227. +    }
  8228.    }
  8229.    return;
  8230.  fail:
  8231. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8232. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8233.  }
  8234.  
  8235.  
  8236. @@ -10144,7 +10279,7 @@
  8237.    
  8238.    return;
  8239.  fail:
  8240. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8241. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8242.  }
  8243.  
  8244.  
  8245. @@ -10159,7 +10294,7 @@
  8246.    }
  8247.    
  8248.    
  8249. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8250. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8251.    convert_to_long_ex(args[0]);
  8252.    arg1 = (OGRwkbGeometryType) Z_LVAL_PP(args[0]);
  8253.    /*@SWIG@*/;
  8254. @@ -10174,7 +10309,7 @@
  8255.    }
  8256.    return;
  8257.  fail:
  8258. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8259. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8260.  }
  8261.  
  8262.  
  8263. @@ -10189,7 +10324,7 @@
  8264.    }
  8265.    
  8266.    
  8267. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8268. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8269.    convert_to_long_ex(args[0]);
  8270.    arg1 = (OGRFieldType) Z_LVAL_PP(args[0]);
  8271.    /*@SWIG@*/;
  8272. @@ -10204,7 +10339,7 @@
  8273.    }
  8274.    return;
  8275.  fail:
  8276. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8277. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8278.  }
  8279.  
  8280.  
  8281. @@ -10219,7 +10354,7 @@
  8282.    }
  8283.    
  8284.    
  8285. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8286. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8287.    convert_to_long_ex(args[0]);
  8288.    arg1 = (int) Z_LVAL_PP(args[0]);
  8289.    /*@SWIG@*/;
  8290. @@ -10230,7 +10365,7 @@
  8291.    
  8292.    return;
  8293.  fail:
  8294. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8295. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8296.  }
  8297.  
  8298.  
  8299. @@ -10248,7 +10383,7 @@
  8300.    WRONG_PARAM_COUNT;
  8301.    
  8302.    
  8303. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  8304. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  8305.    if ((*args[0])->type==IS_NULL) {
  8306.      arg1 = (char *) 0;
  8307.    } else {
  8308. @@ -10258,7 +10393,7 @@
  8309.    /*@SWIG@*/;
  8310.    
  8311.    if(arg_count > 1) {
  8312. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8313. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8314.      convert_to_long_ex(args[1]);
  8315.      arg2 = (int) Z_LVAL_PP(args[1]);
  8316.      /*@SWIG@*/;
  8317. @@ -10270,7 +10405,7 @@
  8318.    
  8319.    return;
  8320.  fail:
  8321. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8322. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8323.  }
  8324.  
  8325.  
  8326. @@ -10288,7 +10423,7 @@
  8327.    WRONG_PARAM_COUNT;
  8328.    
  8329.    
  8330. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  8331. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  8332.    if ((*args[0])->type==IS_NULL) {
  8333.      arg1 = (char *) 0;
  8334.    } else {
  8335. @@ -10298,7 +10433,7 @@
  8336.    /*@SWIG@*/;
  8337.    
  8338.    if(arg_count > 1) {
  8339. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8340. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8341.      convert_to_long_ex(args[1]);
  8342.      arg2 = (int) Z_LVAL_PP(args[1]);
  8343.      /*@SWIG@*/;
  8344. @@ -10310,7 +10445,7 @@
  8345.    
  8346.    return;
  8347.  fail:
  8348. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8349. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8350.  }
  8351.  
  8352.  
  8353. @@ -10325,7 +10460,7 @@
  8354.    }
  8355.    
  8356.    
  8357. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  8358. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  8359.    if ((*args[0])->type==IS_NULL) {
  8360.      arg1 = (char *) 0;
  8361.    } else {
  8362. @@ -10345,7 +10480,7 @@
  8363.    
  8364.    return;
  8365.  fail:
  8366. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8367. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8368.  }
  8369.  
  8370.  
  8371. @@ -10360,7 +10495,7 @@
  8372.    }
  8373.    
  8374.    
  8375. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8376. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8377.    convert_to_long_ex(args[0]);
  8378.    arg1 = (int) Z_LVAL_PP(args[0]);
  8379.    /*@SWIG@*/;
  8380. @@ -10371,7 +10506,7 @@
  8381.    
  8382.    return;
  8383.  fail:
  8384. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8385. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8386.  }
  8387.  
  8388.  
  8389. @@ -10402,7 +10537,7 @@
  8390.      //  }
  8391.    }
  8392.    if(arg_count > 1) {
  8393. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  8394. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  8395.      convert_to_long_ex(args[1]);
  8396.      arg2 = (int) Z_LVAL_PP(args[1]);
  8397.      /*@SWIG@*/;
  8398. @@ -10433,7 +10568,7 @@
  8399.      /* %typemap(freearg) char **options */
  8400.      CSLDestroy( arg1 );
  8401.    }
  8402. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8403. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  8404.  }
  8405.  
  8406.  
  8407. @@ -10597,6 +10732,7 @@
  8408.   SWIG_ZEND_NAMED_FE(feature_setfielddoublelist,_wrap_Feature_SetFieldDoubleList,NULL)
  8409.   SWIG_ZEND_NAMED_FE(feature_setfieldstringlist,_wrap_Feature_SetFieldStringList,NULL)
  8410.   SWIG_ZEND_NAMED_FE(feature_setfrom,_wrap_Feature_SetFrom,NULL)
  8411. + SWIG_ZEND_NAMED_FE(feature_setfromwithmap,_wrap_Feature_SetFromWithMap,NULL)
  8412.   SWIG_ZEND_NAMED_FE(feature_getstylestring,_wrap_Feature_GetStyleString,NULL)
  8413.   SWIG_ZEND_NAMED_FE(feature_setstylestring,_wrap_Feature_SetStyleString,NULL)
  8414.   SWIG_ZEND_NAMED_FE(feature_getfieldtype,_wrap_Feature_GetFieldType,NULL)
  8415. @@ -10995,6 +11131,11 @@
  8416.    SWIG_php_minit {
  8417.      SWIG_InitializeModule(0);
  8418.  
  8419. +
  8420. +  if ( OGRGetDriverCount() == 0 ) {
  8421. +    OGRRegisterAll();
  8422. +  }
  8423. +
  8424.  /* oinit subsection */
  8425.  ZEND_INIT_MODULE_GLOBALS(ogr, ogr_init_globals, ogr_destroy_globals);
  8426.  
  8427. Index: swig/php/php_gdal.h
  8428. ===================================================================
  8429. --- swig/php/php_gdal.h (revision 21891)
  8430. +++ swig/php/php_gdal.h (working copy)
  8431. @@ -1,6 +1,6 @@
  8432.  /* ----------------------------------------------------------------------------
  8433.   * This file was automatically generated by SWIG (http://www.swig.org).
  8434. - * Version 1.3.40
  8435. + * Version 2.0.1
  8436.   *
  8437.   * This file is not intended to be easily readable and contains a number of
  8438.   * coding conventions designed to improve portability and efficiency. Do not make
  8439. @@ -73,6 +73,7 @@
  8440.  ZEND_NAMED_FUNCTION(_wrap_Driver_CreateCopy);
  8441.  ZEND_NAMED_FUNCTION(_wrap_Driver_Delete);
  8442.  ZEND_NAMED_FUNCTION(_wrap_Driver_Rename);
  8443. +ZEND_NAMED_FUNCTION(_wrap_Driver_CopyFiles);
  8444.  ZEND_NAMED_FUNCTION(_wrap_Driver_Register);
  8445.  ZEND_NAMED_FUNCTION(_wrap_Driver_Deregister);
  8446.  ZEND_NAMED_FUNCTION(_wrap_ColorEntry_c1_set);
  8447. @@ -198,6 +199,8 @@
  8448.  ZEND_NAMED_FUNCTION(_wrap_Band_GetDefaultHistogram);
  8449.  ZEND_NAMED_FUNCTION(_wrap_Band_SetDefaultHistogram);
  8450.  ZEND_NAMED_FUNCTION(_wrap_Band_HasArbitraryOverviews);
  8451. +ZEND_NAMED_FUNCTION(_wrap_Band_GetCategoryNames);
  8452. +ZEND_NAMED_FUNCTION(_wrap_Band_SetCategoryNames);
  8453.  ZEND_NAMED_FUNCTION(_wrap_new_ColorTable);
  8454.  ZEND_NAMED_FUNCTION(_wrap_ColorTable_c_Clone);
  8455.  ZEND_NAMED_FUNCTION(_wrap_ColorTable_GetPaletteInterpretation);
  8456. Index: swig/php/php_ogr.h
  8457. ===================================================================
  8458. --- swig/php/php_ogr.h  (revision 21891)
  8459. +++ swig/php/php_ogr.h  (working copy)
  8460. @@ -1,6 +1,6 @@
  8461.  /* ----------------------------------------------------------------------------
  8462.   * This file was automatically generated by SWIG (http://www.swig.org).
  8463. - * Version 1.3.40
  8464. + * Version 2.0.1
  8465.   *
  8466.   * This file is not intended to be easily readable and contains a number of
  8467.   * coding conventions designed to improve portability and efficiency. Do not make
  8468. @@ -108,6 +108,7 @@
  8469.  ZEND_NAMED_FUNCTION(_wrap_Feature_SetFieldDoubleList);
  8470.  ZEND_NAMED_FUNCTION(_wrap_Feature_SetFieldStringList);
  8471.  ZEND_NAMED_FUNCTION(_wrap_Feature_SetFrom);
  8472. +ZEND_NAMED_FUNCTION(_wrap_Feature_SetFromWithMap);
  8473.  ZEND_NAMED_FUNCTION(_wrap_Feature_GetStyleString);
  8474.  ZEND_NAMED_FUNCTION(_wrap_Feature_SetStyleString);
  8475.  ZEND_NAMED_FUNCTION(_wrap_Feature_GetFieldType);
  8476. Index: swig/php/GNUmakefile
  8477. ===================================================================
  8478. --- swig/php/GNUmakefile    (revision 21891)
  8479. +++ swig/php/GNUmakefile    (working copy)
  8480. @@ -13,7 +13,7 @@
  8481.  LDFLAGS=-shared
  8482.  PHP_INC=`php-config --includes`
  8483.  EXTRA_INC=-I../../port -I../../gcore -I../../alg -I../../ogr
  8484. -EXTRA_LIB=
  8485. +EXTRA_LIB=-L../../.libs -lgdal
  8486.  
  8487.  all_libs = php_gdal.so php_ogr.so php_gdalconst.so php_osr.so
  8488.  
  8489. @@ -28,17 +28,17 @@
  8490.  
  8491.  generate: ${WRAPPERS}
  8492.  
  8493. -build: php_gdal.so
  8494. +build: php_gdal.so php_ogr.so php_gdalconst.so php_osr.so
  8495.  
  8496.  # This directive should actually do an install.
  8497.  install: build
  8498.  
  8499.  php_%.so: %_wrap.o
  8500. -   $(CC) $(LDFLAGS) $< -o $@ $(EXTRA_LIB)
  8501. +   $(CC) $(EXTRA_LIB) $(LDFLAGS) $< -o $@ $(EXTRA_LIB)
  8502.  
  8503.  %.o: %.cpp
  8504. -   $(CXX) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8505. +   $(CXX) $(EXTRA_LIB) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8506.  %.o: %.cxx
  8507. -   $(CXX) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8508. +   $(CXX) $(EXTRA_LIB) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8509.  %.o: %.c
  8510. -   $(CC) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8511. +   $(CC) $(EXTRA_LIB) $(EXTRA_INC) $(PHP_INC) $(CFLAGS) -c $<
  8512. Index: swig/php/osr.php
  8513. ===================================================================
  8514. --- swig/php/osr.php    (revision 21891)
  8515. +++ swig/php/osr.php    (working copy)
  8516. @@ -2,7 +2,7 @@
  8517.  
  8518.  /* ----------------------------------------------------------------------------
  8519.   * This file was automatically generated by SWIG (http://www.swig.org).
  8520. - * Version 1.3.40
  8521. + * Version 2.0.1
  8522.   *
  8523.   * This file is not intended to be easily readable and contains a number of
  8524.   * coding conventions designed to improve portability and efficiency. Do not make
  8525. @@ -227,6 +227,10 @@
  8526.  
  8527.     const SRS_UL_ROD_CONV = SRS_UL_ROD_CONV;
  8528.  
  8529. +   const SRS_UL_LINK_Clarke = SRS_UL_LINK_Clarke;
  8530. +
  8531. +   const SRS_UL_LINK_Clarke_CONV = SRS_UL_LINK_Clarke_CONV;
  8532. +
  8533.     const SRS_UA_DEGREE = SRS_UA_DEGREE;
  8534.  
  8535.     const SRS_UA_DEGREE_CONV = SRS_UA_DEGREE_CONV;
  8536. @@ -288,7 +292,7 @@
  8537.         return $this->_pData[$var];
  8538.     }
  8539.  
  8540. -   public function __construct($wkt="") {
  8541. +   function __construct($wkt="") {
  8542.         if (is_resource($wkt) && get_resource_type($wkt) === '_p_OSRSpatialReferenceShadow') {
  8543.             $this->_cPtr=$wkt;
  8544.             return;
  8545. @@ -296,339 +300,339 @@
  8546.         $this->_cPtr=new_SpatialReference($wkt);
  8547.     }
  8548.  
  8549. -   public function __str__() {
  8550. +   function __str__() {
  8551.         return SpatialReference___str__($this->_cPtr);
  8552.     }
  8553.  
  8554. -   public function IsSame($rhs) {
  8555. +   function IsSame($rhs) {
  8556.         return SpatialReference_IsSame($this->_cPtr,$rhs);
  8557.     }
  8558.  
  8559. -   public function IsSameGeogCS($rhs) {
  8560. +   function IsSameGeogCS($rhs) {
  8561.         return SpatialReference_IsSameGeogCS($this->_cPtr,$rhs);
  8562.     }
  8563.  
  8564. -   public function IsGeographic() {
  8565. +   function IsGeographic() {
  8566.         return SpatialReference_IsGeographic($this->_cPtr);
  8567.     }
  8568.  
  8569. -   public function IsProjected() {
  8570. +   function IsProjected() {
  8571.         return SpatialReference_IsProjected($this->_cPtr);
  8572.     }
  8573.  
  8574. -   public function IsLocal() {
  8575. +   function IsLocal() {
  8576.         return SpatialReference_IsLocal($this->_cPtr);
  8577.     }
  8578.  
  8579. -   public function EPSGTreatsAsLatLong() {
  8580. +   function EPSGTreatsAsLatLong() {
  8581.         return SpatialReference_EPSGTreatsAsLatLong($this->_cPtr);
  8582.     }
  8583.  
  8584. -   public function SetAuthority($pszTargetKey,$pszAuthority,$nCode) {
  8585. +   function SetAuthority($pszTargetKey,$pszAuthority,$nCode) {
  8586.         return SpatialReference_SetAuthority($this->_cPtr,$pszTargetKey,$pszAuthority,$nCode);
  8587.     }
  8588.  
  8589. -   public function GetAttrValue($name,$child=0) {
  8590. +   function GetAttrValue($name,$child=0) {
  8591.         return SpatialReference_GetAttrValue($this->_cPtr,$name,$child);
  8592.     }
  8593.  
  8594. -   public function SetAttrValue($name,$value) {
  8595. +   function SetAttrValue($name,$value) {
  8596.         return SpatialReference_SetAttrValue($this->_cPtr,$name,$value);
  8597.     }
  8598.  
  8599. -   public function SetAngularUnits($name,$to_radians) {
  8600. +   function SetAngularUnits($name,$to_radians) {
  8601.         return SpatialReference_SetAngularUnits($this->_cPtr,$name,$to_radians);
  8602.     }
  8603.  
  8604. -   public function GetAngularUnits() {
  8605. +   function GetAngularUnits() {
  8606.         return SpatialReference_GetAngularUnits($this->_cPtr);
  8607.     }
  8608.  
  8609. -   public function SetLinearUnits($name,$to_meters) {
  8610. +   function SetLinearUnits($name,$to_meters) {
  8611.         return SpatialReference_SetLinearUnits($this->_cPtr,$name,$to_meters);
  8612.     }
  8613.  
  8614. -   public function SetLinearUnitsAndUpdateParameters($name,$to_meters) {
  8615. +   function SetLinearUnitsAndUpdateParameters($name,$to_meters) {
  8616.         return SpatialReference_SetLinearUnitsAndUpdateParameters($this->_cPtr,$name,$to_meters);
  8617.     }
  8618.  
  8619. -   public function GetLinearUnits() {
  8620. +   function GetLinearUnits() {
  8621.         return SpatialReference_GetLinearUnits($this->_cPtr);
  8622.     }
  8623.  
  8624. -   public function GetLinearUnitsName() {
  8625. +   function GetLinearUnitsName() {
  8626.         return SpatialReference_GetLinearUnitsName($this->_cPtr);
  8627.     }
  8628.  
  8629. -   public function GetAuthorityCode($target_key) {
  8630. +   function GetAuthorityCode($target_key) {
  8631.         return SpatialReference_GetAuthorityCode($this->_cPtr,$target_key);
  8632.     }
  8633.  
  8634. -   public function GetAuthorityName($target_key) {
  8635. +   function GetAuthorityName($target_key) {
  8636.         return SpatialReference_GetAuthorityName($this->_cPtr,$target_key);
  8637.     }
  8638.  
  8639. -   public function SetUTM($zone,$north=1) {
  8640. +   function SetUTM($zone,$north=1) {
  8641.         return SpatialReference_SetUTM($this->_cPtr,$zone,$north);
  8642.     }
  8643.  
  8644. -   public function GetUTMZone() {
  8645. +   function GetUTMZone() {
  8646.         return SpatialReference_GetUTMZone($this->_cPtr);
  8647.     }
  8648.  
  8649. -   public function SetStatePlane($zone,$is_nad83=1,$unitsname="",$units=0.0) {
  8650. +   function SetStatePlane($zone,$is_nad83=1,$unitsname="",$units=0.0) {
  8651.         return SpatialReference_SetStatePlane($this->_cPtr,$zone,$is_nad83,$unitsname,$units);
  8652.     }
  8653.  
  8654. -   public function AutoIdentifyEPSG() {
  8655. +   function AutoIdentifyEPSG() {
  8656.         return SpatialReference_AutoIdentifyEPSG($this->_cPtr);
  8657.     }
  8658.  
  8659. -   public function SetProjection($arg) {
  8660. +   function SetProjection($arg) {
  8661.         return SpatialReference_SetProjection($this->_cPtr,$arg);
  8662.     }
  8663.  
  8664. -   public function SetProjParm($name,$val) {
  8665. +   function SetProjParm($name,$val) {
  8666.         return SpatialReference_SetProjParm($this->_cPtr,$name,$val);
  8667.     }
  8668.  
  8669. -   public function GetProjParm($name,$default_val=0.0) {
  8670. +   function GetProjParm($name,$default_val=0.0) {
  8671.         return SpatialReference_GetProjParm($this->_cPtr,$name,$default_val);
  8672.     }
  8673.  
  8674. -   public function SetNormProjParm($name,$val) {
  8675. +   function SetNormProjParm($name,$val) {
  8676.         return SpatialReference_SetNormProjParm($this->_cPtr,$name,$val);
  8677.     }
  8678.  
  8679. -   public function GetNormProjParm($name,$default_val=0.0) {
  8680. +   function GetNormProjParm($name,$default_val=0.0) {
  8681.         return SpatialReference_GetNormProjParm($this->_cPtr,$name,$default_val);
  8682.     }
  8683.  
  8684. -   public function GetSemiMajor() {
  8685. +   function GetSemiMajor() {
  8686.         return SpatialReference_GetSemiMajor($this->_cPtr);
  8687.     }
  8688.  
  8689. -   public function GetSemiMinor() {
  8690. +   function GetSemiMinor() {
  8691.         return SpatialReference_GetSemiMinor($this->_cPtr);
  8692.     }
  8693.  
  8694. -   public function GetInvFlattening() {
  8695. +   function GetInvFlattening() {
  8696.         return SpatialReference_GetInvFlattening($this->_cPtr);
  8697.     }
  8698.  
  8699. -   public function SetACEA($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8700. +   function SetACEA($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8701.         return SpatialReference_SetACEA($this->_cPtr,$stdp1,$stdp2,$clat,$clong,$fe,$fn);
  8702.     }
  8703.  
  8704. -   public function SetAE($clat,$clong,$fe,$fn) {
  8705. +   function SetAE($clat,$clong,$fe,$fn) {
  8706.         return SpatialReference_SetAE($this->_cPtr,$clat,$clong,$fe,$fn);
  8707.     }
  8708.  
  8709. -   public function SetBonne($stdp,$cm,$fe,$fn) {
  8710. +   function SetBonne($stdp,$cm,$fe,$fn) {
  8711.         return SpatialReference_SetBonne($this->_cPtr,$stdp,$cm,$fe,$fn);
  8712.     }
  8713.  
  8714. -   public function SetCEA($stdp1,$cm,$fe,$fn) {
  8715. +   function SetCEA($stdp1,$cm,$fe,$fn) {
  8716.         return SpatialReference_SetCEA($this->_cPtr,$stdp1,$cm,$fe,$fn);
  8717.     }
  8718.  
  8719. -   public function SetCS($clat,$clong,$fe,$fn) {
  8720. +   function SetCS($clat,$clong,$fe,$fn) {
  8721.         return SpatialReference_SetCS($this->_cPtr,$clat,$clong,$fe,$fn);
  8722.     }
  8723.  
  8724. -   public function SetEC($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8725. +   function SetEC($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8726.         return SpatialReference_SetEC($this->_cPtr,$stdp1,$stdp2,$clat,$clong,$fe,$fn);
  8727.     }
  8728.  
  8729. -   public function SetEckertIV($cm,$fe,$fn) {
  8730. +   function SetEckertIV($cm,$fe,$fn) {
  8731.         return SpatialReference_SetEckertIV($this->_cPtr,$cm,$fe,$fn);
  8732.     }
  8733.  
  8734. -   public function SetEckertVI($cm,$fe,$fn) {
  8735. +   function SetEckertVI($cm,$fe,$fn) {
  8736.         return SpatialReference_SetEckertVI($this->_cPtr,$cm,$fe,$fn);
  8737.     }
  8738.  
  8739. -   public function SetEquirectangular($clat,$clong,$fe,$fn) {
  8740. +   function SetEquirectangular($clat,$clong,$fe,$fn) {
  8741.         return SpatialReference_SetEquirectangular($this->_cPtr,$clat,$clong,$fe,$fn);
  8742.     }
  8743.  
  8744. -   public function SetEquirectangular2($clat,$clong,$pseudostdparallellat,$fe,$fn) {
  8745. +   function SetEquirectangular2($clat,$clong,$pseudostdparallellat,$fe,$fn) {
  8746.         return SpatialReference_SetEquirectangular2($this->_cPtr,$clat,$clong,$pseudostdparallellat,$fe,$fn);
  8747.     }
  8748.  
  8749. -   public function SetGaussSchreiberTMercator($clat,$clong,$sc,$fe,$fn) {
  8750. +   function SetGaussSchreiberTMercator($clat,$clong,$sc,$fe,$fn) {
  8751.         return SpatialReference_SetGaussSchreiberTMercator($this->_cPtr,$clat,$clong,$sc,$fe,$fn);
  8752.     }
  8753.  
  8754. -   public function SetGS($cm,$fe,$fn) {
  8755. +   function SetGS($cm,$fe,$fn) {
  8756.         return SpatialReference_SetGS($this->_cPtr,$cm,$fe,$fn);
  8757.     }
  8758.  
  8759. -   public function SetGH($cm,$fe,$fn) {
  8760. +   function SetGH($cm,$fe,$fn) {
  8761.         return SpatialReference_SetGH($this->_cPtr,$cm,$fe,$fn);
  8762.     }
  8763.  
  8764. -   public function SetGEOS($cm,$satelliteheight,$fe,$fn) {
  8765. +   function SetGEOS($cm,$satelliteheight,$fe,$fn) {
  8766.         return SpatialReference_SetGEOS($this->_cPtr,$cm,$satelliteheight,$fe,$fn);
  8767.     }
  8768.  
  8769. -   public function SetGnomonic($clat,$clong,$fe,$fn) {
  8770. +   function SetGnomonic($clat,$clong,$fe,$fn) {
  8771.         return SpatialReference_SetGnomonic($this->_cPtr,$clat,$clong,$fe,$fn);
  8772.     }
  8773.  
  8774. -   public function SetHOM($clat,$clong,$azimuth,$recttoskew,$scale,$fe,$fn) {
  8775. +   function SetHOM($clat,$clong,$azimuth,$recttoskew,$scale,$fe,$fn) {
  8776.         return SpatialReference_SetHOM($this->_cPtr,$clat,$clong,$azimuth,$recttoskew,$scale,$fe,$fn);
  8777.     }
  8778.  
  8779. -   public function SetHOM2PNO($clat,$dfLat1,$dfLong1,$dfLat2,$dfLong2,$scale,$fe,$fn) {
  8780. +   function SetHOM2PNO($clat,$dfLat1,$dfLong1,$dfLat2,$dfLong2,$scale,$fe,$fn) {
  8781.         return SpatialReference_SetHOM2PNO($this->_cPtr,$clat,$dfLat1,$dfLong1,$dfLat2,$dfLong2,$scale,$fe,$fn);
  8782.     }
  8783.  
  8784. -   public function SetKrovak($clat,$clong,$azimuth,$pseudostdparallellat,$scale,$fe,$fn) {
  8785. +   function SetKrovak($clat,$clong,$azimuth,$pseudostdparallellat,$scale,$fe,$fn) {
  8786.         return SpatialReference_SetKrovak($this->_cPtr,$clat,$clong,$azimuth,$pseudostdparallellat,$scale,$fe,$fn);
  8787.     }
  8788.  
  8789. -   public function SetLAEA($clat,$clong,$fe,$fn) {
  8790. +   function SetLAEA($clat,$clong,$fe,$fn) {
  8791.         return SpatialReference_SetLAEA($this->_cPtr,$clat,$clong,$fe,$fn);
  8792.     }
  8793.  
  8794. -   public function SetLCC($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8795. +   function SetLCC($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8796.         return SpatialReference_SetLCC($this->_cPtr,$stdp1,$stdp2,$clat,$clong,$fe,$fn);
  8797.     }
  8798.  
  8799. -   public function SetLCC1SP($clat,$clong,$scale,$fe,$fn) {
  8800. +   function SetLCC1SP($clat,$clong,$scale,$fe,$fn) {
  8801.         return SpatialReference_SetLCC1SP($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8802.     }
  8803.  
  8804. -   public function SetLCCB($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8805. +   function SetLCCB($stdp1,$stdp2,$clat,$clong,$fe,$fn) {
  8806.         return SpatialReference_SetLCCB($this->_cPtr,$stdp1,$stdp2,$clat,$clong,$fe,$fn);
  8807.     }
  8808.  
  8809. -   public function SetMC($clat,$clong,$fe,$fn) {
  8810. +   function SetMC($clat,$clong,$fe,$fn) {
  8811.         return SpatialReference_SetMC($this->_cPtr,$clat,$clong,$fe,$fn);
  8812.     }
  8813.  
  8814. -   public function SetMercator($clat,$clong,$scale,$fe,$fn) {
  8815. +   function SetMercator($clat,$clong,$scale,$fe,$fn) {
  8816.         return SpatialReference_SetMercator($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8817.     }
  8818.  
  8819. -   public function SetMollweide($cm,$fe,$fn) {
  8820. +   function SetMollweide($cm,$fe,$fn) {
  8821.         return SpatialReference_SetMollweide($this->_cPtr,$cm,$fe,$fn);
  8822.     }
  8823.  
  8824. -   public function SetNZMG($clat,$clong,$fe,$fn) {
  8825. +   function SetNZMG($clat,$clong,$fe,$fn) {
  8826.         return SpatialReference_SetNZMG($this->_cPtr,$clat,$clong,$fe,$fn);
  8827.     }
  8828.  
  8829. -   public function SetOS($dfOriginLat,$dfCMeridian,$scale,$fe,$fn) {
  8830. +   function SetOS($dfOriginLat,$dfCMeridian,$scale,$fe,$fn) {
  8831.         return SpatialReference_SetOS($this->_cPtr,$dfOriginLat,$dfCMeridian,$scale,$fe,$fn);
  8832.     }
  8833.  
  8834. -   public function SetOrthographic($clat,$clong,$fe,$fn) {
  8835. +   function SetOrthographic($clat,$clong,$fe,$fn) {
  8836.         return SpatialReference_SetOrthographic($this->_cPtr,$clat,$clong,$fe,$fn);
  8837.     }
  8838.  
  8839. -   public function SetPolyconic($clat,$clong,$fe,$fn) {
  8840. +   function SetPolyconic($clat,$clong,$fe,$fn) {
  8841.         return SpatialReference_SetPolyconic($this->_cPtr,$clat,$clong,$fe,$fn);
  8842.     }
  8843.  
  8844. -   public function SetPS($clat,$clong,$scale,$fe,$fn) {
  8845. +   function SetPS($clat,$clong,$scale,$fe,$fn) {
  8846.         return SpatialReference_SetPS($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8847.     }
  8848.  
  8849. -   public function SetRobinson($clong,$fe,$fn) {
  8850. +   function SetRobinson($clong,$fe,$fn) {
  8851.         return SpatialReference_SetRobinson($this->_cPtr,$clong,$fe,$fn);
  8852.     }
  8853.  
  8854. -   public function SetSinusoidal($clong,$fe,$fn) {
  8855. +   function SetSinusoidal($clong,$fe,$fn) {
  8856.         return SpatialReference_SetSinusoidal($this->_cPtr,$clong,$fe,$fn);
  8857.     }
  8858.  
  8859. -   public function SetStereographic($clat,$clong,$scale,$fe,$fn) {
  8860. +   function SetStereographic($clat,$clong,$scale,$fe,$fn) {
  8861.         return SpatialReference_SetStereographic($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8862.     }
  8863.  
  8864. -   public function SetSOC($latitudeoforigin,$cm,$fe,$fn) {
  8865. +   function SetSOC($latitudeoforigin,$cm,$fe,$fn) {
  8866.         return SpatialReference_SetSOC($this->_cPtr,$latitudeoforigin,$cm,$fe,$fn);
  8867.     }
  8868.  
  8869. -   public function SetTM($clat,$clong,$scale,$fe,$fn) {
  8870. +   function SetTM($clat,$clong,$scale,$fe,$fn) {
  8871.         return SpatialReference_SetTM($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8872.     }
  8873.  
  8874. -   public function SetTMVariant($pszVariantName,$clat,$clong,$scale,$fe,$fn) {
  8875. +   function SetTMVariant($pszVariantName,$clat,$clong,$scale,$fe,$fn) {
  8876.         return SpatialReference_SetTMVariant($this->_cPtr,$pszVariantName,$clat,$clong,$scale,$fe,$fn);
  8877.     }
  8878.  
  8879. -   public function SetTMG($clat,$clong,$fe,$fn) {
  8880. +   function SetTMG($clat,$clong,$fe,$fn) {
  8881.         return SpatialReference_SetTMG($this->_cPtr,$clat,$clong,$fe,$fn);
  8882.     }
  8883.  
  8884. -   public function SetTMSO($clat,$clong,$scale,$fe,$fn) {
  8885. +   function SetTMSO($clat,$clong,$scale,$fe,$fn) {
  8886.         return SpatialReference_SetTMSO($this->_cPtr,$clat,$clong,$scale,$fe,$fn);
  8887.     }
  8888.  
  8889. -   public function SetVDG($clong,$fe,$fn) {
  8890. +   function SetVDG($clong,$fe,$fn) {
  8891.         return SpatialReference_SetVDG($this->_cPtr,$clong,$fe,$fn);
  8892.     }
  8893.  
  8894. -   public function SetWellKnownGeogCS($name) {
  8895. +   function SetWellKnownGeogCS($name) {
  8896.         return SpatialReference_SetWellKnownGeogCS($this->_cPtr,$name);
  8897.     }
  8898.  
  8899. -   public function SetFromUserInput($name) {
  8900. +   function SetFromUserInput($name) {
  8901.         return SpatialReference_SetFromUserInput($this->_cPtr,$name);
  8902.     }
  8903.  
  8904. -   public function CopyGeogCSFrom($rhs) {
  8905. +   function CopyGeogCSFrom($rhs) {
  8906.         return SpatialReference_CopyGeogCSFrom($this->_cPtr,$rhs);
  8907.     }
  8908.  
  8909. -   public function SetTOWGS84($p1,$p2,$p3,$p4=0.0,$p5=0.0,$p6=0.0,$p7=0.0) {
  8910. +   function SetTOWGS84($p1,$p2,$p3,$p4=0.0,$p5=0.0,$p6=0.0,$p7=0.0) {
  8911.         return SpatialReference_SetTOWGS84($this->_cPtr,$p1,$p2,$p3,$p4,$p5,$p6,$p7);
  8912.     }
  8913.  
  8914. -   public function GetTOWGS84() {
  8915. +   function GetTOWGS84() {
  8916.         return SpatialReference_GetTOWGS84($this->_cPtr);
  8917.     }
  8918.  
  8919. -   public function SetLocalCS($pszName) {
  8920. +   function SetLocalCS($pszName) {
  8921.         return SpatialReference_SetLocalCS($this->_cPtr,$pszName);
  8922.     }
  8923.  
  8924. -   public function SetGeogCS($pszGeogName,$pszDatumName,$pszEllipsoidName,$dfSemiMajor,$dfInvFlattening,$pszPMName="Greenwich",$dfPMOffset=0.0,$pszUnits="degree",$dfConvertToRadians=0.0174532925199433) {
  8925. +   function SetGeogCS($pszGeogName,$pszDatumName,$pszEllipsoidName,$dfSemiMajor,$dfInvFlattening,$pszPMName="Greenwich",$dfPMOffset=0.0,$pszUnits="degree",$dfConvertToRadians=0.0174532925199433) {
  8926.         return SpatialReference_SetGeogCS($this->_cPtr,$pszGeogName,$pszDatumName,$pszEllipsoidName,$dfSemiMajor,$dfInvFlattening,$pszPMName,$dfPMOffset,$pszUnits,$dfConvertToRadians);
  8927.     }
  8928.  
  8929. -   public function SetProjCS($name="unnamed") {
  8930. +   function SetProjCS($name="unnamed") {
  8931.         return SpatialReference_SetProjCS($this->_cPtr,$name);
  8932.     }
  8933.  
  8934. -   public function ImportFromWkt($ppszInput) {
  8935. +   function ImportFromWkt($ppszInput) {
  8936.         return SpatialReference_ImportFromWkt($this->_cPtr,$ppszInput);
  8937.     }
  8938.  
  8939. -   public function ImportFromProj4($ppszInput) {
  8940. +   function ImportFromProj4($ppszInput) {
  8941.         return SpatialReference_ImportFromProj4($this->_cPtr,$ppszInput);
  8942.     }
  8943.  
  8944. -   public function ImportFromUrl($url) {
  8945. +   function ImportFromUrl($url) {
  8946.         return SpatialReference_ImportFromUrl($this->_cPtr,$url);
  8947.     }
  8948.  
  8949. -   public function ImportFromESRI($ppszInput) {
  8950. +   function ImportFromESRI($ppszInput) {
  8951.         return SpatialReference_ImportFromESRI($this->_cPtr,$ppszInput);
  8952.     }
  8953.  
  8954. -   public function ImportFromEPSG($arg) {
  8955. +   function ImportFromEPSG($arg) {
  8956.         return SpatialReference_ImportFromEPSG($this->_cPtr,$arg);
  8957.     }
  8958.  
  8959. -   public function ImportFromEPSGA($arg) {
  8960. +   function ImportFromEPSGA($arg) {
  8961.         return SpatialReference_ImportFromEPSGA($this->_cPtr,$arg);
  8962.     }
  8963.  
  8964. -   public function ImportFromPCI($proj,$units="METRE",$argin=null) {
  8965. +   function ImportFromPCI($proj,$units="METRE",$argin=null) {
  8966.         switch (func_num_args()) {
  8967.         case 1: case 2: $r=SpatialReference_ImportFromPCI($this->_cPtr,$proj,$units); break;
  8968.         default: $r=SpatialReference_ImportFromPCI($this->_cPtr,$proj,$units,$argin);
  8969. @@ -636,7 +640,7 @@
  8970.         return $r;
  8971.     }
  8972.  
  8973. -   public function ImportFromUSGS($proj_code,$zone=0,$argin=null,$datum_code=0) {
  8974. +   function ImportFromUSGS($proj_code,$zone=0,$argin=null,$datum_code=0) {
  8975.         switch (func_num_args()) {
  8976.         case 1: case 2: $r=SpatialReference_ImportFromUSGS($this->_cPtr,$proj_code,$zone); break;
  8977.         default: $r=SpatialReference_ImportFromUSGS($this->_cPtr,$proj_code,$zone,$argin,$datum_code);
  8978. @@ -644,47 +648,47 @@
  8979.         return $r;
  8980.     }
  8981.  
  8982. -   public function ImportFromXML($xmlString) {
  8983. +   function ImportFromXML($xmlString) {
  8984.         return SpatialReference_ImportFromXML($this->_cPtr,$xmlString);
  8985.     }
  8986.  
  8987. -   public function ImportFromERM($proj,$datum,$units) {
  8988. +   function ImportFromERM($proj,$datum,$units) {
  8989.         return SpatialReference_ImportFromERM($this->_cPtr,$proj,$datum,$units);
  8990.     }
  8991.  
  8992. -   public function ImportFromMICoordSys($pszCoordSys) {
  8993. +   function ImportFromMICoordSys($pszCoordSys) {
  8994.         return SpatialReference_ImportFromMICoordSys($this->_cPtr,$pszCoordSys);
  8995.     }
  8996.  
  8997. -   public function ExportToWkt() {
  8998. +   function ExportToWkt() {
  8999.         return SpatialReference_ExportToWkt($this->_cPtr);
  9000.     }
  9001.  
  9002. -   public function ExportToPrettyWkt($simplify=0) {
  9003. +   function ExportToPrettyWkt($simplify=0) {
  9004.         return SpatialReference_ExportToPrettyWkt($this->_cPtr,$simplify);
  9005.     }
  9006.  
  9007. -   public function ExportToProj4() {
  9008. +   function ExportToProj4() {
  9009.         return SpatialReference_ExportToProj4($this->_cPtr);
  9010.     }
  9011.  
  9012. -   public function ExportToPCI() {
  9013. +   function ExportToPCI() {
  9014.         return SpatialReference_ExportToPCI($this->_cPtr);
  9015.     }
  9016.  
  9017. -   public function ExportToUSGS() {
  9018. +   function ExportToUSGS() {
  9019.         return SpatialReference_ExportToUSGS($this->_cPtr);
  9020.     }
  9021.  
  9022. -   public function ExportToXML($dialect="") {
  9023. +   function ExportToXML($dialect="") {
  9024.         return SpatialReference_ExportToXML($this->_cPtr,$dialect);
  9025.     }
  9026.  
  9027. -   public function ExportToMICoordSys() {
  9028. +   function ExportToMICoordSys() {
  9029.         return SpatialReference_ExportToMICoordSys($this->_cPtr);
  9030.     }
  9031.  
  9032. -   public function CloneGeogCS() {
  9033. +   function CloneGeogCS() {
  9034.         $r=SpatialReference_CloneGeogCS($this->_cPtr);
  9035.         if (is_resource($r)) {
  9036.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9037. @@ -696,7 +700,7 @@
  9038.         return $r;
  9039.     }
  9040.  
  9041. -   public function c_Clone() {
  9042. +   function c_Clone() {
  9043.         $r=SpatialReference_c_Clone($this->_cPtr);
  9044.         if (is_resource($r)) {
  9045.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9046. @@ -708,27 +712,27 @@
  9047.         return $r;
  9048.     }
  9049.  
  9050. -   public function Validate() {
  9051. +   function Validate() {
  9052.         return SpatialReference_Validate($this->_cPtr);
  9053.     }
  9054.  
  9055. -   public function StripCTParms() {
  9056. +   function StripCTParms() {
  9057.         return SpatialReference_StripCTParms($this->_cPtr);
  9058.     }
  9059.  
  9060. -   public function FixupOrdering() {
  9061. +   function FixupOrdering() {
  9062.         return SpatialReference_FixupOrdering($this->_cPtr);
  9063.     }
  9064.  
  9065. -   public function Fixup() {
  9066. +   function Fixup() {
  9067.         return SpatialReference_Fixup($this->_cPtr);
  9068.     }
  9069.  
  9070. -   public function MorphToESRI() {
  9071. +   function MorphToESRI() {
  9072.         return SpatialReference_MorphToESRI($this->_cPtr);
  9073.     }
  9074.  
  9075. -   public function MorphFromESRI() {
  9076. +   function MorphFromESRI() {
  9077.         return SpatialReference_MorphFromESRI($this->_cPtr);
  9078.     }
  9079.  }
  9080. @@ -752,7 +756,7 @@
  9081.         return $this->_pData[$var];
  9082.     }
  9083.  
  9084. -   public function __construct($src,$dst) {
  9085. +   function __construct($src,$dst) {
  9086.         if (is_resource($src) && get_resource_type($src) === '_p_OSRCoordinateTransformationShadow') {
  9087.             $this->_cPtr=$src;
  9088.             return;
  9089. @@ -760,14 +764,15 @@
  9090.         $this->_cPtr=new_CoordinateTransformation($src,$dst);
  9091.     }
  9092.  
  9093. -   public function TransformPoint($inout_or_x,$y=null,$z=0.0) {
  9094. +   function TransformPoint($inout_or_x,$y=null,$z=0.0) {
  9095.         switch (func_num_args()) {
  9096.         case 1: CoordinateTransformation_TransformPoint($this->_cPtr,$inout_or_x); break;
  9097.         default: CoordinateTransformation_TransformPoint($this->_cPtr,$inout_or_x,$y,$z);
  9098.         }
  9099. +       return $r;
  9100.     }
  9101.  
  9102. -   public function TransformPoints($nCount,$x,$y,$z) {
  9103. +   function TransformPoints($nCount,$x,$y,$z) {
  9104.         CoordinateTransformation_TransformPoints($this->_cPtr,$nCount,$x,$y,$z);
  9105.     }
  9106.  }
  9107. Index: swig/php/gdal.php
  9108. ===================================================================
  9109. --- swig/php/gdal.php   (revision 21891)
  9110. +++ swig/php/gdal.php   (working copy)
  9111. @@ -2,7 +2,7 @@
  9112.  
  9113.  /* ----------------------------------------------------------------------------
  9114.   * This file was automatically generated by SWIG (http://www.swig.org).
  9115. - * Version 1.3.40
  9116. + * Version 2.0.1
  9117.   *
  9118.   * This file is not intended to be easily readable and contains a number of
  9119.   * coding conventions designed to improve portability and efficiency. Do not make
  9120. @@ -386,7 +386,7 @@
  9121.     }
  9122.  
  9123.     static function ApplyGeoTransform($padfGeoTransform,$dfPixel,$dfLine) {
  9124. -       ApplyGeoTransform($padfGeoTransform,$dfPixel,$dfLine);
  9125. +       return ApplyGeoTransform($padfGeoTransform,$dfPixel,$dfLine);
  9126.     }
  9127.  
  9128.     static function InvGeoTransform($gt_in) {
  9129. @@ -551,32 +551,32 @@
  9130.         $this->_cPtr=$h;
  9131.     }
  9132.  
  9133. -   public function GetDescription() {
  9134. +   function GetDescription() {
  9135.         return MajorObject_GetDescription($this->_cPtr);
  9136.     }
  9137.  
  9138. -   public function SetDescription($pszNewDesc) {
  9139. +   function SetDescription($pszNewDesc) {
  9140.         MajorObject_SetDescription($this->_cPtr,$pszNewDesc);
  9141.     }
  9142.  
  9143. -   public function GetMetadata_Dict($pszDomain="") {
  9144. +   function GetMetadata_Dict($pszDomain="") {
  9145.         return MajorObject_GetMetadata_Dict($this->_cPtr,$pszDomain);
  9146.     }
  9147.  
  9148. -   public function GetMetadata_List($pszDomain="") {
  9149. +   function GetMetadata_List($pszDomain="") {
  9150.         return MajorObject_GetMetadata_List($this->_cPtr,$pszDomain);
  9151.     }
  9152.  
  9153. -   public function SetMetadata($papszMetadata_or_pszMetadataString,$pszDomain="") {
  9154. +   function SetMetadata($papszMetadata_or_pszMetadataString,$pszDomain="") {
  9155.         $r=MajorObject_SetMetadata($this->_cPtr,$papszMetadata_or_pszMetadataString,$pszDomain);
  9156.         return $r;
  9157.     }
  9158.  
  9159. -   public function GetMetadataItem($pszName,$pszDomain="") {
  9160. +   function GetMetadataItem($pszName,$pszDomain="") {
  9161.         return MajorObject_GetMetadataItem($this->_cPtr,$pszName,$pszDomain);
  9162.     }
  9163.  
  9164. -   public function SetMetadataItem($pszName,$pszValue,$pszDomain="") {
  9165. +   function SetMetadataItem($pszName,$pszValue,$pszDomain="") {
  9166.         return MajorObject_SetMetadataItem($this->_cPtr,$pszName,$pszValue,$pszDomain);
  9167.     }
  9168.  }
  9169. @@ -609,7 +609,7 @@
  9170.         $this->_cPtr=$h;
  9171.     }
  9172.  
  9173. -   public function Create($utf8_path,$xsize,$ysize,$bands=1,$eType=null,$options=null) {
  9174. +   function Create($utf8_path,$xsize,$ysize,$bands=1,$eType=null,$options=null) {
  9175.         if (is_resource($r)) {
  9176.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9177.             if (!class_exists($c)) {
  9178. @@ -620,7 +620,7 @@
  9179.         return $r;
  9180.     }
  9181.  
  9182. -   public function CreateCopy($utf8_path,$src,$strict=1,$options=null,$callback=null,$callback_data=null) {
  9183. +   function CreateCopy($utf8_path,$src,$strict=1,$options=null,$callback=null,$callback_data=null) {
  9184.         if (is_resource($r)) {
  9185.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9186.             if (!class_exists($c)) {
  9187. @@ -631,19 +631,23 @@
  9188.         return $r;
  9189.     }
  9190.  
  9191. -   public function Delete($utf8_path) {
  9192. +   function Delete($utf8_path) {
  9193.         return Driver_Delete($this->_cPtr,$utf8_path);
  9194.     }
  9195.  
  9196. -   public function Rename($newName,$oldName) {
  9197. +   function Rename($newName,$oldName) {
  9198.         return Driver_Rename($this->_cPtr,$newName,$oldName);
  9199.     }
  9200.  
  9201. -   public function Register() {
  9202. +   function CopyFiles($newName,$oldName) {
  9203. +       return Driver_CopyFiles($this->_cPtr,$newName,$oldName);
  9204. +   }
  9205. +
  9206. +   function Register() {
  9207.         return Driver_Register($this->_cPtr);
  9208.     }
  9209.  
  9210. -   public function Deregister() {
  9211. +   function Deregister() {
  9212.         Driver_Deregister($this->_cPtr);
  9213.     }
  9214.  }
  9215. @@ -677,7 +681,7 @@
  9216.         return $this->_pData[$var];
  9217.     }
  9218.  
  9219. -   public function __construct($res=null) {
  9220. +   function __construct($res=null) {
  9221.         if (is_resource($res) && get_resource_type($res) === '_p_GDALColorEntry') {
  9222.             $this->_cPtr=$res;
  9223.             return;
  9224. @@ -715,7 +719,7 @@
  9225.         return $this->_pData[$var];
  9226.     }
  9227.  
  9228. -   public function __construct($x=0.0,$y=0.0,$z=0.0,$pixel=0.0,$line=0.0,$info="",$id="") {
  9229. +   function __construct($x=0.0,$y=0.0,$z=0.0,$pixel=0.0,$line=0.0,$info="",$id="") {
  9230.         if (is_resource($x) && get_resource_type($x) === '_p_GDAL_GCP') {
  9231.             $this->_cPtr=$x;
  9232.             return;
  9233. @@ -746,15 +750,15 @@
  9234.         $this->_cPtr=$h;
  9235.     }
  9236.  
  9237. -   public function GetNextUpdatedRegion($timeout) {
  9238. +   function GetNextUpdatedRegion($timeout) {
  9239.         return AsyncReader_GetNextUpdatedRegion($this->_cPtr,$timeout);
  9240.     }
  9241.  
  9242. -   public function LockBuffer($timeout) {
  9243. +   function LockBuffer($timeout) {
  9244.         return AsyncReader_LockBuffer($this->_cPtr,$timeout);
  9245.     }
  9246.  
  9247. -   public function UnlockBuffer() {
  9248. +   function UnlockBuffer() {
  9249.         AsyncReader_UnlockBuffer($this->_cPtr);
  9250.     }
  9251.  }
  9252. @@ -787,7 +791,7 @@
  9253.         $this->_cPtr=$h;
  9254.     }
  9255.  
  9256. -   public function GetDriver() {
  9257. +   function GetDriver() {
  9258.         $r=Dataset_GetDriver($this->_cPtr);
  9259.         if (is_resource($r)) {
  9260.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9261. @@ -799,7 +803,7 @@
  9262.         return $r;
  9263.     }
  9264.  
  9265. -   public function GetRasterBand($nBand) {
  9266. +   function GetRasterBand($nBand) {
  9267.         $r=Dataset_GetRasterBand($this->_cPtr,$nBand);
  9268.         if (is_resource($r)) {
  9269.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9270. @@ -811,27 +815,27 @@
  9271.         return $r;
  9272.     }
  9273.  
  9274. -   public function GetProjection() {
  9275. +   function GetProjection() {
  9276.         return Dataset_GetProjection($this->_cPtr);
  9277.     }
  9278.  
  9279. -   public function GetProjectionRef() {
  9280. +   function GetProjectionRef() {
  9281.         return Dataset_GetProjectionRef($this->_cPtr);
  9282.     }
  9283.  
  9284. -   public function SetProjection($prj) {
  9285. +   function SetProjection($prj) {
  9286.         return Dataset_SetProjection($this->_cPtr,$prj);
  9287.     }
  9288.  
  9289. -   public function GetGeoTransform() {
  9290. -       Dataset_GetGeoTransform($this->_cPtr);
  9291. +   function GetGeoTransform() {
  9292. +       return Dataset_GetGeoTransform($this->_cPtr);
  9293.     }
  9294.  
  9295. -   public function SetGeoTransform($argin) {
  9296. +   function SetGeoTransform($argin) {
  9297.         return Dataset_SetGeoTransform($this->_cPtr,$argin);
  9298.     }
  9299.  
  9300. -   public function BuildOverviews($resampling="NEAREST",$overviewlist=0,$callback=null,$callback_data=null) {
  9301. +   function BuildOverviews($resampling="NEAREST",$overviewlist=0,$callback=null,$callback_data=null) {
  9302.         switch (func_num_args()) {
  9303.         case 0: case 1: case 2: $r=Dataset_BuildOverviews($this->_cPtr,$resampling,$overviewlist); break;
  9304.         default: $r=Dataset_BuildOverviews($this->_cPtr,$resampling,$overviewlist,$callback,$callback_data);
  9305. @@ -839,27 +843,27 @@
  9306.         return $r;
  9307.     }
  9308.  
  9309. -   public function GetGCPCount() {
  9310. +   function GetGCPCount() {
  9311.         return Dataset_GetGCPCount($this->_cPtr);
  9312.     }
  9313.  
  9314. -   public function GetGCPProjection() {
  9315. +   function GetGCPProjection() {
  9316.         return Dataset_GetGCPProjection($this->_cPtr);
  9317.     }
  9318.  
  9319. -   public function GetGCPs() {
  9320. -       Dataset_GetGCPs($this->_cPtr);
  9321. +   function GetGCPs() {
  9322. +       return Dataset_GetGCPs($this->_cPtr);
  9323.     }
  9324.  
  9325. -   public function SetGCPs($nGCPs,$pszGCPProjection) {
  9326. +   function SetGCPs($nGCPs,$pszGCPProjection) {
  9327.         return Dataset_SetGCPs($this->_cPtr,$nGCPs,$pszGCPProjection);
  9328.     }
  9329.  
  9330. -   public function FlushCache() {
  9331. +   function FlushCache() {
  9332.         Dataset_FlushCache($this->_cPtr);
  9333.     }
  9334.  
  9335. -   public function AddBand($datatype=null,$options=null) {
  9336. +   function AddBand($datatype=null,$options=null) {
  9337.         switch (func_num_args()) {
  9338.         case 0: $r=Dataset_AddBand($this->_cPtr); break;
  9339.         default: $r=Dataset_AddBand($this->_cPtr,$datatype,$options);
  9340. @@ -867,19 +871,19 @@
  9341.         return $r;
  9342.     }
  9343.  
  9344. -   public function CreateMaskBand($nFlags) {
  9345. +   function CreateMaskBand($nFlags) {
  9346.         return Dataset_CreateMaskBand($this->_cPtr,$nFlags);
  9347.     }
  9348.  
  9349. -   public function GetFileList() {
  9350. +   function GetFileList() {
  9351.         return Dataset_GetFileList($this->_cPtr);
  9352.     }
  9353.  
  9354. -   public function WriteRaster($xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$band_list=0,$buf_pixel_space=null,$buf_line_space=null,$buf_band_space=null) {
  9355. +   function WriteRaster($xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$band_list=0,$buf_pixel_space=null,$buf_line_space=null,$buf_band_space=null) {
  9356.         return Dataset_WriteRaster($this->_cPtr,$xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize,$buf_ysize,$buf_type,$band_list,$buf_pixel_space,$buf_line_space,$buf_band_space);
  9357.     }
  9358.  
  9359. -   public function ReadRaster($xoff,$yoff,$xsize,$ysize,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$band_list=0,$buf_pixel_space=null,$buf_line_space=null,$buf_band_space=null) {
  9360. +   function ReadRaster($xoff,$yoff,$xsize,$ysize,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$band_list=0,$buf_pixel_space=null,$buf_line_space=null,$buf_band_space=null) {
  9361.         return Dataset_ReadRaster($this->_cPtr,$xoff,$yoff,$xsize,$ysize,$buf_xsize,$buf_ysize,$buf_type,$band_list,$buf_pixel_space,$buf_line_space,$buf_band_space);
  9362.     }
  9363.  }
  9364. @@ -912,83 +916,83 @@
  9365.         $this->_cPtr=$h;
  9366.     }
  9367.  
  9368. -   public function GetBand() {
  9369. +   function GetBand() {
  9370.         return Band_GetBand($this->_cPtr);
  9371.     }
  9372.  
  9373. -   public function GetBlockSize() {
  9374. -       Band_GetBlockSize($this->_cPtr);
  9375. +   function GetBlockSize() {
  9376. +       return Band_GetBlockSize($this->_cPtr);
  9377.     }
  9378.  
  9379. -   public function GetColorInterpretation() {
  9380. +   function GetColorInterpretation() {
  9381.         return Band_GetColorInterpretation($this->_cPtr);
  9382.     }
  9383.  
  9384. -   public function GetRasterColorInterpretation() {
  9385. +   function GetRasterColorInterpretation() {
  9386.         return Band_GetRasterColorInterpretation($this->_cPtr);
  9387.     }
  9388.  
  9389. -   public function SetColorInterpretation($val) {
  9390. +   function SetColorInterpretation($val) {
  9391.         return Band_SetColorInterpretation($this->_cPtr,$val);
  9392.     }
  9393.  
  9394. -   public function SetRasterColorInterpretation($val) {
  9395. +   function SetRasterColorInterpretation($val) {
  9396.         return Band_SetRasterColorInterpretation($this->_cPtr,$val);
  9397.     }
  9398.  
  9399. -   public function GetNoDataValue() {
  9400. -       Band_GetNoDataValue($this->_cPtr);
  9401. +   function GetNoDataValue() {
  9402. +       return Band_GetNoDataValue($this->_cPtr);
  9403.     }
  9404.  
  9405. -   public function SetNoDataValue($d) {
  9406. +   function SetNoDataValue($d) {
  9407.         return Band_SetNoDataValue($this->_cPtr,$d);
  9408.     }
  9409.  
  9410. -   public function GetUnitType() {
  9411. +   function GetUnitType() {
  9412.         return Band_GetUnitType($this->_cPtr);
  9413.     }
  9414.  
  9415. -   public function SetUnitType($val) {
  9416. +   function SetUnitType($val) {
  9417.         return Band_SetUnitType($this->_cPtr,$val);
  9418.     }
  9419.  
  9420. -   public function GetRasterCategoryNames() {
  9421. +   function GetRasterCategoryNames() {
  9422.         return Band_GetRasterCategoryNames($this->_cPtr);
  9423.     }
  9424.  
  9425. -   public function SetRasterCategoryNames($names) {
  9426. +   function SetRasterCategoryNames($names) {
  9427.         return Band_SetRasterCategoryNames($this->_cPtr,$names);
  9428.     }
  9429.  
  9430. -   public function GetMinimum() {
  9431. -       Band_GetMinimum($this->_cPtr);
  9432. +   function GetMinimum() {
  9433. +       return Band_GetMinimum($this->_cPtr);
  9434.     }
  9435.  
  9436. -   public function GetMaximum() {
  9437. -       Band_GetMaximum($this->_cPtr);
  9438. +   function GetMaximum() {
  9439. +       return Band_GetMaximum($this->_cPtr);
  9440.     }
  9441.  
  9442. -   public function GetOffset() {
  9443. -       Band_GetOffset($this->_cPtr);
  9444. +   function GetOffset() {
  9445. +       return Band_GetOffset($this->_cPtr);
  9446.     }
  9447.  
  9448. -   public function GetScale() {
  9449. -       Band_GetScale($this->_cPtr);
  9450. +   function GetScale() {
  9451. +       return Band_GetScale($this->_cPtr);
  9452.     }
  9453.  
  9454. -   public function SetOffset($val) {
  9455. +   function SetOffset($val) {
  9456.         return Band_SetOffset($this->_cPtr,$val);
  9457.     }
  9458.  
  9459. -   public function SetScale($val) {
  9460. +   function SetScale($val) {
  9461.         return Band_SetScale($this->_cPtr,$val);
  9462.     }
  9463.  
  9464. -   public function GetStatistics($approx_ok,$force) {
  9465. +   function GetStatistics($approx_ok,$force) {
  9466.         return Band_GetStatistics($this->_cPtr,$approx_ok,$force);
  9467.     }
  9468.  
  9469. -   public function ComputeStatistics($approx_ok,$callback=null,$callback_data=null) {
  9470. +   function ComputeStatistics($approx_ok,$callback=null,$callback_data=null) {
  9471.         switch (func_num_args()) {
  9472.         case 1: $r=Band_ComputeStatistics($this->_cPtr,$approx_ok); break;
  9473.         default: $r=Band_ComputeStatistics($this->_cPtr,$approx_ok,$callback,$callback_data);
  9474. @@ -996,15 +1000,15 @@
  9475.         return $r;
  9476.     }
  9477.  
  9478. -   public function SetStatistics($min,$max,$mean,$stddev) {
  9479. +   function SetStatistics($min,$max,$mean,$stddev) {
  9480.         return Band_SetStatistics($this->_cPtr,$min,$max,$mean,$stddev);
  9481.     }
  9482.  
  9483. -   public function GetOverviewCount() {
  9484. +   function GetOverviewCount() {
  9485.         return Band_GetOverviewCount($this->_cPtr);
  9486.     }
  9487.  
  9488. -   public function GetOverview($i) {
  9489. +   function GetOverview($i) {
  9490.         $r=Band_GetOverview($this->_cPtr,$i);
  9491.         if (is_resource($r)) {
  9492.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9493. @@ -1016,35 +1020,35 @@
  9494.         return $r;
  9495.     }
  9496.  
  9497. -   public function Checksum($xoff=0,$yoff=0,$xsize=null,$ysize=null) {
  9498. +   function Checksum($xoff=0,$yoff=0,$xsize=null,$ysize=null) {
  9499.         return Band_Checksum($this->_cPtr,$xoff,$yoff,$xsize,$ysize);
  9500.     }
  9501.  
  9502. -   public function ComputeRasterMinMax($approx_ok=0) {
  9503. -       Band_ComputeRasterMinMax($this->_cPtr,$approx_ok);
  9504. +   function ComputeRasterMinMax($approx_ok=0) {
  9505. +       return Band_ComputeRasterMinMax($this->_cPtr,$approx_ok);
  9506.     }
  9507.  
  9508. -   public function ComputeBandStats($samplestep=1) {
  9509. -       Band_ComputeBandStats($this->_cPtr,$samplestep);
  9510. +   function ComputeBandStats($samplestep=1) {
  9511. +       return Band_ComputeBandStats($this->_cPtr,$samplestep);
  9512.     }
  9513.  
  9514. -   public function Fill($real_fill,$imag_fill=0.0) {
  9515. +   function Fill($real_fill,$imag_fill=0.0) {
  9516.         return Band_Fill($this->_cPtr,$real_fill,$imag_fill);
  9517.     }
  9518.  
  9519. -   public function ReadRaster($xoff,$yoff,$xsize,$ysize,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$buf_pixel_space=null,$buf_line_space=null) {
  9520. +   function ReadRaster($xoff,$yoff,$xsize,$ysize,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$buf_pixel_space=null,$buf_line_space=null) {
  9521.         return Band_ReadRaster($this->_cPtr,$xoff,$yoff,$xsize,$ysize,$buf_xsize,$buf_ysize,$buf_type,$buf_pixel_space,$buf_line_space);
  9522.     }
  9523.  
  9524. -   public function WriteRaster($xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$buf_pixel_space=null,$buf_line_space=null) {
  9525. +   function WriteRaster($xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize=null,$buf_ysize=null,$buf_type=null,$buf_pixel_space=null,$buf_line_space=null) {
  9526.         return Band_WriteRaster($this->_cPtr,$xoff,$yoff,$xsize,$ysize,$buf_len,$buf_xsize,$buf_ysize,$buf_type,$buf_pixel_space,$buf_line_space);
  9527.     }
  9528.  
  9529. -   public function FlushCache() {
  9530. +   function FlushCache() {
  9531.         Band_FlushCache($this->_cPtr);
  9532.     }
  9533.  
  9534. -   public function GetRasterColorTable() {
  9535. +   function GetRasterColorTable() {
  9536.         $r=Band_GetRasterColorTable($this->_cPtr);
  9537.         if (is_resource($r)) {
  9538.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9539. @@ -1056,7 +1060,7 @@
  9540.         return $r;
  9541.     }
  9542.  
  9543. -   public function GetColorTable() {
  9544. +   function GetColorTable() {
  9545.         $r=Band_GetColorTable($this->_cPtr);
  9546.         if (is_resource($r)) {
  9547.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9548. @@ -1068,15 +1072,15 @@
  9549.         return $r;
  9550.     }
  9551.  
  9552. -   public function SetRasterColorTable($arg) {
  9553. +   function SetRasterColorTable($arg) {
  9554.         return Band_SetRasterColorTable($this->_cPtr,$arg);
  9555.     }
  9556.  
  9557. -   public function SetColorTable($arg) {
  9558. +   function SetColorTable($arg) {
  9559.         return Band_SetColorTable($this->_cPtr,$arg);
  9560.     }
  9561.  
  9562. -   public function GetDefaultRAT() {
  9563. +   function GetDefaultRAT() {
  9564.         $r=Band_GetDefaultRAT($this->_cPtr);
  9565.         if (is_resource($r)) {
  9566.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9567. @@ -1088,11 +1092,11 @@
  9568.         return $r;
  9569.     }
  9570.  
  9571. -   public function SetDefaultRAT($table) {
  9572. +   function SetDefaultRAT($table) {
  9573.         return Band_SetDefaultRAT($this->_cPtr,$table);
  9574.     }
  9575.  
  9576. -   public function GetMaskBand() {
  9577. +   function GetMaskBand() {
  9578.         $r=Band_GetMaskBand($this->_cPtr);
  9579.         if (is_resource($r)) {
  9580.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9581. @@ -1104,15 +1108,15 @@
  9582.         return $r;
  9583.     }
  9584.  
  9585. -   public function GetMaskFlags() {
  9586. +   function GetMaskFlags() {
  9587.         return Band_GetMaskFlags($this->_cPtr);
  9588.     }
  9589.  
  9590. -   public function CreateMaskBand($nFlags) {
  9591. +   function CreateMaskBand($nFlags) {
  9592.         return Band_CreateMaskBand($this->_cPtr,$nFlags);
  9593.     }
  9594.  
  9595. -   public function GetHistogram($min=-0.5,$max=255.5,$buckets=256,$panHistogram=null,$include_out_of_range=0,$approx_ok=1,$callback=null,$callback_data=null) {
  9596. +   function GetHistogram($min=-0.5,$max=255.5,$buckets=256,$panHistogram=null,$include_out_of_range=0,$approx_ok=1,$callback=null,$callback_data=null) {
  9597.         switch (func_num_args()) {
  9598.         case 0: case 1: case 2: case 3: case 4: case 5: case 6: $r=Band_GetHistogram($this->_cPtr,$min,$max,$buckets,$panHistogram,$include_out_of_range,$approx_ok); break;
  9599.         default: $r=Band_GetHistogram($this->_cPtr,$min,$max,$buckets,$panHistogram,$include_out_of_range,$approx_ok,$callback,$callback_data);
  9600. @@ -1120,7 +1124,7 @@
  9601.         return $r;
  9602.     }
  9603.  
  9604. -   public function GetDefaultHistogram($min_ret=null,$max_ret=null,$buckets_ret=null,$ppanHistogram=null,$force=1,$callback=null,$callback_data=null) {
  9605. +   function GetDefaultHistogram($min_ret=null,$max_ret=null,$buckets_ret=null,$ppanHistogram=null,$force=1,$callback=null,$callback_data=null) {
  9606.         switch (func_num_args()) {
  9607.         case 0: case 1: case 2: case 3: case 4: case 5: $r=Band_GetDefaultHistogram($this->_cPtr,$min_ret,$max_ret,$buckets_ret,$ppanHistogram,$force); break;
  9608.         default: $r=Band_GetDefaultHistogram($this->_cPtr,$min_ret,$max_ret,$buckets_ret,$ppanHistogram,$force,$callback,$callback_data);
  9609. @@ -1128,13 +1132,21 @@
  9610.         return $r;
  9611.     }
  9612.  
  9613. -   public function SetDefaultHistogram($min,$max,$buckets_in,$panHistogram_in) {
  9614. +   function SetDefaultHistogram($min,$max,$buckets_in,$panHistogram_in) {
  9615.         return Band_SetDefaultHistogram($this->_cPtr,$min,$max,$buckets_in,$panHistogram_in);
  9616.     }
  9617.  
  9618. -   public function HasArbitraryOverviews() {
  9619. +   function HasArbitraryOverviews() {
  9620.         return Band_HasArbitraryOverviews($this->_cPtr);
  9621.     }
  9622. +
  9623. +   function GetCategoryNames() {
  9624. +       return Band_GetCategoryNames($this->_cPtr);
  9625. +   }
  9626. +
  9627. +   function SetCategoryNames($papszCategoryNames) {
  9628. +       return Band_SetCategoryNames($this->_cPtr,$papszCategoryNames);
  9629. +   }
  9630.  }
  9631.  
  9632.  class ColorTable {
  9633. @@ -1156,19 +1168,18 @@
  9634.         return $this->_pData[$var];
  9635.     }
  9636.  
  9637. -   public function __construct($palette=null) {
  9638. +   function __construct($palette=null) {
  9639.         if (is_resource($palette) && get_resource_type($palette) === '_p_GDALColorTableShadow') {
  9640.             $this->_cPtr=$palette;
  9641.             return;
  9642.         }
  9643. -       $this->_cPtr=$r;
  9644.         switch (func_num_args()) {
  9645.         case 0: $this->_cPtr=new_ColorTable(); break;
  9646.         default: $this->_cPtr=new_ColorTable($palette);
  9647.         }
  9648.     }
  9649.  
  9650. -   public function c_Clone() {
  9651. +   function c_Clone() {
  9652.         $r=ColorTable_c_Clone($this->_cPtr);
  9653.         if (is_resource($r)) {
  9654.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9655. @@ -1180,15 +1191,15 @@
  9656.         return $r;
  9657.     }
  9658.  
  9659. -   public function GetPaletteInterpretation() {
  9660. +   function GetPaletteInterpretation() {
  9661.         return ColorTable_GetPaletteInterpretation($this->_cPtr);
  9662.     }
  9663.  
  9664. -   public function GetCount() {
  9665. +   function GetCount() {
  9666.         return ColorTable_GetCount($this->_cPtr);
  9667.     }
  9668.  
  9669. -   public function GetColorEntry($entry) {
  9670. +   function GetColorEntry($entry) {
  9671.         $r=ColorTable_GetColorEntry($this->_cPtr,$entry);
  9672.         if (is_resource($r)) {
  9673.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9674. @@ -1200,15 +1211,15 @@
  9675.         return $r;
  9676.     }
  9677.  
  9678. -   public function GetColorEntryAsRGB($entry,$centry) {
  9679. +   function GetColorEntryAsRGB($entry,$centry) {
  9680.         return ColorTable_GetColorEntryAsRGB($this->_cPtr,$entry,$centry);
  9681.     }
  9682.  
  9683. -   public function SetColorEntry($entry,$centry) {
  9684. +   function SetColorEntry($entry,$centry) {
  9685.         ColorTable_SetColorEntry($this->_cPtr,$entry,$centry);
  9686.     }
  9687.  
  9688. -   public function CreateColorRamp($nStartIndex,$startcolor,$nEndIndex,$endcolor) {
  9689. +   function CreateColorRamp($nStartIndex,$startcolor,$nEndIndex,$endcolor) {
  9690.         ColorTable_CreateColorRamp($this->_cPtr,$nStartIndex,$startcolor,$nEndIndex,$endcolor);
  9691.     }
  9692.  }
  9693. @@ -1232,7 +1243,7 @@
  9694.         return $this->_pData[$var];
  9695.     }
  9696.  
  9697. -   public function __construct($res=null) {
  9698. +   function __construct($res=null) {
  9699.         if (is_resource($res) && get_resource_type($res) === '_p_GDALRasterAttributeTableShadow') {
  9700.             $this->_cPtr=$res;
  9701.             return;
  9702. @@ -1240,7 +1251,7 @@
  9703.         $this->_cPtr=new_RasterAttributeTable();
  9704.     }
  9705.  
  9706. -   public function c_Clone() {
  9707. +   function c_Clone() {
  9708.         $r=RasterAttributeTable_c_Clone($this->_cPtr);
  9709.         if (is_resource($r)) {
  9710.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9711. @@ -1252,71 +1263,71 @@
  9712.         return $r;
  9713.     }
  9714.  
  9715. -   public function GetColumnCount() {
  9716. +   function GetColumnCount() {
  9717.         return RasterAttributeTable_GetColumnCount($this->_cPtr);
  9718.     }
  9719.  
  9720. -   public function GetNameOfCol($iCol) {
  9721. +   function GetNameOfCol($iCol) {
  9722.         return RasterAttributeTable_GetNameOfCol($this->_cPtr,$iCol);
  9723.     }
  9724.  
  9725. -   public function GetUsageOfCol($iCol) {
  9726. +   function GetUsageOfCol($iCol) {
  9727.         return RasterAttributeTable_GetUsageOfCol($this->_cPtr,$iCol);
  9728.     }
  9729.  
  9730. -   public function GetTypeOfCol($iCol) {
  9731. +   function GetTypeOfCol($iCol) {
  9732.         return RasterAttributeTable_GetTypeOfCol($this->_cPtr,$iCol);
  9733.     }
  9734.  
  9735. -   public function GetColOfUsage($eUsage) {
  9736. +   function GetColOfUsage($eUsage) {
  9737.         return RasterAttributeTable_GetColOfUsage($this->_cPtr,$eUsage);
  9738.     }
  9739.  
  9740. -   public function GetRowCount() {
  9741. +   function GetRowCount() {
  9742.         return RasterAttributeTable_GetRowCount($this->_cPtr);
  9743.     }
  9744.  
  9745. -   public function GetValueAsString($iRow,$iCol) {
  9746. +   function GetValueAsString($iRow,$iCol) {
  9747.         return RasterAttributeTable_GetValueAsString($this->_cPtr,$iRow,$iCol);
  9748.     }
  9749.  
  9750. -   public function GetValueAsInt($iRow,$iCol) {
  9751. +   function GetValueAsInt($iRow,$iCol) {
  9752.         return RasterAttributeTable_GetValueAsInt($this->_cPtr,$iRow,$iCol);
  9753.     }
  9754.  
  9755. -   public function GetValueAsDouble($iRow,$iCol) {
  9756. +   function GetValueAsDouble($iRow,$iCol) {
  9757.         return RasterAttributeTable_GetValueAsDouble($this->_cPtr,$iRow,$iCol);
  9758.     }
  9759.  
  9760. -   public function SetValueAsString($iRow,$iCol,$pszValue) {
  9761. +   function SetValueAsString($iRow,$iCol,$pszValue) {
  9762.         RasterAttributeTable_SetValueAsString($this->_cPtr,$iRow,$iCol,$pszValue);
  9763.     }
  9764.  
  9765. -   public function SetValueAsInt($iRow,$iCol,$nValue) {
  9766. +   function SetValueAsInt($iRow,$iCol,$nValue) {
  9767.         RasterAttributeTable_SetValueAsInt($this->_cPtr,$iRow,$iCol,$nValue);
  9768.     }
  9769.  
  9770. -   public function SetValueAsDouble($iRow,$iCol,$dfValue) {
  9771. +   function SetValueAsDouble($iRow,$iCol,$dfValue) {
  9772.         RasterAttributeTable_SetValueAsDouble($this->_cPtr,$iRow,$iCol,$dfValue);
  9773.     }
  9774.  
  9775. -   public function SetRowCount($nCount) {
  9776. +   function SetRowCount($nCount) {
  9777.         RasterAttributeTable_SetRowCount($this->_cPtr,$nCount);
  9778.     }
  9779.  
  9780. -   public function CreateColumn($pszName,$eType,$eUsage) {
  9781. +   function CreateColumn($pszName,$eType,$eUsage) {
  9782.         return RasterAttributeTable_CreateColumn($this->_cPtr,$pszName,$eType,$eUsage);
  9783.     }
  9784.  
  9785. -   public function GetLinearBinning() {
  9786. +   function GetLinearBinning() {
  9787.         return RasterAttributeTable_GetLinearBinning($this->_cPtr);
  9788.     }
  9789.  
  9790. -   public function SetLinearBinning($dfRow0Min,$dfBinSize) {
  9791. +   function SetLinearBinning($dfRow0Min,$dfBinSize) {
  9792.         return RasterAttributeTable_SetLinearBinning($this->_cPtr,$dfRow0Min,$dfBinSize);
  9793.     }
  9794.  
  9795. -   public function GetRowOfValue($dfValue) {
  9796. +   function GetRowOfValue($dfValue) {
  9797.         return RasterAttributeTable_GetRowOfValue($this->_cPtr,$dfValue);
  9798.     }
  9799.  }
  9800. @@ -1340,7 +1351,7 @@
  9801.         return $this->_pData[$var];
  9802.     }
  9803.  
  9804. -   public function __construct($src,$dst,$options) {
  9805. +   function __construct($src,$dst,$options) {
  9806.         if (is_resource($src) && get_resource_type($src) === '_p_GDALTransformerInfoShadow') {
  9807.             $this->_cPtr=$src;
  9808.             return;
  9809. @@ -1348,7 +1359,7 @@
  9810.         $this->_cPtr=new_Transformer($src,$dst,$options);
  9811.     }
  9812.  
  9813. -   public function TransformPoint($bDstToSrc,$inout_or_x,$y=null,$z=0.0) {
  9814. +   function TransformPoint($bDstToSrc,$inout_or_x,$y=null,$z=0.0) {
  9815.         switch (func_num_args()) {
  9816.         case 2: $r=Transformer_TransformPoint($this->_cPtr,$bDstToSrc,$inout_or_x); break;
  9817.         default: $r=Transformer_TransformPoint($this->_cPtr,$bDstToSrc,$inout_or_x,$y,$z);
  9818. @@ -1356,7 +1367,7 @@
  9819.         return $r;
  9820.     }
  9821.  
  9822. -   public function TransformPoints($bDstToSrc,$nCount,$x,$y,$z,$panSuccess) {
  9823. +   function TransformPoints($bDstToSrc,$nCount,$x,$y,$z,$panSuccess) {
  9824.         return Transformer_TransformPoints($this->_cPtr,$bDstToSrc,$nCount,$x,$y,$z,$panSuccess);
  9825.     }
  9826.  }
  9827. Index: swig/php/ogr.php
  9828. ===================================================================
  9829. --- swig/php/ogr.php    (revision 21891)
  9830. +++ swig/php/ogr.php    (working copy)
  9831. @@ -2,7 +2,7 @@
  9832.  
  9833.  /* ----------------------------------------------------------------------------
  9834.   * This file was automatically generated by SWIG (http://www.swig.org).
  9835. - * Version 1.3.40
  9836. + * Version 2.0.1
  9837.   *
  9838.   * This file is not intended to be easily readable and contains a number of
  9839.   * coding conventions designed to improve portability and efficiency. Do not make
  9840. @@ -289,8 +289,8 @@
  9841.         return $r;
  9842.     }
  9843.  
  9844. -   static function Open($filename,$update=0) {
  9845. -       $r=Open($filename,$update);
  9846. +   static function Open($utf8_path,$update=0) {
  9847. +       $r=Open($utf8_path,$update);
  9848.         if (is_resource($r)) {
  9849.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9850.             if (!class_exists($c)) {
  9851. @@ -372,8 +372,8 @@
  9852.         $this->_cPtr=$h;
  9853.     }
  9854.  
  9855. -   public function CreateDataSource($name,$options=null) {
  9856. -       $r=Driver_CreateDataSource($this->_cPtr,$name,$options);
  9857. +   function CreateDataSource($utf8_path,$options=null) {
  9858. +       $r=Driver_CreateDataSource($this->_cPtr,$utf8_path,$options);
  9859.         if (is_resource($r)) {
  9860.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9861.             if (!class_exists($c)) {
  9862. @@ -384,7 +384,7 @@
  9863.         return $r;
  9864.     }
  9865.  
  9866. -   public function CopyDataSource($copy_ds,$utf8_path,$options=null) {
  9867. +   function CopyDataSource($copy_ds,$utf8_path,$options=null) {
  9868.         $r=Driver_CopyDataSource($this->_cPtr,$copy_ds,$utf8_path,$options);
  9869.         if (is_resource($r)) {
  9870.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9871. @@ -396,7 +396,7 @@
  9872.         return $r;
  9873.     }
  9874.  
  9875. -   public function Open($utf8_path,$update=0) {
  9876. +   function Open($utf8_path,$update=0) {
  9877.         $r=Driver_Open($this->_cPtr,$utf8_path,$update);
  9878.         if (is_resource($r)) {
  9879.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9880. @@ -408,23 +408,23 @@
  9881.         return $r;
  9882.     }
  9883.  
  9884. -   public function DeleteDataSource($name) {
  9885. -       return Driver_DeleteDataSource($this->_cPtr,$name);
  9886. +   function DeleteDataSource($utf8_path) {
  9887. +       return Driver_DeleteDataSource($this->_cPtr,$utf8_path);
  9888.     }
  9889.  
  9890. -   public function TestCapability($cap) {
  9891. +   function TestCapability($cap) {
  9892.         return Driver_TestCapability($this->_cPtr,$cap);
  9893.     }
  9894.  
  9895. -   public function GetName() {
  9896. +   function GetName() {
  9897.         return Driver_GetName($this->_cPtr);
  9898.     }
  9899.  
  9900. -   public function Register() {
  9901. +   function Register() {
  9902.         Driver_Register($this->_cPtr);
  9903.     }
  9904.  
  9905. -   public function Deregister() {
  9906. +   function Deregister() {
  9907.         Driver_Deregister($this->_cPtr);
  9908.     }
  9909.  }
  9910. @@ -458,19 +458,19 @@
  9911.         $this->_cPtr=$h;
  9912.     }
  9913.  
  9914. -   public function GetRefCount() {
  9915. +   function GetRefCount() {
  9916.         return DataSource_GetRefCount($this->_cPtr);
  9917.     }
  9918.  
  9919. -   public function GetSummaryRefCount() {
  9920. +   function GetSummaryRefCount() {
  9921.         return DataSource_GetSummaryRefCount($this->_cPtr);
  9922.     }
  9923.  
  9924. -   public function GetLayerCount() {
  9925. +   function GetLayerCount() {
  9926.         return DataSource_GetLayerCount($this->_cPtr);
  9927.     }
  9928.  
  9929. -   public function GetDriver() {
  9930. +   function GetDriver() {
  9931.         $r=DataSource_GetDriver($this->_cPtr);
  9932.         if (is_resource($r)) {
  9933.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9934. @@ -482,15 +482,15 @@
  9935.         return $r;
  9936.     }
  9937.  
  9938. -   public function GetName() {
  9939. +   function GetName() {
  9940.         return DataSource_GetName($this->_cPtr);
  9941.     }
  9942.  
  9943. -   public function DeleteLayer($index) {
  9944. +   function DeleteLayer($index) {
  9945.         return DataSource_DeleteLayer($this->_cPtr,$index);
  9946.     }
  9947.  
  9948. -   public function CreateLayer($name,$srs=null,$geom_type=null,$options=null) {
  9949. +   function CreateLayer($name,$srs=null,$geom_type=null,$options=null) {
  9950.         switch (func_num_args()) {
  9951.         case 1: case 2: $r=DataSource_CreateLayer($this->_cPtr,$name,$srs); break;
  9952.         default: $r=DataSource_CreateLayer($this->_cPtr,$name,$srs,$geom_type,$options);
  9953. @@ -505,7 +505,7 @@
  9954.         return $r;
  9955.     }
  9956.  
  9957. -   public function CopyLayer($src_layer,$new_name,$options=null) {
  9958. +   function CopyLayer($src_layer,$new_name,$options=null) {
  9959.         $r=DataSource_CopyLayer($this->_cPtr,$src_layer,$new_name,$options);
  9960.         if (is_resource($r)) {
  9961.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9962. @@ -517,7 +517,7 @@
  9963.         return $r;
  9964.     }
  9965.  
  9966. -   public function GetLayerByIndex($index=0) {
  9967. +   function GetLayerByIndex($index=0) {
  9968.         $r=DataSource_GetLayerByIndex($this->_cPtr,$index);
  9969.         if (is_resource($r)) {
  9970.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9971. @@ -529,7 +529,7 @@
  9972.         return $r;
  9973.     }
  9974.  
  9975. -   public function GetLayerByName($layer_name) {
  9976. +   function GetLayerByName($layer_name) {
  9977.         $r=DataSource_GetLayerByName($this->_cPtr,$layer_name);
  9978.         if (is_resource($r)) {
  9979.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9980. @@ -541,11 +541,11 @@
  9981.         return $r;
  9982.     }
  9983.  
  9984. -   public function TestCapability($cap) {
  9985. +   function TestCapability($cap) {
  9986.         return DataSource_TestCapability($this->_cPtr,$cap);
  9987.     }
  9988.  
  9989. -   public function ExecuteSQL($statement,$spatialFilter=null,$dialect="") {
  9990. +   function ExecuteSQL($statement,$spatialFilter=null,$dialect="") {
  9991.         $r=DataSource_ExecuteSQL($this->_cPtr,$statement,$spatialFilter,$dialect);
  9992.         if (is_resource($r)) {
  9993.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  9994. @@ -557,7 +557,7 @@
  9995.         return $r;
  9996.     }
  9997.  
  9998. -   public function ReleaseResultSet($layer) {
  9999. +   function ReleaseResultSet($layer) {
  10000.         DataSource_ReleaseResultSet($this->_cPtr,$layer);
  10001.     }
  10002.  }
  10003. @@ -584,19 +584,19 @@
  10004.         $this->_cPtr=$h;
  10005.     }
  10006.  
  10007. -   public function GetRefCount() {
  10008. +   function GetRefCount() {
  10009.         return Layer_GetRefCount($this->_cPtr);
  10010.     }
  10011.  
  10012. -   public function SetSpatialFilter($filter) {
  10013. +   function SetSpatialFilter($filter) {
  10014.         Layer_SetSpatialFilter($this->_cPtr,$filter);
  10015.     }
  10016.  
  10017. -   public function SetSpatialFilterRect($minx,$miny,$maxx,$maxy) {
  10018. +   function SetSpatialFilterRect($minx,$miny,$maxx,$maxy) {
  10019.         Layer_SetSpatialFilterRect($this->_cPtr,$minx,$miny,$maxx,$maxy);
  10020.     }
  10021.  
  10022. -   public function GetSpatialFilter() {
  10023. +   function GetSpatialFilter() {
  10024.         $r=Layer_GetSpatialFilter($this->_cPtr);
  10025.         if (is_resource($r)) {
  10026.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10027. @@ -608,31 +608,31 @@
  10028.         return $r;
  10029.     }
  10030.  
  10031. -   public function SetAttributeFilter($filter_string) {
  10032. +   function SetAttributeFilter($filter_string) {
  10033.         return Layer_SetAttributeFilter($this->_cPtr,$filter_string);
  10034.     }
  10035.  
  10036. -   public function ResetReading() {
  10037. +   function ResetReading() {
  10038.         Layer_ResetReading($this->_cPtr);
  10039.     }
  10040.  
  10041. -   public function GetName() {
  10042. +   function GetName() {
  10043.         return Layer_GetName($this->_cPtr);
  10044.     }
  10045.  
  10046. -   public function GetGeomType() {
  10047. +   function GetGeomType() {
  10048.         return Layer_GetGeomType($this->_cPtr);
  10049.     }
  10050.  
  10051. -   public function GetGeometryColumn() {
  10052. +   function GetGeometryColumn() {
  10053.         return Layer_GetGeometryColumn($this->_cPtr);
  10054.     }
  10055.  
  10056. -   public function GetFIDColumn() {
  10057. +   function GetFIDColumn() {
  10058.         return Layer_GetFIDColumn($this->_cPtr);
  10059.     }
  10060.  
  10061. -   public function GetFeature($fid) {
  10062. +   function GetFeature($fid) {
  10063.         $r=Layer_GetFeature($this->_cPtr,$fid);
  10064.         if (is_resource($r)) {
  10065.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10066. @@ -644,7 +644,7 @@
  10067.         return $r;
  10068.     }
  10069.  
  10070. -   public function GetNextFeature() {
  10071. +   function GetNextFeature() {
  10072.         $r=Layer_GetNextFeature($this->_cPtr);
  10073.         if (is_resource($r)) {
  10074.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10075. @@ -656,27 +656,27 @@
  10076.         return $r;
  10077.     }
  10078.  
  10079. -   public function SetNextByIndex($new_index) {
  10080. +   function SetNextByIndex($new_index) {
  10081.         return Layer_SetNextByIndex($this->_cPtr,$new_index);
  10082.     }
  10083.  
  10084. -   public function SetFeature($feature) {
  10085. +   function SetFeature($feature) {
  10086.         return Layer_SetFeature($this->_cPtr,$feature);
  10087.     }
  10088.  
  10089. -   public function CreateFeature($feature) {
  10090. +   function CreateFeature($feature) {
  10091.         return Layer_CreateFeature($this->_cPtr,$feature);
  10092.     }
  10093.  
  10094. -   public function DeleteFeature($fid) {
  10095. +   function DeleteFeature($fid) {
  10096.         return Layer_DeleteFeature($this->_cPtr,$fid);
  10097.     }
  10098.  
  10099. -   public function SyncToDisk() {
  10100. +   function SyncToDisk() {
  10101.         return Layer_SyncToDisk($this->_cPtr);
  10102.     }
  10103.  
  10104. -   public function GetLayerDefn() {
  10105. +   function GetLayerDefn() {
  10106.         $r=Layer_GetLayerDefn($this->_cPtr);
  10107.         if (is_resource($r)) {
  10108.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10109. @@ -688,35 +688,35 @@
  10110.         return $r;
  10111.     }
  10112.  
  10113. -   public function GetFeatureCount($force=1) {
  10114. +   function GetFeatureCount($force=1) {
  10115.         return Layer_GetFeatureCount($this->_cPtr,$force);
  10116.     }
  10117.  
  10118. -   public function GetExtent($force=1) {
  10119. +   function GetExtent($force=1) {
  10120.         return Layer_GetExtent($this->_cPtr,$force);
  10121.     }
  10122.  
  10123. -   public function TestCapability($cap) {
  10124. +   function TestCapability($cap) {
  10125.         return Layer_TestCapability($this->_cPtr,$cap);
  10126.     }
  10127.  
  10128. -   public function CreateField($field_def,$approx_ok=1) {
  10129. +   function CreateField($field_def,$approx_ok=1) {
  10130.         return Layer_CreateField($this->_cPtr,$field_def,$approx_ok);
  10131.     }
  10132.  
  10133. -   public function StartTransaction() {
  10134. +   function StartTransaction() {
  10135.         return Layer_StartTransaction($this->_cPtr);
  10136.     }
  10137.  
  10138. -   public function CommitTransaction() {
  10139. +   function CommitTransaction() {
  10140.         return Layer_CommitTransaction($this->_cPtr);
  10141.     }
  10142.  
  10143. -   public function RollbackTransaction() {
  10144. +   function RollbackTransaction() {
  10145.         return Layer_RollbackTransaction($this->_cPtr);
  10146.     }
  10147.  
  10148. -   public function GetSpatialRef() {
  10149. +   function GetSpatialRef() {
  10150.         $r=Layer_GetSpatialRef($this->_cPtr);
  10151.         if (is_resource($r)) {
  10152.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10153. @@ -728,11 +728,11 @@
  10154.         return $r;
  10155.     }
  10156.  
  10157. -   public function GetFeaturesRead() {
  10158. +   function GetFeaturesRead() {
  10159.         return Layer_GetFeaturesRead($this->_cPtr);
  10160.     }
  10161.  
  10162. -   public function SetIgnoredFields($options) {
  10163. +   function SetIgnoredFields($options) {
  10164.         return Layer_SetIgnoredFields($this->_cPtr,$options);
  10165.     }
  10166.  }
  10167. @@ -756,7 +756,7 @@
  10168.         return $this->_pData[$var];
  10169.     }
  10170.  
  10171. -   public function __construct($feature_def) {
  10172. +   function __construct($feature_def) {
  10173.         if (is_resource($feature_def) && get_resource_type($feature_def) === '_p_OGRFeatureShadow') {
  10174.             $this->_cPtr=$feature_def;
  10175.             return;
  10176. @@ -764,7 +764,7 @@
  10177.         $this->_cPtr=new_Feature($feature_def);
  10178.     }
  10179.  
  10180. -   public function GetDefnRef() {
  10181. +   function GetDefnRef() {
  10182.         $r=Feature_GetDefnRef($this->_cPtr);
  10183.         if (is_resource($r)) {
  10184.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10185. @@ -776,15 +776,15 @@
  10186.         return $r;
  10187.     }
  10188.  
  10189. -   public function SetGeometry($geom) {
  10190. +   function SetGeometry($geom) {
  10191.         return Feature_SetGeometry($this->_cPtr,$geom);
  10192.     }
  10193.  
  10194. -   public function SetGeometryDirectly($geom) {
  10195. +   function SetGeometryDirectly($geom) {
  10196.         return Feature_SetGeometryDirectly($this->_cPtr,$geom);
  10197.     }
  10198.  
  10199. -   public function GetGeometryRef() {
  10200. +   function GetGeometryRef() {
  10201.         $r=Feature_GetGeometryRef($this->_cPtr);
  10202.         if (is_resource($r)) {
  10203.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10204. @@ -796,7 +796,7 @@
  10205.         return $r;
  10206.     }
  10207.  
  10208. -   public function c_Clone() {
  10209. +   function c_Clone() {
  10210.         $r=Feature_c_Clone($this->_cPtr);
  10211.         if (is_resource($r)) {
  10212.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10213. @@ -808,15 +808,15 @@
  10214.         return $r;
  10215.     }
  10216.  
  10217. -   public function Equal($feature) {
  10218. +   function Equal($feature) {
  10219.         return Feature_Equal($this->_cPtr,$feature);
  10220.     }
  10221.  
  10222. -   public function GetFieldCount() {
  10223. +   function GetFieldCount() {
  10224.         return Feature_GetFieldCount($this->_cPtr);
  10225.     }
  10226.  
  10227. -   public function GetFieldDefnRef($id_or_name) {
  10228. +   function GetFieldDefnRef($id_or_name) {
  10229.         $r=Feature_GetFieldDefnRef($this->_cPtr,$id_or_name);
  10230.         if (!is_resource($r)) return $r;
  10231.         switch (get_resource_type($r)) {
  10232. @@ -825,59 +825,59 @@
  10233.         }
  10234.     }
  10235.  
  10236. -   public function GetFieldAsString($id_or_name) {
  10237. +   function GetFieldAsString($id_or_name) {
  10238.         return Feature_GetFieldAsString($this->_cPtr,$id_or_name);
  10239.     }
  10240.  
  10241. -   public function GetFieldAsInteger($id_or_name) {
  10242. +   function GetFieldAsInteger($id_or_name) {
  10243.         return Feature_GetFieldAsInteger($this->_cPtr,$id_or_name);
  10244.     }
  10245.  
  10246. -   public function GetFieldAsDouble($id_or_name) {
  10247. +   function GetFieldAsDouble($id_or_name) {
  10248.         return Feature_GetFieldAsDouble($this->_cPtr,$id_or_name);
  10249.     }
  10250.  
  10251. -   public function GetFieldAsDateTime($id) {
  10252. -       Feature_GetFieldAsDateTime($this->_cPtr,$id);
  10253. +   function GetFieldAsDateTime($id) {
  10254. +       return Feature_GetFieldAsDateTime($this->_cPtr,$id);
  10255.     }
  10256.  
  10257. -   public function GetFieldAsIntegerList($id,$nLen,$pList) {
  10258. +   function GetFieldAsIntegerList($id,$nLen,$pList) {
  10259.         Feature_GetFieldAsIntegerList($this->_cPtr,$id,$nLen,$pList);
  10260.     }
  10261.  
  10262. -   public function GetFieldAsDoubleList($id,$nLen,$pList) {
  10263. +   function GetFieldAsDoubleList($id,$nLen,$pList) {
  10264.         Feature_GetFieldAsDoubleList($this->_cPtr,$id,$nLen,$pList);
  10265.     }
  10266.  
  10267. -   public function GetFieldAsStringList($id,$pList) {
  10268. +   function GetFieldAsStringList($id,$pList) {
  10269.         Feature_GetFieldAsStringList($this->_cPtr,$id,$pList);
  10270.     }
  10271.  
  10272. -   public function IsFieldSet($id_or_name) {
  10273. +   function IsFieldSet($id_or_name) {
  10274.         return Feature_IsFieldSet($this->_cPtr,$id_or_name);
  10275.     }
  10276.  
  10277. -   public function GetFieldIndex($name) {
  10278. +   function GetFieldIndex($name) {
  10279.         return Feature_GetFieldIndex($this->_cPtr,$name);
  10280.     }
  10281.  
  10282. -   public function GetFID() {
  10283. +   function GetFID() {
  10284.         return Feature_GetFID($this->_cPtr);
  10285.     }
  10286.  
  10287. -   public function SetFID($fid) {
  10288. +   function SetFID($fid) {
  10289.         return Feature_SetFID($this->_cPtr,$fid);
  10290.     }
  10291.  
  10292. -   public function DumpReadable() {
  10293. +   function DumpReadable() {
  10294.         Feature_DumpReadable($this->_cPtr);
  10295.     }
  10296.  
  10297. -   public function UnsetField($id_or_name) {
  10298. +   function UnsetField($id_or_name) {
  10299.         Feature_UnsetField($this->_cPtr,$id_or_name);
  10300.     }
  10301.  
  10302. -   public function SetField($id_or_name,$value_or_year,$month=null,$day=null,$hour=null,$minute=null,$second=null,$tzflag=null) {
  10303. +   function SetField($id_or_name,$value_or_year,$month=null,$day=null,$hour=null,$minute=null,$second=null,$tzflag=null) {
  10304.         switch (func_num_args()) {
  10305.         case 2: Feature_SetField($this->_cPtr,$id_or_name,$value_or_year); break;
  10306.         case 3: Feature_SetField($this->_cPtr,$id_or_name,$value_or_year,$month); break;
  10307. @@ -889,31 +889,35 @@
  10308.         }
  10309.     }
  10310.  
  10311. -   public function SetFieldIntegerList($id,$nList) {
  10312. +   function SetFieldIntegerList($id,$nList) {
  10313.         Feature_SetFieldIntegerList($this->_cPtr,$id,$nList);
  10314.     }
  10315.  
  10316. -   public function SetFieldDoubleList($id,$nList,$pList) {
  10317. +   function SetFieldDoubleList($id,$nList,$pList) {
  10318.         Feature_SetFieldDoubleList($this->_cPtr,$id,$nList,$pList);
  10319.     }
  10320.  
  10321. -   public function SetFieldStringList($id,$pList) {
  10322. +   function SetFieldStringList($id,$pList) {
  10323.         Feature_SetFieldStringList($this->_cPtr,$id,$pList);
  10324.     }
  10325.  
  10326. -   public function SetFrom($other,$forgiving=1) {
  10327. +   function SetFrom($other,$forgiving=1) {
  10328.         return Feature_SetFrom($this->_cPtr,$other,$forgiving);
  10329.     }
  10330.  
  10331. -   public function GetStyleString() {
  10332. +   function SetFromWithMap($other,$forgiving,$nList) {
  10333. +       return Feature_SetFromWithMap($this->_cPtr,$other,$forgiving,$nList);
  10334. +   }
  10335. +
  10336. +   function GetStyleString() {
  10337.         return Feature_GetStyleString($this->_cPtr);
  10338.     }
  10339.  
  10340. -   public function SetStyleString($the_string) {
  10341. +   function SetStyleString($the_string) {
  10342.         Feature_SetStyleString($this->_cPtr,$the_string);
  10343.     }
  10344.  
  10345. -   public function GetFieldType($id_or_name) {
  10346. +   function GetFieldType($id_or_name) {
  10347.         return Feature_GetFieldType($this->_cPtr,$id_or_name);
  10348.     }
  10349.  }
  10350. @@ -937,27 +941,26 @@
  10351.         return $this->_pData[$var];
  10352.     }
  10353.  
  10354. -   public function __construct($name_null_ok=null) {
  10355. +   function __construct($name_null_ok=null) {
  10356.         if (is_resource($name_null_ok) && get_resource_type($name_null_ok) === '_p_OGRFeatureDefnShadow') {
  10357.             $this->_cPtr=$name_null_ok;
  10358.             return;
  10359.         }
  10360. -       $this->_cPtr=$r;
  10361.         switch (func_num_args()) {
  10362.         case 0: $this->_cPtr=new_FeatureDefn(); break;
  10363.         default: $this->_cPtr=new_FeatureDefn($name_null_ok);
  10364.         }
  10365.     }
  10366.  
  10367. -   public function GetName() {
  10368. +   function GetName() {
  10369.         return FeatureDefn_GetName($this->_cPtr);
  10370.     }
  10371.  
  10372. -   public function GetFieldCount() {
  10373. +   function GetFieldCount() {
  10374.         return FeatureDefn_GetFieldCount($this->_cPtr);
  10375.     }
  10376.  
  10377. -   public function GetFieldDefn($i) {
  10378. +   function GetFieldDefn($i) {
  10379.         $r=FeatureDefn_GetFieldDefn($this->_cPtr,$i);
  10380.         if (is_resource($r)) {
  10381.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10382. @@ -969,39 +972,39 @@
  10383.         return $r;
  10384.     }
  10385.  
  10386. -   public function GetFieldIndex($name) {
  10387. +   function GetFieldIndex($name) {
  10388.         return FeatureDefn_GetFieldIndex($this->_cPtr,$name);
  10389.     }
  10390.  
  10391. -   public function AddFieldDefn($defn) {
  10392. +   function AddFieldDefn($defn) {
  10393.         FeatureDefn_AddFieldDefn($this->_cPtr,$defn);
  10394.     }
  10395.  
  10396. -   public function GetGeomType() {
  10397. +   function GetGeomType() {
  10398.         return FeatureDefn_GetGeomType($this->_cPtr);
  10399.     }
  10400.  
  10401. -   public function SetGeomType($geom_type) {
  10402. +   function SetGeomType($geom_type) {
  10403.         FeatureDefn_SetGeomType($this->_cPtr,$geom_type);
  10404.     }
  10405.  
  10406. -   public function GetReferenceCount() {
  10407. +   function GetReferenceCount() {
  10408.         return FeatureDefn_GetReferenceCount($this->_cPtr);
  10409.     }
  10410.  
  10411. -   public function IsGeometryIgnored() {
  10412. +   function IsGeometryIgnored() {
  10413.         return FeatureDefn_IsGeometryIgnored($this->_cPtr);
  10414.     }
  10415.  
  10416. -   public function SetGeometryIgnored($bIgnored) {
  10417. +   function SetGeometryIgnored($bIgnored) {
  10418.         FeatureDefn_SetGeometryIgnored($this->_cPtr,$bIgnored);
  10419.     }
  10420.  
  10421. -   public function IsStyleIgnored() {
  10422. +   function IsStyleIgnored() {
  10423.         return FeatureDefn_IsStyleIgnored($this->_cPtr);
  10424.     }
  10425.  
  10426. -   public function SetStyleIgnored($bIgnored) {
  10427. +   function SetStyleIgnored($bIgnored) {
  10428.         FeatureDefn_SetStyleIgnored($this->_cPtr,$bIgnored);
  10429.     }
  10430.  }
  10431. @@ -1025,75 +1028,74 @@
  10432.         return $this->_pData[$var];
  10433.     }
  10434.  
  10435. -   public function __construct($name_null_ok="unnamed",$field_type=null) {
  10436. +   function __construct($name_null_ok="unnamed",$field_type=null) {
  10437.         if (is_resource($name_null_ok) && get_resource_type($name_null_ok) === '_p_OGRFieldDefnShadow') {
  10438.             $this->_cPtr=$name_null_ok;
  10439.             return;
  10440.         }
  10441. -       $this->_cPtr=$r;
  10442.         switch (func_num_args()) {
  10443.         case 0: case 1: $this->_cPtr=new_FieldDefn($name_null_ok); break;
  10444.         default: $this->_cPtr=new_FieldDefn($name_null_ok,$field_type);
  10445.         }
  10446.     }
  10447.  
  10448. -   public function GetName() {
  10449. +   function GetName() {
  10450.         return FieldDefn_GetName($this->_cPtr);
  10451.     }
  10452.  
  10453. -   public function GetNameRef() {
  10454. +   function GetNameRef() {
  10455.         return FieldDefn_GetNameRef($this->_cPtr);
  10456.     }
  10457.  
  10458. -   public function SetName($name) {
  10459. +   function SetName($name) {
  10460.         FieldDefn_SetName($this->_cPtr,$name);
  10461.     }
  10462.  
  10463. -   public function GetType() {
  10464. +   function GetType() {
  10465.         return FieldDefn_GetType($this->_cPtr);
  10466.     }
  10467.  
  10468. -   public function SetType($type) {
  10469. +   function SetType($type) {
  10470.         FieldDefn_SetType($this->_cPtr,$type);
  10471.     }
  10472.  
  10473. -   public function GetJustify() {
  10474. +   function GetJustify() {
  10475.         return FieldDefn_GetJustify($this->_cPtr);
  10476.     }
  10477.  
  10478. -   public function SetJustify($justify) {
  10479. +   function SetJustify($justify) {
  10480.         FieldDefn_SetJustify($this->_cPtr,$justify);
  10481.     }
  10482.  
  10483. -   public function GetWidth() {
  10484. +   function GetWidth() {
  10485.         return FieldDefn_GetWidth($this->_cPtr);
  10486.     }
  10487.  
  10488. -   public function SetWidth($width) {
  10489. +   function SetWidth($width) {
  10490.         FieldDefn_SetWidth($this->_cPtr,$width);
  10491.     }
  10492.  
  10493. -   public function GetPrecision() {
  10494. +   function GetPrecision() {
  10495.         return FieldDefn_GetPrecision($this->_cPtr);
  10496.     }
  10497.  
  10498. -   public function SetPrecision($precision) {
  10499. +   function SetPrecision($precision) {
  10500.         FieldDefn_SetPrecision($this->_cPtr,$precision);
  10501.     }
  10502.  
  10503. -   public function GetTypeName() {
  10504. +   function GetTypeName() {
  10505.         return FieldDefn_GetTypeName($this->_cPtr);
  10506.     }
  10507.  
  10508. -   public function GetFieldTypeName($type) {
  10509. +   function GetFieldTypeName($type) {
  10510.         return FieldDefn_GetFieldTypeName($this->_cPtr,$type);
  10511.     }
  10512.  
  10513. -   public function IsIgnored() {
  10514. +   function IsIgnored() {
  10515.         return FieldDefn_IsIgnored($this->_cPtr);
  10516.     }
  10517.  
  10518. -   public function SetIgnored($bIgnored) {
  10519. +   function SetIgnored($bIgnored) {
  10520.         FieldDefn_SetIgnored($this->_cPtr,$bIgnored);
  10521.     }
  10522.  }
  10523. @@ -1117,12 +1119,11 @@
  10524.         return $this->_pData[$var];
  10525.     }
  10526.  
  10527. -   public function __construct($type=null,$wkt=null,$wkb=0,$gml=null) {
  10528. +   function __construct($type=null,$wkt=null,$wkb=0,$gml=null) {
  10529.         if (is_resource($type) && get_resource_type($type) === '_p_OGRGeometryShadow') {
  10530.             $this->_cPtr=$type;
  10531.             return;
  10532.         }
  10533. -       $this->_cPtr=$r;
  10534.         switch (func_num_args()) {
  10535.         case 0: $this->_cPtr=new_Geometry(); break;
  10536.         case 1: $this->_cPtr=new_Geometry($type); break;
  10537. @@ -1131,11 +1132,11 @@
  10538.         }
  10539.     }
  10540.  
  10541. -   public function ExportToWkt() {
  10542. +   function ExportToWkt() {
  10543.         return Geometry_ExportToWkt($this->_cPtr);
  10544.     }
  10545.  
  10546. -   public function ExportToWkb($byte_order=null) {
  10547. +   function ExportToWkb($byte_order=null) {
  10548.         switch (func_num_args()) {
  10549.         case 0: $r=Geometry_ExportToWkb($this->_cPtr); break;
  10550.         default: $r=Geometry_ExportToWkb($this->_cPtr,$byte_order);
  10551. @@ -1143,11 +1144,11 @@
  10552.         return $r;
  10553.     }
  10554.  
  10555. -   public function ExportToGML() {
  10556. +   function ExportToGML() {
  10557.         return Geometry_ExportToGML($this->_cPtr);
  10558.     }
  10559.  
  10560. -   public function ExportToKML($altitude_mode=null) {
  10561. +   function ExportToKML($altitude_mode=null) {
  10562.         switch (func_num_args()) {
  10563.         case 0: $r=Geometry_ExportToKML($this->_cPtr); break;
  10564.         default: $r=Geometry_ExportToKML($this->_cPtr,$altitude_mode);
  10565. @@ -1155,27 +1156,27 @@
  10566.         return $r;
  10567.     }
  10568.  
  10569. -   public function ExportToJson() {
  10570. +   function ExportToJson() {
  10571.         return Geometry_ExportToJson($this->_cPtr);
  10572.     }
  10573.  
  10574. -   public function AddPoint($x,$y,$z=0.0) {
  10575. +   function AddPoint($x,$y,$z=0.0) {
  10576.         Geometry_AddPoint($this->_cPtr,$x,$y,$z);
  10577.     }
  10578.  
  10579. -   public function AddPoint_2D($x,$y) {
  10580. +   function AddPoint_2D($x,$y) {
  10581.         Geometry_AddPoint_2D($this->_cPtr,$x,$y);
  10582.     }
  10583.  
  10584. -   public function AddGeometryDirectly($other_disown) {
  10585. +   function AddGeometryDirectly($other_disown) {
  10586.         return Geometry_AddGeometryDirectly($this->_cPtr,$other_disown);
  10587.     }
  10588.  
  10589. -   public function AddGeometry($other) {
  10590. +   function AddGeometry($other) {
  10591.         return Geometry_AddGeometry($this->_cPtr,$other);
  10592.     }
  10593.  
  10594. -   public function c_Clone() {
  10595. +   function c_Clone() {
  10596.         $r=Geometry_c_Clone($this->_cPtr);
  10597.         if (is_resource($r)) {
  10598.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10599. @@ -1187,63 +1188,63 @@
  10600.         return $r;
  10601.     }
  10602.  
  10603. -   public function GetGeometryType() {
  10604. +   function GetGeometryType() {
  10605.         return Geometry_GetGeometryType($this->_cPtr);
  10606.     }
  10607.  
  10608. -   public function GetGeometryName() {
  10609. +   function GetGeometryName() {
  10610.         return Geometry_GetGeometryName($this->_cPtr);
  10611.     }
  10612.  
  10613. -   public function Length() {
  10614. +   function Length() {
  10615.         return Geometry_Length($this->_cPtr);
  10616.     }
  10617.  
  10618. -   public function Area() {
  10619. +   function Area() {
  10620.         return Geometry_Area($this->_cPtr);
  10621.     }
  10622.  
  10623. -   public function GetArea() {
  10624. +   function GetArea() {
  10625.         return Geometry_GetArea($this->_cPtr);
  10626.     }
  10627.  
  10628. -   public function GetPointCount() {
  10629. +   function GetPointCount() {
  10630.         return Geometry_GetPointCount($this->_cPtr);
  10631.     }
  10632.  
  10633. -   public function GetX($point=0) {
  10634. +   function GetX($point=0) {
  10635.         return Geometry_GetX($this->_cPtr,$point);
  10636.     }
  10637.  
  10638. -   public function GetY($point=0) {
  10639. +   function GetY($point=0) {
  10640.         return Geometry_GetY($this->_cPtr,$point);
  10641.     }
  10642.  
  10643. -   public function GetZ($point=0) {
  10644. +   function GetZ($point=0) {
  10645.         return Geometry_GetZ($this->_cPtr,$point);
  10646.     }
  10647.  
  10648. -   public function GetPoint($iPoint=0) {
  10649. -       Geometry_GetPoint($this->_cPtr,$iPoint);
  10650. +   function GetPoint($iPoint=0) {
  10651. +       return Geometry_GetPoint($this->_cPtr,$iPoint);
  10652.     }
  10653.  
  10654. -   public function GetPoint_2D($iPoint=0) {
  10655. -       Geometry_GetPoint_2D($this->_cPtr,$iPoint);
  10656. +   function GetPoint_2D($iPoint=0) {
  10657. +       return Geometry_GetPoint_2D($this->_cPtr,$iPoint);
  10658.     }
  10659.  
  10660. -   public function GetGeometryCount() {
  10661. +   function GetGeometryCount() {
  10662.         return Geometry_GetGeometryCount($this->_cPtr);
  10663.     }
  10664.  
  10665. -   public function SetPoint($point,$x,$y,$z=0.0) {
  10666. +   function SetPoint($point,$x,$y,$z=0.0) {
  10667.         Geometry_SetPoint($this->_cPtr,$point,$x,$y,$z);
  10668.     }
  10669.  
  10670. -   public function SetPoint_2D($point,$x,$y) {
  10671. +   function SetPoint_2D($point,$x,$y) {
  10672.         Geometry_SetPoint_2D($this->_cPtr,$point,$x,$y);
  10673.     }
  10674.  
  10675. -   public function GetGeometryRef($geom) {
  10676. +   function GetGeometryRef($geom) {
  10677.         $r=Geometry_GetGeometryRef($this->_cPtr,$geom);
  10678.         if (is_resource($r)) {
  10679.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10680. @@ -1255,7 +1256,7 @@
  10681.         return $r;
  10682.     }
  10683.  
  10684. -   public function Simplify($tolerance) {
  10685. +   function Simplify($tolerance) {
  10686.         $r=Geometry_Simplify($this->_cPtr,$tolerance);
  10687.         if (is_resource($r)) {
  10688.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10689. @@ -1267,7 +1268,7 @@
  10690.         return $r;
  10691.     }
  10692.  
  10693. -   public function Boundary() {
  10694. +   function Boundary() {
  10695.         $r=Geometry_Boundary($this->_cPtr);
  10696.         if (is_resource($r)) {
  10697.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10698. @@ -1279,7 +1280,7 @@
  10699.         return $r;
  10700.     }
  10701.  
  10702. -   public function GetBoundary() {
  10703. +   function GetBoundary() {
  10704.         $r=Geometry_GetBoundary($this->_cPtr);
  10705.         if (is_resource($r)) {
  10706.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10707. @@ -1291,7 +1292,7 @@
  10708.         return $r;
  10709.     }
  10710.  
  10711. -   public function ConvexHull() {
  10712. +   function ConvexHull() {
  10713.         $r=Geometry_ConvexHull($this->_cPtr);
  10714.         if (is_resource($r)) {
  10715.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10716. @@ -1303,7 +1304,7 @@
  10717.         return $r;
  10718.     }
  10719.  
  10720. -   public function Buffer($distance,$quadsecs=30) {
  10721. +   function Buffer($distance,$quadsecs=30) {
  10722.         $r=Geometry_Buffer($this->_cPtr,$distance,$quadsecs);
  10723.         if (is_resource($r)) {
  10724.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10725. @@ -1315,7 +1316,7 @@
  10726.         return $r;
  10727.     }
  10728.  
  10729. -   public function Intersection($other) {
  10730. +   function Intersection($other) {
  10731.         $r=Geometry_Intersection($this->_cPtr,$other);
  10732.         if (is_resource($r)) {
  10733.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10734. @@ -1327,7 +1328,7 @@
  10735.         return $r;
  10736.     }
  10737.  
  10738. -   public function Union($other) {
  10739. +   function Union($other) {
  10740.         $r=Geometry_Union($this->_cPtr,$other);
  10741.         if (is_resource($r)) {
  10742.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10743. @@ -1339,7 +1340,7 @@
  10744.         return $r;
  10745.     }
  10746.  
  10747. -   public function UnionCascaded() {
  10748. +   function UnionCascaded() {
  10749.         $r=Geometry_UnionCascaded($this->_cPtr);
  10750.         if (is_resource($r)) {
  10751.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10752. @@ -1351,7 +1352,7 @@
  10753.         return $r;
  10754.     }
  10755.  
  10756. -   public function Difference($other) {
  10757. +   function Difference($other) {
  10758.         $r=Geometry_Difference($this->_cPtr,$other);
  10759.         if (is_resource($r)) {
  10760.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10761. @@ -1363,7 +1364,7 @@
  10762.         return $r;
  10763.     }
  10764.  
  10765. -   public function SymDifference($other) {
  10766. +   function SymDifference($other) {
  10767.         $r=Geometry_SymDifference($this->_cPtr,$other);
  10768.         if (is_resource($r)) {
  10769.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10770. @@ -1375,7 +1376,7 @@
  10771.         return $r;
  10772.     }
  10773.  
  10774. -   public function SymmetricDifference($other) {
  10775. +   function SymmetricDifference($other) {
  10776.         $r=Geometry_SymmetricDifference($this->_cPtr,$other);
  10777.         if (is_resource($r)) {
  10778.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10779. @@ -1387,79 +1388,79 @@
  10780.         return $r;
  10781.     }
  10782.  
  10783. -   public function Distance($other) {
  10784. +   function Distance($other) {
  10785.         return Geometry_Distance($this->_cPtr,$other);
  10786.     }
  10787.  
  10788. -   public function c_Empty() {
  10789. +   function c_Empty() {
  10790.         Geometry_c_Empty($this->_cPtr);
  10791.     }
  10792.  
  10793. -   public function IsEmpty() {
  10794. +   function IsEmpty() {
  10795.         return Geometry_IsEmpty($this->_cPtr);
  10796.     }
  10797.  
  10798. -   public function IsValid() {
  10799. +   function IsValid() {
  10800.         return Geometry_IsValid($this->_cPtr);
  10801.     }
  10802.  
  10803. -   public function IsSimple() {
  10804. +   function IsSimple() {
  10805.         return Geometry_IsSimple($this->_cPtr);
  10806.     }
  10807.  
  10808. -   public function IsRing() {
  10809. +   function IsRing() {
  10810.         return Geometry_IsRing($this->_cPtr);
  10811.     }
  10812.  
  10813. -   public function Intersects($other) {
  10814. +   function Intersects($other) {
  10815.         return Geometry_Intersects($this->_cPtr,$other);
  10816.     }
  10817.  
  10818. -   public function Intersect($other) {
  10819. +   function Intersect($other) {
  10820.         return Geometry_Intersect($this->_cPtr,$other);
  10821.     }
  10822.  
  10823. -   public function Equals($other) {
  10824. +   function Equals($other) {
  10825.         return Geometry_Equals($this->_cPtr,$other);
  10826.     }
  10827.  
  10828. -   public function Equal($other) {
  10829. +   function Equal($other) {
  10830.         return Geometry_Equal($this->_cPtr,$other);
  10831.     }
  10832.  
  10833. -   public function Disjoint($other) {
  10834. +   function Disjoint($other) {
  10835.         return Geometry_Disjoint($this->_cPtr,$other);
  10836.     }
  10837.  
  10838. -   public function Touches($other) {
  10839. +   function Touches($other) {
  10840.         return Geometry_Touches($this->_cPtr,$other);
  10841.     }
  10842.  
  10843. -   public function Crosses($other) {
  10844. +   function Crosses($other) {
  10845.         return Geometry_Crosses($this->_cPtr,$other);
  10846.     }
  10847.  
  10848. -   public function Within($other) {
  10849. +   function Within($other) {
  10850.         return Geometry_Within($this->_cPtr,$other);
  10851.     }
  10852.  
  10853. -   public function Contains($other) {
  10854. +   function Contains($other) {
  10855.         return Geometry_Contains($this->_cPtr,$other);
  10856.     }
  10857.  
  10858. -   public function Overlaps($other) {
  10859. +   function Overlaps($other) {
  10860.         return Geometry_Overlaps($this->_cPtr,$other);
  10861.     }
  10862.  
  10863. -   public function TransformTo($reference) {
  10864. +   function TransformTo($reference) {
  10865.         return Geometry_TransformTo($this->_cPtr,$reference);
  10866.     }
  10867.  
  10868. -   public function Transform($trans) {
  10869. +   function Transform($trans) {
  10870.         return Geometry_Transform($this->_cPtr,$trans);
  10871.     }
  10872.  
  10873. -   public function GetSpatialReference() {
  10874. +   function GetSpatialReference() {
  10875.         $r=Geometry_GetSpatialReference($this->_cPtr);
  10876.         if (is_resource($r)) {
  10877.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10878. @@ -1471,27 +1472,27 @@
  10879.         return $r;
  10880.     }
  10881.  
  10882. -   public function AssignSpatialReference($reference) {
  10883. +   function AssignSpatialReference($reference) {
  10884.         Geometry_AssignSpatialReference($this->_cPtr,$reference);
  10885.     }
  10886.  
  10887. -   public function CloseRings() {
  10888. +   function CloseRings() {
  10889.         Geometry_CloseRings($this->_cPtr);
  10890.     }
  10891.  
  10892. -   public function FlattenTo2D() {
  10893. +   function FlattenTo2D() {
  10894.         Geometry_FlattenTo2D($this->_cPtr);
  10895.     }
  10896.  
  10897. -   public function Segmentize($dfMaxLength) {
  10898. +   function Segmentize($dfMaxLength) {
  10899.         Geometry_Segmentize($this->_cPtr,$dfMaxLength);
  10900.     }
  10901.  
  10902. -   public function GetEnvelope() {
  10903. -       Geometry_GetEnvelope($this->_cPtr);
  10904. +   function GetEnvelope() {
  10905. +       return Geometry_GetEnvelope($this->_cPtr);
  10906.     }
  10907.  
  10908. -   public function Centroid() {
  10909. +   function Centroid() {
  10910.         $r=Geometry_Centroid($this->_cPtr);
  10911.         if (is_resource($r)) {
  10912.             $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));
  10913. @@ -1503,19 +1504,19 @@
  10914.         return $r;
  10915.     }
  10916.  
  10917. -   public function WkbSize() {
  10918. +   function WkbSize() {
  10919.         return Geometry_WkbSize($this->_cPtr);
  10920.     }
  10921.  
  10922. -   public function GetCoordinateDimension() {
  10923. +   function GetCoordinateDimension() {
  10924.         return Geometry_GetCoordinateDimension($this->_cPtr);
  10925.     }
  10926.  
  10927. -   public function SetCoordinateDimension($dimension) {
  10928. +   function SetCoordinateDimension($dimension) {
  10929.         Geometry_SetCoordinateDimension($this->_cPtr,$dimension);
  10930.     }
  10931.  
  10932. -   public function GetDimension() {
  10933. +   function GetDimension() {
  10934.         return Geometry_GetDimension($this->_cPtr);
  10935.     }
  10936.  }
  10937. Index: swig/php/osr_wrap.cpp
  10938. ===================================================================
  10939. --- swig/php/osr_wrap.cpp   (revision 21891)
  10940. +++ swig/php/osr_wrap.cpp   (working copy)
  10941. @@ -1,6 +1,6 @@
  10942.  /* ----------------------------------------------------------------------------
  10943.   * This file was automatically generated by SWIG (http://www.swig.org).
  10944. - * Version 1.3.40
  10945. + * Version 2.0.1
  10946.   *
  10947.   * This file is not intended to be easily readable and contains a number of
  10948.   * coding conventions designed to improve portability and efficiency. Do not make
  10949. @@ -196,7 +196,7 @@
  10950.  /*
  10951.     Flags/methods for returning states.
  10952.    
  10953. -   The SWIG conversion methods, as ConvertPtr, return and integer
  10954. +   The SWIG conversion methods, as ConvertPtr, return an integer
  10955.     that tells if the conversion was successful or not. And if not,
  10956.     an error code can be returned (see swigerrors.swg for the codes).
  10957.    
  10958. @@ -728,9 +728,6 @@
  10959.  #endif
  10960.  
  10961.  /* -----------------------------------------------------------------------------
  10962. - * See the LICENSE file for information on copyright, usage and redistribution
  10963. - * of SWIG, and the README file for authors - http://www.swig.org/release.html.
  10964. - *
  10965.   * phprun.swg
  10966.   *
  10967.   * PHP runtime library
  10968. @@ -741,6 +738,7 @@
  10969.  #endif
  10970.  #include "zend.h"
  10971.  #include "zend_API.h"
  10972. +#include "zend_exceptions.h"
  10973.  #include "php.h"
  10974.  #include "ext/standard/php_string.h"
  10975.  
  10976. @@ -755,17 +753,17 @@
  10977.  #endif
  10978.  
  10979.  #ifndef Z_SET_ISREF_P
  10980. -// For PHP < 5.3
  10981. +/* For PHP < 5.3 */
  10982.  # define Z_SET_ISREF_P(z) (z)->is_ref = 1
  10983.  #endif
  10984.  #ifndef Z_SET_REFCOUNT_P
  10985. -// For PHP < 5.3
  10986. +/* For PHP < 5.3 */
  10987.  # define Z_SET_REFCOUNT_P(z, rc) (z)->refcount = (rc)
  10988.  #endif
  10989.  
  10990.  #define SWIG_LONG_CONSTANT(N, V) zend_register_long_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  10991.  #define SWIG_DOUBLE_CONSTANT(N, V) zend_register_double_constant((char*)#N, sizeof(#N), V, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  10992. -#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), V, strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  10993. +#define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC)
  10994.  #define SWIG_CHAR_CONSTANT(N, V) do {\
  10995.      static char swig_char = (V);\
  10996.      zend_register_stringl_constant((char*)#N, sizeof(#N), &swig_char, 1, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);\
  10997. @@ -1162,23 +1160,29 @@
  10998.  }
  10999.  
  11000.  
  11001. -static char *
  11002. +
  11003. +#include "ogr_core.h"
  11004. +static char const *
  11005.  OGRErrMessages( int rc ) {
  11006.    switch( rc ) {
  11007. -  case 0:
  11008. -    return "OGR Error 0: None";
  11009. -  case 1:
  11010. -    return "OGR Error 1: Not enough data";
  11011. -  case 2:
  11012. -    return "OGR Error 2: Unsupported geometry type";
  11013. -  case 3:
  11014. -    return "OGR Error 3: Unsupported operation";
  11015. -  case 4:
  11016. -    return "OGR Error 4: Corrupt data";
  11017. -  case 5:
  11018. -    return "OGR Error 5: General Error";
  11019. -  case 6:
  11020. -    return "OGR Error 6: Unsupported SRS";
  11021. +  case OGRERR_NONE:
  11022. +    return "OGR Error: None";
  11023. +  case OGRERR_NOT_ENOUGH_DATA:
  11024. +    return "OGR Error: Not enough data to deserialize";
  11025. +  case OGRERR_NOT_ENOUGH_MEMORY:
  11026. +    return "OGR Error: Not enough memory";
  11027. +  case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
  11028. +    return "OGR Error: Unsupported geometry type";
  11029. +  case OGRERR_UNSUPPORTED_OPERATION:
  11030. +    return "OGR Error: Unsupported operation";
  11031. +  case OGRERR_CORRUPT_DATA:
  11032. +    return "OGR Error: Corrupt data";
  11033. +  case OGRERR_FAILURE:
  11034. +    return "OGR Error: General Error";
  11035. +  case OGRERR_UNSUPPORTED_SRS:
  11036. +    return "OGR Error: Unsupported SRS";
  11037. +  case OGRERR_INVALID_HANDLE:
  11038. +    return "OGR Error: Invalid handle";
  11039.    default:
  11040.      return "OGR Error: Unknown";
  11041.    }
  11042. @@ -1684,7 +1688,7 @@
  11043.    }
  11044.    
  11045.    
  11046. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11047. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11048.    if ((*args[0])->type==IS_NULL) {
  11049.      arg1 = (char *) 0;
  11050.    } else {
  11051. @@ -1724,7 +1728,9 @@
  11052.    }
  11053.    {
  11054.      /* %typemap(ret) OGRErr */
  11055. -    RETVAL_LONG(0);
  11056. +    if (result != 0) {
  11057. +      RETVAL_LONG(result);
  11058. +    }
  11059.    }
  11060.    return;
  11061.  fail:
  11062. @@ -1733,7 +1739,7 @@
  11063.      if ( *arg2 )
  11064.      CPLFree( *arg2 );
  11065.    }
  11066. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11067. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11068.  }
  11069.  
  11070.  
  11071. @@ -1754,7 +1760,7 @@
  11072.    }
  11073.    
  11074.    
  11075. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11076. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11077.    if ((*args[0])->type==IS_NULL) {
  11078.      arg1 = (char *) 0;
  11079.    } else {
  11080. @@ -1794,7 +1800,9 @@
  11081.    }
  11082.    {
  11083.      /* %typemap(ret) OGRErr */
  11084. -    RETVAL_LONG(0);
  11085. +    if (result != 0) {
  11086. +      RETVAL_LONG(result);
  11087. +    }
  11088.    }
  11089.    return;
  11090.  fail:
  11091. @@ -1803,7 +1811,7 @@
  11092.      if ( *arg2 )
  11093.      CPLFree( *arg2 );
  11094.    }
  11095. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11096. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11097.  }
  11098.  
  11099.  
  11100. @@ -1816,12 +1824,24 @@
  11101.    }
  11102.    
  11103.    result = (char **)OPTGetProjectionMethods();
  11104. -  
  11105. -  SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0);
  11106. -  
  11107. +  {
  11108. +    /* %typemap(out) char ** -> ( string ) */
  11109. +    char **stringarray = result;
  11110. +    if ( stringarray == NULL ) {
  11111. +      RETVAL_NULL();
  11112. +    }
  11113. +    else {
  11114. +      int len = CSLCount( stringarray );
  11115. +      array_init(return_value);
  11116. +      for ( int i = 0; i < len; ++i, ++stringarray ) {
  11117. +        add_next_index_string( return_value, *stringarray, 1 );
  11118. +      }
  11119. +    }
  11120. +    CSLDestroy(result);
  11121. +  }
  11122.    return;
  11123.  fail:
  11124. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11125. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11126.  }
  11127.  
  11128.  
  11129. @@ -1837,7 +1857,7 @@
  11130.    }
  11131.    
  11132.    
  11133. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11134. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11135.    if ((*args[0])->type==IS_NULL) {
  11136.      arg1 = (char *) 0;
  11137.    } else {
  11138. @@ -1852,12 +1872,24 @@
  11139.      }
  11140.    }
  11141.    result = (char **)OPTGetParameterList(arg1,arg2);
  11142. -  
  11143. -  SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0);
  11144. -  
  11145. +  {
  11146. +    /* %typemap(out) char ** -> ( string ) */
  11147. +    char **stringarray = result;
  11148. +    if ( stringarray == NULL ) {
  11149. +      RETVAL_NULL();
  11150. +    }
  11151. +    else {
  11152. +      int len = CSLCount( stringarray );
  11153. +      array_init(return_value);
  11154. +      for ( int i = 0; i < len; ++i, ++stringarray ) {
  11155. +        add_next_index_string( return_value, *stringarray, 1 );
  11156. +      }
  11157. +    }
  11158. +    CSLDestroy(result);
  11159. +  }
  11160.    return;
  11161.  fail:
  11162. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11163. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11164.  }
  11165.  
  11166.  
  11167. @@ -1875,7 +1907,7 @@
  11168.    }
  11169.    
  11170.    
  11171. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11172. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11173.    if ((*args[0])->type==IS_NULL) {
  11174.      arg1 = (char *) 0;
  11175.    } else {
  11176. @@ -1885,7 +1917,7 @@
  11177.    /*@SWIG@*/;
  11178.    
  11179.    
  11180. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11181. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11182.    if ((*args[1])->type==IS_NULL) {
  11183.      arg2 = (char *) 0;
  11184.    } else {
  11185. @@ -1913,7 +1945,7 @@
  11186.    
  11187.    return;
  11188.  fail:
  11189. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11190. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11191.  }
  11192.  
  11193.  
  11194. @@ -1930,7 +1962,7 @@
  11195.    WRONG_PARAM_COUNT;
  11196.    
  11197.    if(arg_count > 0) {
  11198. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11199. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11200.      if ((*args[0])->type==IS_NULL) {
  11201.        arg1 = (char *) 0;
  11202.      } else {
  11203. @@ -1946,7 +1978,7 @@
  11204.    
  11205.    return;
  11206.  fail:
  11207. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11208. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11209.  }
  11210.  
  11211.  
  11212. @@ -1965,7 +1997,7 @@
  11213.    delete_OSRSpatialReferenceShadow(arg1);
  11214.    return;
  11215.  fail:
  11216. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11217. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11218.  }
  11219.  
  11220.  
  11221. @@ -1996,7 +2028,7 @@
  11222.    delete [] result;
  11223.    return;
  11224.  fail:
  11225. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11226. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11227.  }
  11228.  
  11229.  
  11230. @@ -2033,7 +2065,7 @@
  11231.    }
  11232.    return;
  11233.  fail:
  11234. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11235. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11236.  }
  11237.  
  11238.  
  11239. @@ -2070,7 +2102,7 @@
  11240.    }
  11241.    return;
  11242.  fail:
  11243. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11244. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11245.  }
  11246.  
  11247.  
  11248. @@ -2096,7 +2128,7 @@
  11249.    }
  11250.    return;
  11251.  fail:
  11252. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11253. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11254.  }
  11255.  
  11256.  
  11257. @@ -2122,7 +2154,7 @@
  11258.    }
  11259.    return;
  11260.  fail:
  11261. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11262. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11263.  }
  11264.  
  11265.  
  11266. @@ -2148,7 +2180,7 @@
  11267.    }
  11268.    return;
  11269.  fail:
  11270. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11271. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11272.  }
  11273.  
  11274.  
  11275. @@ -2174,7 +2206,7 @@
  11276.    }
  11277.    return;
  11278.  fail:
  11279. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11280. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11281.  }
  11282.  
  11283.  
  11284. @@ -2198,7 +2230,7 @@
  11285.    }
  11286.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11287.    
  11288. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11289. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11290.    if ((*args[1])->type==IS_NULL) {
  11291.      arg2 = (char *) 0;
  11292.    } else {
  11293. @@ -2208,7 +2240,7 @@
  11294.    /*@SWIG@*/;
  11295.    
  11296.    
  11297. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11298. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11299.    if ((*args[2])->type==IS_NULL) {
  11300.      arg3 = (char *) 0;
  11301.    } else {
  11302. @@ -2218,7 +2250,7 @@
  11303.    /*@SWIG@*/;
  11304.    
  11305.    
  11306. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11307. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11308.    convert_to_long_ex(args[3]);
  11309.    arg4 = (int) Z_LVAL_PP(args[3]);
  11310.    /*@SWIG@*/;
  11311. @@ -2232,11 +2264,13 @@
  11312.    }
  11313.    {
  11314.      /* %typemap(ret) OGRErr */
  11315. -    RETVAL_LONG(0);
  11316. +    if (result != 0) {
  11317. +      RETVAL_LONG(result);
  11318. +    }
  11319.    }
  11320.    return;
  11321.  fail:
  11322. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11323. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11324.  }
  11325.  
  11326.  
  11327. @@ -2261,7 +2295,7 @@
  11328.    }
  11329.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11330.    
  11331. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11332. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11333.    if ((*args[1])->type==IS_NULL) {
  11334.      arg2 = (char *) 0;
  11335.    } else {
  11336. @@ -2271,7 +2305,7 @@
  11337.    /*@SWIG@*/;
  11338.    
  11339.    if(arg_count > 2) {
  11340. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11341. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11342.      convert_to_long_ex(args[2]);
  11343.      arg3 = (int) Z_LVAL_PP(args[2]);
  11344.      /*@SWIG@*/;
  11345. @@ -2292,7 +2326,7 @@
  11346.    }
  11347.    return;
  11348.  fail:
  11349. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11350. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11351.  }
  11352.  
  11353.  
  11354. @@ -2315,7 +2349,7 @@
  11355.    }
  11356.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11357.    
  11358. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11359. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11360.    if ((*args[1])->type==IS_NULL) {
  11361.      arg2 = (char *) 0;
  11362.    } else {
  11363. @@ -2325,7 +2359,7 @@
  11364.    /*@SWIG@*/;
  11365.    
  11366.    
  11367. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11368. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11369.    if ((*args[2])->type==IS_NULL) {
  11370.      arg3 = (char *) 0;
  11371.    } else {
  11372. @@ -2348,11 +2382,13 @@
  11373.    }
  11374.    {
  11375.      /* %typemap(ret) OGRErr */
  11376. -    RETVAL_LONG(0);
  11377. +    if (result != 0) {
  11378. +      RETVAL_LONG(result);
  11379. +    }
  11380.    }
  11381.    return;
  11382.  fail:
  11383. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11384. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11385.  }
  11386.  
  11387.  
  11388. @@ -2375,7 +2411,7 @@
  11389.    }
  11390.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11391.    
  11392. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11393. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11394.    if ((*args[1])->type==IS_NULL) {
  11395.      arg2 = (char *) 0;
  11396.    } else {
  11397. @@ -2385,7 +2421,7 @@
  11398.    /*@SWIG@*/;
  11399.    
  11400.    
  11401. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11402. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11403.    convert_to_double_ex(args[2]);
  11404.    arg3 = (double) Z_DVAL_PP(args[2]);
  11405.    /*@SWIG@*/;
  11406. @@ -2404,11 +2440,13 @@
  11407.    }
  11408.    {
  11409.      /* %typemap(ret) OGRErr */
  11410. -    RETVAL_LONG(0);
  11411. +    if (result != 0) {
  11412. +      RETVAL_LONG(result);
  11413. +    }
  11414.    }
  11415.    return;
  11416.  fail:
  11417. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11418. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11419.  }
  11420.  
  11421.  
  11422. @@ -2434,7 +2472,7 @@
  11423.    }
  11424.    return;
  11425.  fail:
  11426. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11427. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11428.  }
  11429.  
  11430.  
  11431. @@ -2457,7 +2495,7 @@
  11432.    }
  11433.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11434.    
  11435. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11436. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11437.    if ((*args[1])->type==IS_NULL) {
  11438.      arg2 = (char *) 0;
  11439.    } else {
  11440. @@ -2467,7 +2505,7 @@
  11441.    /*@SWIG@*/;
  11442.    
  11443.    
  11444. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11445. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11446.    convert_to_double_ex(args[2]);
  11447.    arg3 = (double) Z_DVAL_PP(args[2]);
  11448.    /*@SWIG@*/;
  11449. @@ -2486,11 +2524,13 @@
  11450.    }
  11451.    {
  11452.      /* %typemap(ret) OGRErr */
  11453. -    RETVAL_LONG(0);
  11454. +    if (result != 0) {
  11455. +      RETVAL_LONG(result);
  11456. +    }
  11457.    }
  11458.    return;
  11459.  fail:
  11460. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11461. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11462.  }
  11463.  
  11464.  
  11465. @@ -2513,7 +2553,7 @@
  11466.    }
  11467.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11468.    
  11469. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11470. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11471.    if ((*args[1])->type==IS_NULL) {
  11472.      arg2 = (char *) 0;
  11473.    } else {
  11474. @@ -2523,7 +2563,7 @@
  11475.    /*@SWIG@*/;
  11476.    
  11477.    
  11478. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11479. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11480.    convert_to_double_ex(args[2]);
  11481.    arg3 = (double) Z_DVAL_PP(args[2]);
  11482.    /*@SWIG@*/;
  11483. @@ -2542,11 +2582,13 @@
  11484.    }
  11485.    {
  11486.      /* %typemap(ret) OGRErr */
  11487. -    RETVAL_LONG(0);
  11488. +    if (result != 0) {
  11489. +      RETVAL_LONG(result);
  11490. +    }
  11491.    }
  11492.    return;
  11493.  fail:
  11494. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11495. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11496.  }
  11497.  
  11498.  
  11499. @@ -2572,7 +2614,7 @@
  11500.    }
  11501.    return;
  11502.  fail:
  11503. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11504. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11505.  }
  11506.  
  11507.  
  11508. @@ -2602,7 +2644,7 @@
  11509.    }
  11510.    return;
  11511.  fail:
  11512. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11513. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11514.  }
  11515.  
  11516.  
  11517. @@ -2624,7 +2666,7 @@
  11518.    }
  11519.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11520.    
  11521. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11522. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11523.    if ((*args[1])->type==IS_NULL) {
  11524.      arg2 = (char *) 0;
  11525.    } else {
  11526. @@ -2643,7 +2685,7 @@
  11527.    }
  11528.    return;
  11529.  fail:
  11530. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11531. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11532.  }
  11533.  
  11534.  
  11535. @@ -2665,7 +2707,7 @@
  11536.    }
  11537.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11538.    
  11539. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11540. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11541.    if ((*args[1])->type==IS_NULL) {
  11542.      arg2 = (char *) 0;
  11543.    } else {
  11544. @@ -2684,7 +2726,7 @@
  11545.    }
  11546.    return;
  11547.  fail:
  11548. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11549. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11550.  }
  11551.  
  11552.  
  11553. @@ -2709,13 +2751,13 @@
  11554.    }
  11555.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11556.    
  11557. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11558. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11559.    convert_to_long_ex(args[1]);
  11560.    arg2 = (int) Z_LVAL_PP(args[1]);
  11561.    /*@SWIG@*/;
  11562.    
  11563.    if(arg_count > 2) {
  11564. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11565. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11566.      convert_to_long_ex(args[2]);
  11567.      arg3 = (int) Z_LVAL_PP(args[2]);
  11568.      /*@SWIG@*/;
  11569. @@ -2730,11 +2772,13 @@
  11570.    }
  11571.    {
  11572.      /* %typemap(ret) OGRErr */
  11573. -    RETVAL_LONG(0);
  11574. +    if (result != 0) {
  11575. +      RETVAL_LONG(result);
  11576. +    }
  11577.    }
  11578.    return;
  11579.  fail:
  11580. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11581. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11582.  }
  11583.  
  11584.  
  11585. @@ -2760,7 +2804,7 @@
  11586.    }
  11587.    return;
  11588.  fail:
  11589. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11590. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11591.  }
  11592.  
  11593.  
  11594. @@ -2787,20 +2831,20 @@
  11595.    }
  11596.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11597.    
  11598. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11599. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11600.    convert_to_long_ex(args[1]);
  11601.    arg2 = (int) Z_LVAL_PP(args[1]);
  11602.    /*@SWIG@*/;
  11603.    
  11604.    if(arg_count > 2) {
  11605. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  11606. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  11607.      convert_to_long_ex(args[2]);
  11608.      arg3 = (int) Z_LVAL_PP(args[2]);
  11609.      /*@SWIG@*/;
  11610.      
  11611.    }
  11612.    if(arg_count > 3) {
  11613. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11614. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11615.      if ((*args[3])->type==IS_NULL) {
  11616.        arg4 = (char *) 0;
  11617.      } else {
  11618. @@ -2811,7 +2855,7 @@
  11619.      
  11620.    }
  11621.    if(arg_count > 4) {
  11622. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11623. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11624.      convert_to_double_ex(args[4]);
  11625.      arg5 = (double) Z_DVAL_PP(args[4]);
  11626.      /*@SWIG@*/;
  11627. @@ -2826,11 +2870,13 @@
  11628.    }
  11629.    {
  11630.      /* %typemap(ret) OGRErr */
  11631. -    RETVAL_LONG(0);
  11632. +    if (result != 0) {
  11633. +      RETVAL_LONG(result);
  11634. +    }
  11635.    }
  11636.    return;
  11637.  fail:
  11638. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11639. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11640.  }
  11641.  
  11642.  
  11643. @@ -2859,11 +2905,13 @@
  11644.    }
  11645.    {
  11646.      /* %typemap(ret) OGRErr */
  11647. -    RETVAL_LONG(0);
  11648. +    if (result != 0) {
  11649. +      RETVAL_LONG(result);
  11650. +    }
  11651.    }
  11652.    return;
  11653.  fail:
  11654. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11655. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11656.  }
  11657.  
  11658.  
  11659. @@ -2885,7 +2933,7 @@
  11660.    }
  11661.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11662.    
  11663. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11664. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11665.    if ((*args[1])->type==IS_NULL) {
  11666.      arg2 = (char *) 0;
  11667.    } else {
  11668. @@ -2903,11 +2951,13 @@
  11669.    }
  11670.    {
  11671.      /* %typemap(ret) OGRErr */
  11672. -    RETVAL_LONG(0);
  11673. +    if (result != 0) {
  11674. +      RETVAL_LONG(result);
  11675. +    }
  11676.    }
  11677.    return;
  11678.  fail:
  11679. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11680. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11681.  }
  11682.  
  11683.  
  11684. @@ -2930,7 +2980,7 @@
  11685.    }
  11686.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11687.    
  11688. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11689. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11690.    if ((*args[1])->type==IS_NULL) {
  11691.      arg2 = (char *) 0;
  11692.    } else {
  11693. @@ -2940,7 +2990,7 @@
  11694.    /*@SWIG@*/;
  11695.    
  11696.    
  11697. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11698. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11699.    convert_to_double_ex(args[2]);
  11700.    arg3 = (double) Z_DVAL_PP(args[2]);
  11701.    /*@SWIG@*/;
  11702. @@ -2959,11 +3009,13 @@
  11703.    }
  11704.    {
  11705.      /* %typemap(ret) OGRErr */
  11706. -    RETVAL_LONG(0);
  11707. +    if (result != 0) {
  11708. +      RETVAL_LONG(result);
  11709. +    }
  11710.    }
  11711.    return;
  11712.  fail:
  11713. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11714. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11715.  }
  11716.  
  11717.  
  11718. @@ -2988,7 +3040,7 @@
  11719.    }
  11720.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11721.    
  11722. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11723. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11724.    if ((*args[1])->type==IS_NULL) {
  11725.      arg2 = (char *) 0;
  11726.    } else {
  11727. @@ -2998,7 +3050,7 @@
  11728.    /*@SWIG@*/;
  11729.    
  11730.    if(arg_count > 2) {
  11731. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11732. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11733.      convert_to_double_ex(args[2]);
  11734.      arg3 = (double) Z_DVAL_PP(args[2]);
  11735.      /*@SWIG@*/;
  11736. @@ -3015,7 +3067,7 @@
  11737.    }
  11738.    return;
  11739.  fail:
  11740. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11741. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11742.  }
  11743.  
  11744.  
  11745. @@ -3038,7 +3090,7 @@
  11746.    }
  11747.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11748.    
  11749. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11750. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11751.    if ((*args[1])->type==IS_NULL) {
  11752.      arg2 = (char *) 0;
  11753.    } else {
  11754. @@ -3048,7 +3100,7 @@
  11755.    /*@SWIG@*/;
  11756.    
  11757.    
  11758. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11759. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11760.    convert_to_double_ex(args[2]);
  11761.    arg3 = (double) Z_DVAL_PP(args[2]);
  11762.    /*@SWIG@*/;
  11763. @@ -3067,11 +3119,13 @@
  11764.    }
  11765.    {
  11766.      /* %typemap(ret) OGRErr */
  11767. -    RETVAL_LONG(0);
  11768. +    if (result != 0) {
  11769. +      RETVAL_LONG(result);
  11770. +    }
  11771.    }
  11772.    return;
  11773.  fail:
  11774. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11775. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11776.  }
  11777.  
  11778.  
  11779. @@ -3096,7 +3150,7 @@
  11780.    }
  11781.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11782.    
  11783. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  11784. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  11785.    if ((*args[1])->type==IS_NULL) {
  11786.      arg2 = (char *) 0;
  11787.    } else {
  11788. @@ -3106,7 +3160,7 @@
  11789.    /*@SWIG@*/;
  11790.    
  11791.    if(arg_count > 2) {
  11792. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11793. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11794.      convert_to_double_ex(args[2]);
  11795.      arg3 = (double) Z_DVAL_PP(args[2]);
  11796.      /*@SWIG@*/;
  11797. @@ -3123,7 +3177,7 @@
  11798.    }
  11799.    return;
  11800.  fail:
  11801. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11802. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11803.  }
  11804.  
  11805.  
  11806. @@ -3149,7 +3203,7 @@
  11807.    }
  11808.    return;
  11809.  fail:
  11810. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11811. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11812.  }
  11813.  
  11814.  
  11815. @@ -3175,7 +3229,7 @@
  11816.    }
  11817.    return;
  11818.  fail:
  11819. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11820. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11821.  }
  11822.  
  11823.  
  11824. @@ -3201,7 +3255,7 @@
  11825.    }
  11826.    return;
  11827.  fail:
  11828. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11829. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11830.  }
  11831.  
  11832.  
  11833. @@ -3228,37 +3282,37 @@
  11834.    }
  11835.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11836.    
  11837. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11838. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11839.    convert_to_double_ex(args[1]);
  11840.    arg2 = (double) Z_DVAL_PP(args[1]);
  11841.    /*@SWIG@*/;
  11842.    
  11843.    
  11844. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11845. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11846.    convert_to_double_ex(args[2]);
  11847.    arg3 = (double) Z_DVAL_PP(args[2]);
  11848.    /*@SWIG@*/;
  11849.    
  11850.    
  11851. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11852. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11853.    convert_to_double_ex(args[3]);
  11854.    arg4 = (double) Z_DVAL_PP(args[3]);
  11855.    /*@SWIG@*/;
  11856.    
  11857.    
  11858. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11859. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11860.    convert_to_double_ex(args[4]);
  11861.    arg5 = (double) Z_DVAL_PP(args[4]);
  11862.    /*@SWIG@*/;
  11863.    
  11864.    
  11865. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11866. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11867.    convert_to_double_ex(args[5]);
  11868.    arg6 = (double) Z_DVAL_PP(args[5]);
  11869.    /*@SWIG@*/;
  11870.    
  11871.    
  11872. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11873. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11874.    convert_to_double_ex(args[6]);
  11875.    arg7 = (double) Z_DVAL_PP(args[6]);
  11876.    /*@SWIG@*/;
  11877. @@ -3272,11 +3326,13 @@
  11878.    }
  11879.    {
  11880.      /* %typemap(ret) OGRErr */
  11881. -    RETVAL_LONG(0);
  11882. +    if (result != 0) {
  11883. +      RETVAL_LONG(result);
  11884. +    }
  11885.    }
  11886.    return;
  11887.  fail:
  11888. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11889. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11890.  }
  11891.  
  11892.  
  11893. @@ -3301,25 +3357,25 @@
  11894.    }
  11895.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11896.    
  11897. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11898. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11899.    convert_to_double_ex(args[1]);
  11900.    arg2 = (double) Z_DVAL_PP(args[1]);
  11901.    /*@SWIG@*/;
  11902.    
  11903.    
  11904. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11905. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11906.    convert_to_double_ex(args[2]);
  11907.    arg3 = (double) Z_DVAL_PP(args[2]);
  11908.    /*@SWIG@*/;
  11909.    
  11910.    
  11911. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11912. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11913.    convert_to_double_ex(args[3]);
  11914.    arg4 = (double) Z_DVAL_PP(args[3]);
  11915.    /*@SWIG@*/;
  11916.    
  11917.    
  11918. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11919. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11920.    convert_to_double_ex(args[4]);
  11921.    arg5 = (double) Z_DVAL_PP(args[4]);
  11922.    /*@SWIG@*/;
  11923. @@ -3333,11 +3389,13 @@
  11924.    }
  11925.    {
  11926.      /* %typemap(ret) OGRErr */
  11927. -    RETVAL_LONG(0);
  11928. +    if (result != 0) {
  11929. +      RETVAL_LONG(result);
  11930. +    }
  11931.    }
  11932.    return;
  11933.  fail:
  11934. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11935. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11936.  }
  11937.  
  11938.  
  11939. @@ -3362,25 +3420,25 @@
  11940.    }
  11941.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11942.    
  11943. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11944. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11945.    convert_to_double_ex(args[1]);
  11946.    arg2 = (double) Z_DVAL_PP(args[1]);
  11947.    /*@SWIG@*/;
  11948.    
  11949.    
  11950. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11951. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11952.    convert_to_double_ex(args[2]);
  11953.    arg3 = (double) Z_DVAL_PP(args[2]);
  11954.    /*@SWIG@*/;
  11955.    
  11956.    
  11957. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11958. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11959.    convert_to_double_ex(args[3]);
  11960.    arg4 = (double) Z_DVAL_PP(args[3]);
  11961.    /*@SWIG@*/;
  11962.    
  11963.    
  11964. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11965. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11966.    convert_to_double_ex(args[4]);
  11967.    arg5 = (double) Z_DVAL_PP(args[4]);
  11968.    /*@SWIG@*/;
  11969. @@ -3394,11 +3452,13 @@
  11970.    }
  11971.    {
  11972.      /* %typemap(ret) OGRErr */
  11973. -    RETVAL_LONG(0);
  11974. +    if (result != 0) {
  11975. +      RETVAL_LONG(result);
  11976. +    }
  11977.    }
  11978.    return;
  11979.  fail:
  11980. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11981. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  11982.  }
  11983.  
  11984.  
  11985. @@ -3423,25 +3483,25 @@
  11986.    }
  11987.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  11988.    
  11989. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11990. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11991.    convert_to_double_ex(args[1]);
  11992.    arg2 = (double) Z_DVAL_PP(args[1]);
  11993.    /*@SWIG@*/;
  11994.    
  11995.    
  11996. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  11997. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  11998.    convert_to_double_ex(args[2]);
  11999.    arg3 = (double) Z_DVAL_PP(args[2]);
  12000.    /*@SWIG@*/;
  12001.    
  12002.    
  12003. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12004. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12005.    convert_to_double_ex(args[3]);
  12006.    arg4 = (double) Z_DVAL_PP(args[3]);
  12007.    /*@SWIG@*/;
  12008.    
  12009.    
  12010. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12011. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12012.    convert_to_double_ex(args[4]);
  12013.    arg5 = (double) Z_DVAL_PP(args[4]);
  12014.    /*@SWIG@*/;
  12015. @@ -3455,11 +3515,13 @@
  12016.    }
  12017.    {
  12018.      /* %typemap(ret) OGRErr */
  12019. -    RETVAL_LONG(0);
  12020. +    if (result != 0) {
  12021. +      RETVAL_LONG(result);
  12022. +    }
  12023.    }
  12024.    return;
  12025.  fail:
  12026. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12027. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12028.  }
  12029.  
  12030.  
  12031. @@ -3484,25 +3546,25 @@
  12032.    }
  12033.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12034.    
  12035. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12036. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12037.    convert_to_double_ex(args[1]);
  12038.    arg2 = (double) Z_DVAL_PP(args[1]);
  12039.    /*@SWIG@*/;
  12040.    
  12041.    
  12042. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12043. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12044.    convert_to_double_ex(args[2]);
  12045.    arg3 = (double) Z_DVAL_PP(args[2]);
  12046.    /*@SWIG@*/;
  12047.    
  12048.    
  12049. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12050. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12051.    convert_to_double_ex(args[3]);
  12052.    arg4 = (double) Z_DVAL_PP(args[3]);
  12053.    /*@SWIG@*/;
  12054.    
  12055.    
  12056. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12057. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12058.    convert_to_double_ex(args[4]);
  12059.    arg5 = (double) Z_DVAL_PP(args[4]);
  12060.    /*@SWIG@*/;
  12061. @@ -3516,11 +3578,13 @@
  12062.    }
  12063.    {
  12064.      /* %typemap(ret) OGRErr */
  12065. -    RETVAL_LONG(0);
  12066. +    if (result != 0) {
  12067. +      RETVAL_LONG(result);
  12068. +    }
  12069.    }
  12070.    return;
  12071.  fail:
  12072. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12073. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12074.  }
  12075.  
  12076.  
  12077. @@ -3547,37 +3611,37 @@
  12078.    }
  12079.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12080.    
  12081. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12082. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12083.    convert_to_double_ex(args[1]);
  12084.    arg2 = (double) Z_DVAL_PP(args[1]);
  12085.    /*@SWIG@*/;
  12086.    
  12087.    
  12088. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12089. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12090.    convert_to_double_ex(args[2]);
  12091.    arg3 = (double) Z_DVAL_PP(args[2]);
  12092.    /*@SWIG@*/;
  12093.    
  12094.    
  12095. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12096. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12097.    convert_to_double_ex(args[3]);
  12098.    arg4 = (double) Z_DVAL_PP(args[3]);
  12099.    /*@SWIG@*/;
  12100.    
  12101.    
  12102. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12103. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12104.    convert_to_double_ex(args[4]);
  12105.    arg5 = (double) Z_DVAL_PP(args[4]);
  12106.    /*@SWIG@*/;
  12107.    
  12108.    
  12109. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12110. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12111.    convert_to_double_ex(args[5]);
  12112.    arg6 = (double) Z_DVAL_PP(args[5]);
  12113.    /*@SWIG@*/;
  12114.    
  12115.    
  12116. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12117. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12118.    convert_to_double_ex(args[6]);
  12119.    arg7 = (double) Z_DVAL_PP(args[6]);
  12120.    /*@SWIG@*/;
  12121. @@ -3591,11 +3655,13 @@
  12122.    }
  12123.    {
  12124.      /* %typemap(ret) OGRErr */
  12125. -    RETVAL_LONG(0);
  12126. +    if (result != 0) {
  12127. +      RETVAL_LONG(result);
  12128. +    }
  12129.    }
  12130.    return;
  12131.  fail:
  12132. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12133. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12134.  }
  12135.  
  12136.  
  12137. @@ -3619,19 +3685,19 @@
  12138.    }
  12139.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12140.    
  12141. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12142. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12143.    convert_to_double_ex(args[1]);
  12144.    arg2 = (double) Z_DVAL_PP(args[1]);
  12145.    /*@SWIG@*/;
  12146.    
  12147.    
  12148. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12149. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12150.    convert_to_double_ex(args[2]);
  12151.    arg3 = (double) Z_DVAL_PP(args[2]);
  12152.    /*@SWIG@*/;
  12153.    
  12154.    
  12155. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12156. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12157.    convert_to_double_ex(args[3]);
  12158.    arg4 = (double) Z_DVAL_PP(args[3]);
  12159.    /*@SWIG@*/;
  12160. @@ -3645,11 +3711,13 @@
  12161.    }
  12162.    {
  12163.      /* %typemap(ret) OGRErr */
  12164. -    RETVAL_LONG(0);
  12165. +    if (result != 0) {
  12166. +      RETVAL_LONG(result);
  12167. +    }
  12168.    }
  12169.    return;
  12170.  fail:
  12171. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12172. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12173.  }
  12174.  
  12175.  
  12176. @@ -3673,19 +3741,19 @@
  12177.    }
  12178.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12179.    
  12180. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12181. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12182.    convert_to_double_ex(args[1]);
  12183.    arg2 = (double) Z_DVAL_PP(args[1]);
  12184.    /*@SWIG@*/;
  12185.    
  12186.    
  12187. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12188. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12189.    convert_to_double_ex(args[2]);
  12190.    arg3 = (double) Z_DVAL_PP(args[2]);
  12191.    /*@SWIG@*/;
  12192.    
  12193.    
  12194. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12195. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12196.    convert_to_double_ex(args[3]);
  12197.    arg4 = (double) Z_DVAL_PP(args[3]);
  12198.    /*@SWIG@*/;
  12199. @@ -3699,11 +3767,13 @@
  12200.    }
  12201.    {
  12202.      /* %typemap(ret) OGRErr */
  12203. -    RETVAL_LONG(0);
  12204. +    if (result != 0) {
  12205. +      RETVAL_LONG(result);
  12206. +    }
  12207.    }
  12208.    return;
  12209.  fail:
  12210. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12211. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12212.  }
  12213.  
  12214.  
  12215. @@ -3728,25 +3798,25 @@
  12216.    }
  12217.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12218.    
  12219. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12220. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12221.    convert_to_double_ex(args[1]);
  12222.    arg2 = (double) Z_DVAL_PP(args[1]);
  12223.    /*@SWIG@*/;
  12224.    
  12225.    
  12226. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12227. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12228.    convert_to_double_ex(args[2]);
  12229.    arg3 = (double) Z_DVAL_PP(args[2]);
  12230.    /*@SWIG@*/;
  12231.    
  12232.    
  12233. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12234. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12235.    convert_to_double_ex(args[3]);
  12236.    arg4 = (double) Z_DVAL_PP(args[3]);
  12237.    /*@SWIG@*/;
  12238.    
  12239.    
  12240. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12241. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12242.    convert_to_double_ex(args[4]);
  12243.    arg5 = (double) Z_DVAL_PP(args[4]);
  12244.    /*@SWIG@*/;
  12245. @@ -3760,11 +3830,13 @@
  12246.    }
  12247.    {
  12248.      /* %typemap(ret) OGRErr */
  12249. -    RETVAL_LONG(0);
  12250. +    if (result != 0) {
  12251. +      RETVAL_LONG(result);
  12252. +    }
  12253.    }
  12254.    return;
  12255.  fail:
  12256. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12257. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12258.  }
  12259.  
  12260.  
  12261. @@ -3790,31 +3862,31 @@
  12262.    }
  12263.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12264.    
  12265. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12266. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12267.    convert_to_double_ex(args[1]);
  12268.    arg2 = (double) Z_DVAL_PP(args[1]);
  12269.    /*@SWIG@*/;
  12270.    
  12271.    
  12272. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12273. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12274.    convert_to_double_ex(args[2]);
  12275.    arg3 = (double) Z_DVAL_PP(args[2]);
  12276.    /*@SWIG@*/;
  12277.    
  12278.    
  12279. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12280. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12281.    convert_to_double_ex(args[3]);
  12282.    arg4 = (double) Z_DVAL_PP(args[3]);
  12283.    /*@SWIG@*/;
  12284.    
  12285.    
  12286. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12287. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12288.    convert_to_double_ex(args[4]);
  12289.    arg5 = (double) Z_DVAL_PP(args[4]);
  12290.    /*@SWIG@*/;
  12291.    
  12292.    
  12293. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12294. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12295.    convert_to_double_ex(args[5]);
  12296.    arg6 = (double) Z_DVAL_PP(args[5]);
  12297.    /*@SWIG@*/;
  12298. @@ -3828,11 +3900,13 @@
  12299.    }
  12300.    {
  12301.      /* %typemap(ret) OGRErr */
  12302. -    RETVAL_LONG(0);
  12303. +    if (result != 0) {
  12304. +      RETVAL_LONG(result);
  12305. +    }
  12306.    }
  12307.    return;
  12308.  fail:
  12309. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12310. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12311.  }
  12312.  
  12313.  
  12314. @@ -3858,31 +3932,31 @@
  12315.    }
  12316.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12317.    
  12318. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12319. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12320.    convert_to_double_ex(args[1]);
  12321.    arg2 = (double) Z_DVAL_PP(args[1]);
  12322.    /*@SWIG@*/;
  12323.    
  12324.    
  12325. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12326. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12327.    convert_to_double_ex(args[2]);
  12328.    arg3 = (double) Z_DVAL_PP(args[2]);
  12329.    /*@SWIG@*/;
  12330.    
  12331.    
  12332. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12333. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12334.    convert_to_double_ex(args[3]);
  12335.    arg4 = (double) Z_DVAL_PP(args[3]);
  12336.    /*@SWIG@*/;
  12337.    
  12338.    
  12339. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12340. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12341.    convert_to_double_ex(args[4]);
  12342.    arg5 = (double) Z_DVAL_PP(args[4]);
  12343.    /*@SWIG@*/;
  12344.    
  12345.    
  12346. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12347. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12348.    convert_to_double_ex(args[5]);
  12349.    arg6 = (double) Z_DVAL_PP(args[5]);
  12350.    /*@SWIG@*/;
  12351. @@ -3896,11 +3970,13 @@
  12352.    }
  12353.    {
  12354.      /* %typemap(ret) OGRErr */
  12355. -    RETVAL_LONG(0);
  12356. +    if (result != 0) {
  12357. +      RETVAL_LONG(result);
  12358. +    }
  12359.    }
  12360.    return;
  12361.  fail:
  12362. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12363. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12364.  }
  12365.  
  12366.  
  12367. @@ -3924,19 +4000,19 @@
  12368.    }
  12369.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12370.    
  12371. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12372. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12373.    convert_to_double_ex(args[1]);
  12374.    arg2 = (double) Z_DVAL_PP(args[1]);
  12375.    /*@SWIG@*/;
  12376.    
  12377.    
  12378. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12379. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12380.    convert_to_double_ex(args[2]);
  12381.    arg3 = (double) Z_DVAL_PP(args[2]);
  12382.    /*@SWIG@*/;
  12383.    
  12384.    
  12385. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12386. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12387.    convert_to_double_ex(args[3]);
  12388.    arg4 = (double) Z_DVAL_PP(args[3]);
  12389.    /*@SWIG@*/;
  12390. @@ -3950,11 +4026,13 @@
  12391.    }
  12392.    {
  12393.      /* %typemap(ret) OGRErr */
  12394. -    RETVAL_LONG(0);
  12395. +    if (result != 0) {
  12396. +      RETVAL_LONG(result);
  12397. +    }
  12398.    }
  12399.    return;
  12400.  fail:
  12401. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12402. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12403.  }
  12404.  
  12405.  
  12406. @@ -3978,19 +4056,19 @@
  12407.    }
  12408.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12409.    
  12410. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12411. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12412.    convert_to_double_ex(args[1]);
  12413.    arg2 = (double) Z_DVAL_PP(args[1]);
  12414.    /*@SWIG@*/;
  12415.    
  12416.    
  12417. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12418. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12419.    convert_to_double_ex(args[2]);
  12420.    arg3 = (double) Z_DVAL_PP(args[2]);
  12421.    /*@SWIG@*/;
  12422.    
  12423.    
  12424. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12425. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12426.    convert_to_double_ex(args[3]);
  12427.    arg4 = (double) Z_DVAL_PP(args[3]);
  12428.    /*@SWIG@*/;
  12429. @@ -4004,11 +4082,13 @@
  12430.    }
  12431.    {
  12432.      /* %typemap(ret) OGRErr */
  12433. -    RETVAL_LONG(0);
  12434. +    if (result != 0) {
  12435. +      RETVAL_LONG(result);
  12436. +    }
  12437.    }
  12438.    return;
  12439.  fail:
  12440. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12441. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12442.  }
  12443.  
  12444.  
  12445. @@ -4033,25 +4113,25 @@
  12446.    }
  12447.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12448.    
  12449. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12450. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12451.    convert_to_double_ex(args[1]);
  12452.    arg2 = (double) Z_DVAL_PP(args[1]);
  12453.    /*@SWIG@*/;
  12454.    
  12455.    
  12456. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12457. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12458.    convert_to_double_ex(args[2]);
  12459.    arg3 = (double) Z_DVAL_PP(args[2]);
  12460.    /*@SWIG@*/;
  12461.    
  12462.    
  12463. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12464. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12465.    convert_to_double_ex(args[3]);
  12466.    arg4 = (double) Z_DVAL_PP(args[3]);
  12467.    /*@SWIG@*/;
  12468.    
  12469.    
  12470. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12471. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12472.    convert_to_double_ex(args[4]);
  12473.    arg5 = (double) Z_DVAL_PP(args[4]);
  12474.    /*@SWIG@*/;
  12475. @@ -4065,11 +4145,13 @@
  12476.    }
  12477.    {
  12478.      /* %typemap(ret) OGRErr */
  12479. -    RETVAL_LONG(0);
  12480. +    if (result != 0) {
  12481. +      RETVAL_LONG(result);
  12482. +    }
  12483.    }
  12484.    return;
  12485.  fail:
  12486. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12487. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12488.  }
  12489.  
  12490.  
  12491. @@ -4094,25 +4176,25 @@
  12492.    }
  12493.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12494.    
  12495. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12496. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12497.    convert_to_double_ex(args[1]);
  12498.    arg2 = (double) Z_DVAL_PP(args[1]);
  12499.    /*@SWIG@*/;
  12500.    
  12501.    
  12502. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12503. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12504.    convert_to_double_ex(args[2]);
  12505.    arg3 = (double) Z_DVAL_PP(args[2]);
  12506.    /*@SWIG@*/;
  12507.    
  12508.    
  12509. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12510. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12511.    convert_to_double_ex(args[3]);
  12512.    arg4 = (double) Z_DVAL_PP(args[3]);
  12513.    /*@SWIG@*/;
  12514.    
  12515.    
  12516. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12517. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12518.    convert_to_double_ex(args[4]);
  12519.    arg5 = (double) Z_DVAL_PP(args[4]);
  12520.    /*@SWIG@*/;
  12521. @@ -4126,11 +4208,13 @@
  12522.    }
  12523.    {
  12524.      /* %typemap(ret) OGRErr */
  12525. -    RETVAL_LONG(0);
  12526. +    if (result != 0) {
  12527. +      RETVAL_LONG(result);
  12528. +    }
  12529.    }
  12530.    return;
  12531.  fail:
  12532. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12533. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12534.  }
  12535.  
  12536.  
  12537. @@ -4158,43 +4242,43 @@
  12538.    }
  12539.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12540.    
  12541. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12542. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12543.    convert_to_double_ex(args[1]);
  12544.    arg2 = (double) Z_DVAL_PP(args[1]);
  12545.    /*@SWIG@*/;
  12546.    
  12547.    
  12548. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12549. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12550.    convert_to_double_ex(args[2]);
  12551.    arg3 = (double) Z_DVAL_PP(args[2]);
  12552.    /*@SWIG@*/;
  12553.    
  12554.    
  12555. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12556. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12557.    convert_to_double_ex(args[3]);
  12558.    arg4 = (double) Z_DVAL_PP(args[3]);
  12559.    /*@SWIG@*/;
  12560.    
  12561.    
  12562. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12563. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12564.    convert_to_double_ex(args[4]);
  12565.    arg5 = (double) Z_DVAL_PP(args[4]);
  12566.    /*@SWIG@*/;
  12567.    
  12568.    
  12569. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12570. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12571.    convert_to_double_ex(args[5]);
  12572.    arg6 = (double) Z_DVAL_PP(args[5]);
  12573.    /*@SWIG@*/;
  12574.    
  12575.    
  12576. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12577. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12578.    convert_to_double_ex(args[6]);
  12579.    arg7 = (double) Z_DVAL_PP(args[6]);
  12580.    /*@SWIG@*/;
  12581.    
  12582.    
  12583. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12584. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12585.    convert_to_double_ex(args[7]);
  12586.    arg8 = (double) Z_DVAL_PP(args[7]);
  12587.    /*@SWIG@*/;
  12588. @@ -4208,11 +4292,13 @@
  12589.    }
  12590.    {
  12591.      /* %typemap(ret) OGRErr */
  12592. -    RETVAL_LONG(0);
  12593. +    if (result != 0) {
  12594. +      RETVAL_LONG(result);
  12595. +    }
  12596.    }
  12597.    return;
  12598.  fail:
  12599. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12600. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12601.  }
  12602.  
  12603.  
  12604. @@ -4241,49 +4327,49 @@
  12605.    }
  12606.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12607.    
  12608. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12609. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12610.    convert_to_double_ex(args[1]);
  12611.    arg2 = (double) Z_DVAL_PP(args[1]);
  12612.    /*@SWIG@*/;
  12613.    
  12614.    
  12615. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12616. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12617.    convert_to_double_ex(args[2]);
  12618.    arg3 = (double) Z_DVAL_PP(args[2]);
  12619.    /*@SWIG@*/;
  12620.    
  12621.    
  12622. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12623. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12624.    convert_to_double_ex(args[3]);
  12625.    arg4 = (double) Z_DVAL_PP(args[3]);
  12626.    /*@SWIG@*/;
  12627.    
  12628.    
  12629. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12630. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12631.    convert_to_double_ex(args[4]);
  12632.    arg5 = (double) Z_DVAL_PP(args[4]);
  12633.    /*@SWIG@*/;
  12634.    
  12635.    
  12636. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12637. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12638.    convert_to_double_ex(args[5]);
  12639.    arg6 = (double) Z_DVAL_PP(args[5]);
  12640.    /*@SWIG@*/;
  12641.    
  12642.    
  12643. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12644. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12645.    convert_to_double_ex(args[6]);
  12646.    arg7 = (double) Z_DVAL_PP(args[6]);
  12647.    /*@SWIG@*/;
  12648.    
  12649.    
  12650. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12651. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12652.    convert_to_double_ex(args[7]);
  12653.    arg8 = (double) Z_DVAL_PP(args[7]);
  12654.    /*@SWIG@*/;
  12655.    
  12656.    
  12657. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12658. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12659.    convert_to_double_ex(args[8]);
  12660.    arg9 = (double) Z_DVAL_PP(args[8]);
  12661.    /*@SWIG@*/;
  12662. @@ -4297,11 +4383,13 @@
  12663.    }
  12664.    {
  12665.      /* %typemap(ret) OGRErr */
  12666. -    RETVAL_LONG(0);
  12667. +    if (result != 0) {
  12668. +      RETVAL_LONG(result);
  12669. +    }
  12670.    }
  12671.    return;
  12672.  fail:
  12673. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12674. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12675.  }
  12676.  
  12677.  
  12678. @@ -4329,43 +4417,43 @@
  12679.    }
  12680.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12681.    
  12682. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12683. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12684.    convert_to_double_ex(args[1]);
  12685.    arg2 = (double) Z_DVAL_PP(args[1]);
  12686.    /*@SWIG@*/;
  12687.    
  12688.    
  12689. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12690. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12691.    convert_to_double_ex(args[2]);
  12692.    arg3 = (double) Z_DVAL_PP(args[2]);
  12693.    /*@SWIG@*/;
  12694.    
  12695.    
  12696. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12697. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12698.    convert_to_double_ex(args[3]);
  12699.    arg4 = (double) Z_DVAL_PP(args[3]);
  12700.    /*@SWIG@*/;
  12701.    
  12702.    
  12703. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12704. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12705.    convert_to_double_ex(args[4]);
  12706.    arg5 = (double) Z_DVAL_PP(args[4]);
  12707.    /*@SWIG@*/;
  12708.    
  12709.    
  12710. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12711. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12712.    convert_to_double_ex(args[5]);
  12713.    arg6 = (double) Z_DVAL_PP(args[5]);
  12714.    /*@SWIG@*/;
  12715.    
  12716.    
  12717. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12718. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12719.    convert_to_double_ex(args[6]);
  12720.    arg7 = (double) Z_DVAL_PP(args[6]);
  12721.    /*@SWIG@*/;
  12722.    
  12723.    
  12724. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12725. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12726.    convert_to_double_ex(args[7]);
  12727.    arg8 = (double) Z_DVAL_PP(args[7]);
  12728.    /*@SWIG@*/;
  12729. @@ -4379,11 +4467,13 @@
  12730.    }
  12731.    {
  12732.      /* %typemap(ret) OGRErr */
  12733. -    RETVAL_LONG(0);
  12734. +    if (result != 0) {
  12735. +      RETVAL_LONG(result);
  12736. +    }
  12737.    }
  12738.    return;
  12739.  fail:
  12740. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12741. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12742.  }
  12743.  
  12744.  
  12745. @@ -4408,25 +4498,25 @@
  12746.    }
  12747.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12748.    
  12749. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12750. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12751.    convert_to_double_ex(args[1]);
  12752.    arg2 = (double) Z_DVAL_PP(args[1]);
  12753.    /*@SWIG@*/;
  12754.    
  12755.    
  12756. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12757. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12758.    convert_to_double_ex(args[2]);
  12759.    arg3 = (double) Z_DVAL_PP(args[2]);
  12760.    /*@SWIG@*/;
  12761.    
  12762.    
  12763. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12764. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12765.    convert_to_double_ex(args[3]);
  12766.    arg4 = (double) Z_DVAL_PP(args[3]);
  12767.    /*@SWIG@*/;
  12768.    
  12769.    
  12770. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12771. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12772.    convert_to_double_ex(args[4]);
  12773.    arg5 = (double) Z_DVAL_PP(args[4]);
  12774.    /*@SWIG@*/;
  12775. @@ -4440,11 +4530,13 @@
  12776.    }
  12777.    {
  12778.      /* %typemap(ret) OGRErr */
  12779. -    RETVAL_LONG(0);
  12780. +    if (result != 0) {
  12781. +      RETVAL_LONG(result);
  12782. +    }
  12783.    }
  12784.    return;
  12785.  fail:
  12786. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12787. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12788.  }
  12789.  
  12790.  
  12791. @@ -4471,37 +4563,37 @@
  12792.    }
  12793.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12794.    
  12795. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12796. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12797.    convert_to_double_ex(args[1]);
  12798.    arg2 = (double) Z_DVAL_PP(args[1]);
  12799.    /*@SWIG@*/;
  12800.    
  12801.    
  12802. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12803. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12804.    convert_to_double_ex(args[2]);
  12805.    arg3 = (double) Z_DVAL_PP(args[2]);
  12806.    /*@SWIG@*/;
  12807.    
  12808.    
  12809. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12810. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12811.    convert_to_double_ex(args[3]);
  12812.    arg4 = (double) Z_DVAL_PP(args[3]);
  12813.    /*@SWIG@*/;
  12814.    
  12815.    
  12816. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12817. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12818.    convert_to_double_ex(args[4]);
  12819.    arg5 = (double) Z_DVAL_PP(args[4]);
  12820.    /*@SWIG@*/;
  12821.    
  12822.    
  12823. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12824. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12825.    convert_to_double_ex(args[5]);
  12826.    arg6 = (double) Z_DVAL_PP(args[5]);
  12827.    /*@SWIG@*/;
  12828.    
  12829.    
  12830. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12831. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12832.    convert_to_double_ex(args[6]);
  12833.    arg7 = (double) Z_DVAL_PP(args[6]);
  12834.    /*@SWIG@*/;
  12835. @@ -4515,11 +4607,13 @@
  12836.    }
  12837.    {
  12838.      /* %typemap(ret) OGRErr */
  12839. -    RETVAL_LONG(0);
  12840. +    if (result != 0) {
  12841. +      RETVAL_LONG(result);
  12842. +    }
  12843.    }
  12844.    return;
  12845.  fail:
  12846. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12847. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12848.  }
  12849.  
  12850.  
  12851. @@ -4545,31 +4639,31 @@
  12852.    }
  12853.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12854.    
  12855. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12856. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12857.    convert_to_double_ex(args[1]);
  12858.    arg2 = (double) Z_DVAL_PP(args[1]);
  12859.    /*@SWIG@*/;
  12860.    
  12861.    
  12862. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12863. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12864.    convert_to_double_ex(args[2]);
  12865.    arg3 = (double) Z_DVAL_PP(args[2]);
  12866.    /*@SWIG@*/;
  12867.    
  12868.    
  12869. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12870. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12871.    convert_to_double_ex(args[3]);
  12872.    arg4 = (double) Z_DVAL_PP(args[3]);
  12873.    /*@SWIG@*/;
  12874.    
  12875.    
  12876. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12877. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12878.    convert_to_double_ex(args[4]);
  12879.    arg5 = (double) Z_DVAL_PP(args[4]);
  12880.    /*@SWIG@*/;
  12881.    
  12882.    
  12883. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12884. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12885.    convert_to_double_ex(args[5]);
  12886.    arg6 = (double) Z_DVAL_PP(args[5]);
  12887.    /*@SWIG@*/;
  12888. @@ -4583,11 +4677,13 @@
  12889.    }
  12890.    {
  12891.      /* %typemap(ret) OGRErr */
  12892. -    RETVAL_LONG(0);
  12893. +    if (result != 0) {
  12894. +      RETVAL_LONG(result);
  12895. +    }
  12896.    }
  12897.    return;
  12898.  fail:
  12899. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12900. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12901.  }
  12902.  
  12903.  
  12904. @@ -4614,37 +4710,37 @@
  12905.    }
  12906.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12907.    
  12908. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12909. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12910.    convert_to_double_ex(args[1]);
  12911.    arg2 = (double) Z_DVAL_PP(args[1]);
  12912.    /*@SWIG@*/;
  12913.    
  12914.    
  12915. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12916. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12917.    convert_to_double_ex(args[2]);
  12918.    arg3 = (double) Z_DVAL_PP(args[2]);
  12919.    /*@SWIG@*/;
  12920.    
  12921.    
  12922. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12923. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12924.    convert_to_double_ex(args[3]);
  12925.    arg4 = (double) Z_DVAL_PP(args[3]);
  12926.    /*@SWIG@*/;
  12927.    
  12928.    
  12929. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12930. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12931.    convert_to_double_ex(args[4]);
  12932.    arg5 = (double) Z_DVAL_PP(args[4]);
  12933.    /*@SWIG@*/;
  12934.    
  12935.    
  12936. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12937. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12938.    convert_to_double_ex(args[5]);
  12939.    arg6 = (double) Z_DVAL_PP(args[5]);
  12940.    /*@SWIG@*/;
  12941.    
  12942.    
  12943. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12944. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12945.    convert_to_double_ex(args[6]);
  12946.    arg7 = (double) Z_DVAL_PP(args[6]);
  12947.    /*@SWIG@*/;
  12948. @@ -4658,11 +4754,13 @@
  12949.    }
  12950.    {
  12951.      /* %typemap(ret) OGRErr */
  12952. -    RETVAL_LONG(0);
  12953. +    if (result != 0) {
  12954. +      RETVAL_LONG(result);
  12955. +    }
  12956.    }
  12957.    return;
  12958.  fail:
  12959. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12960. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  12961.  }
  12962.  
  12963.  
  12964. @@ -4687,25 +4785,25 @@
  12965.    }
  12966.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  12967.    
  12968. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12969. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12970.    convert_to_double_ex(args[1]);
  12971.    arg2 = (double) Z_DVAL_PP(args[1]);
  12972.    /*@SWIG@*/;
  12973.    
  12974.    
  12975. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12976. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12977.    convert_to_double_ex(args[2]);
  12978.    arg3 = (double) Z_DVAL_PP(args[2]);
  12979.    /*@SWIG@*/;
  12980.    
  12981.    
  12982. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12983. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12984.    convert_to_double_ex(args[3]);
  12985.    arg4 = (double) Z_DVAL_PP(args[3]);
  12986.    /*@SWIG@*/;
  12987.    
  12988.    
  12989. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  12990. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  12991.    convert_to_double_ex(args[4]);
  12992.    arg5 = (double) Z_DVAL_PP(args[4]);
  12993.    /*@SWIG@*/;
  12994. @@ -4719,11 +4817,13 @@
  12995.    }
  12996.    {
  12997.      /* %typemap(ret) OGRErr */
  12998. -    RETVAL_LONG(0);
  12999. +    if (result != 0) {
  13000. +      RETVAL_LONG(result);
  13001. +    }
  13002.    }
  13003.    return;
  13004.  fail:
  13005. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13006. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13007.  }
  13008.  
  13009.  
  13010. @@ -4749,31 +4849,31 @@
  13011.    }
  13012.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13013.    
  13014. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13015. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13016.    convert_to_double_ex(args[1]);
  13017.    arg2 = (double) Z_DVAL_PP(args[1]);
  13018.    /*@SWIG@*/;
  13019.    
  13020.    
  13021. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13022. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13023.    convert_to_double_ex(args[2]);
  13024.    arg3 = (double) Z_DVAL_PP(args[2]);
  13025.    /*@SWIG@*/;
  13026.    
  13027.    
  13028. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13029. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13030.    convert_to_double_ex(args[3]);
  13031.    arg4 = (double) Z_DVAL_PP(args[3]);
  13032.    /*@SWIG@*/;
  13033.    
  13034.    
  13035. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13036. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13037.    convert_to_double_ex(args[4]);
  13038.    arg5 = (double) Z_DVAL_PP(args[4]);
  13039.    /*@SWIG@*/;
  13040.    
  13041.    
  13042. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13043. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13044.    convert_to_double_ex(args[5]);
  13045.    arg6 = (double) Z_DVAL_PP(args[5]);
  13046.    /*@SWIG@*/;
  13047. @@ -4787,11 +4887,13 @@
  13048.    }
  13049.    {
  13050.      /* %typemap(ret) OGRErr */
  13051. -    RETVAL_LONG(0);
  13052. +    if (result != 0) {
  13053. +      RETVAL_LONG(result);
  13054. +    }
  13055.    }
  13056.    return;
  13057.  fail:
  13058. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13059. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13060.  }
  13061.  
  13062.  
  13063. @@ -4815,19 +4917,19 @@
  13064.    }
  13065.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13066.    
  13067. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13068. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13069.    convert_to_double_ex(args[1]);
  13070.    arg2 = (double) Z_DVAL_PP(args[1]);
  13071.    /*@SWIG@*/;
  13072.    
  13073.    
  13074. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13075. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13076.    convert_to_double_ex(args[2]);
  13077.    arg3 = (double) Z_DVAL_PP(args[2]);
  13078.    /*@SWIG@*/;
  13079.    
  13080.    
  13081. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13082. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13083.    convert_to_double_ex(args[3]);
  13084.    arg4 = (double) Z_DVAL_PP(args[3]);
  13085.    /*@SWIG@*/;
  13086. @@ -4841,11 +4943,13 @@
  13087.    }
  13088.    {
  13089.      /* %typemap(ret) OGRErr */
  13090. -    RETVAL_LONG(0);
  13091. +    if (result != 0) {
  13092. +      RETVAL_LONG(result);
  13093. +    }
  13094.    }
  13095.    return;
  13096.  fail:
  13097. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13098. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13099.  }
  13100.  
  13101.  
  13102. @@ -4870,25 +4974,25 @@
  13103.    }
  13104.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13105.    
  13106. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13107. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13108.    convert_to_double_ex(args[1]);
  13109.    arg2 = (double) Z_DVAL_PP(args[1]);
  13110.    /*@SWIG@*/;
  13111.    
  13112.    
  13113. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13114. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13115.    convert_to_double_ex(args[2]);
  13116.    arg3 = (double) Z_DVAL_PP(args[2]);
  13117.    /*@SWIG@*/;
  13118.    
  13119.    
  13120. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13121. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13122.    convert_to_double_ex(args[3]);
  13123.    arg4 = (double) Z_DVAL_PP(args[3]);
  13124.    /*@SWIG@*/;
  13125.    
  13126.    
  13127. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13128. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13129.    convert_to_double_ex(args[4]);
  13130.    arg5 = (double) Z_DVAL_PP(args[4]);
  13131.    /*@SWIG@*/;
  13132. @@ -4902,11 +5006,13 @@
  13133.    }
  13134.    {
  13135.      /* %typemap(ret) OGRErr */
  13136. -    RETVAL_LONG(0);
  13137. +    if (result != 0) {
  13138. +      RETVAL_LONG(result);
  13139. +    }
  13140.    }
  13141.    return;
  13142.  fail:
  13143. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13144. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13145.  }
  13146.  
  13147.  
  13148. @@ -4932,31 +5038,31 @@
  13149.    }
  13150.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13151.    
  13152. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13153. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13154.    convert_to_double_ex(args[1]);
  13155.    arg2 = (double) Z_DVAL_PP(args[1]);
  13156.    /*@SWIG@*/;
  13157.    
  13158.    
  13159. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13160. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13161.    convert_to_double_ex(args[2]);
  13162.    arg3 = (double) Z_DVAL_PP(args[2]);
  13163.    /*@SWIG@*/;
  13164.    
  13165.    
  13166. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13167. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13168.    convert_to_double_ex(args[3]);
  13169.    arg4 = (double) Z_DVAL_PP(args[3]);
  13170.    /*@SWIG@*/;
  13171.    
  13172.    
  13173. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13174. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13175.    convert_to_double_ex(args[4]);
  13176.    arg5 = (double) Z_DVAL_PP(args[4]);
  13177.    /*@SWIG@*/;
  13178.    
  13179.    
  13180. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13181. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13182.    convert_to_double_ex(args[5]);
  13183.    arg6 = (double) Z_DVAL_PP(args[5]);
  13184.    /*@SWIG@*/;
  13185. @@ -4970,11 +5076,13 @@
  13186.    }
  13187.    {
  13188.      /* %typemap(ret) OGRErr */
  13189. -    RETVAL_LONG(0);
  13190. +    if (result != 0) {
  13191. +      RETVAL_LONG(result);
  13192. +    }
  13193.    }
  13194.    return;
  13195.  fail:
  13196. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13197. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13198.  }
  13199.  
  13200.  
  13201. @@ -4999,25 +5107,25 @@
  13202.    }
  13203.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13204.    
  13205. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13206. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13207.    convert_to_double_ex(args[1]);
  13208.    arg2 = (double) Z_DVAL_PP(args[1]);
  13209.    /*@SWIG@*/;
  13210.    
  13211.    
  13212. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13213. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13214.    convert_to_double_ex(args[2]);
  13215.    arg3 = (double) Z_DVAL_PP(args[2]);
  13216.    /*@SWIG@*/;
  13217.    
  13218.    
  13219. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13220. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13221.    convert_to_double_ex(args[3]);
  13222.    arg4 = (double) Z_DVAL_PP(args[3]);
  13223.    /*@SWIG@*/;
  13224.    
  13225.    
  13226. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13227. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13228.    convert_to_double_ex(args[4]);
  13229.    arg5 = (double) Z_DVAL_PP(args[4]);
  13230.    /*@SWIG@*/;
  13231. @@ -5031,11 +5139,13 @@
  13232.    }
  13233.    {
  13234.      /* %typemap(ret) OGRErr */
  13235. -    RETVAL_LONG(0);
  13236. +    if (result != 0) {
  13237. +      RETVAL_LONG(result);
  13238. +    }
  13239.    }
  13240.    return;
  13241.  fail:
  13242. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13243. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13244.  }
  13245.  
  13246.  
  13247. @@ -5060,25 +5170,25 @@
  13248.    }
  13249.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13250.    
  13251. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13252. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13253.    convert_to_double_ex(args[1]);
  13254.    arg2 = (double) Z_DVAL_PP(args[1]);
  13255.    /*@SWIG@*/;
  13256.    
  13257.    
  13258. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13259. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13260.    convert_to_double_ex(args[2]);
  13261.    arg3 = (double) Z_DVAL_PP(args[2]);
  13262.    /*@SWIG@*/;
  13263.    
  13264.    
  13265. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13266. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13267.    convert_to_double_ex(args[3]);
  13268.    arg4 = (double) Z_DVAL_PP(args[3]);
  13269.    /*@SWIG@*/;
  13270.    
  13271.    
  13272. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13273. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13274.    convert_to_double_ex(args[4]);
  13275.    arg5 = (double) Z_DVAL_PP(args[4]);
  13276.    /*@SWIG@*/;
  13277. @@ -5092,11 +5202,13 @@
  13278.    }
  13279.    {
  13280.      /* %typemap(ret) OGRErr */
  13281. -    RETVAL_LONG(0);
  13282. +    if (result != 0) {
  13283. +      RETVAL_LONG(result);
  13284. +    }
  13285.    }
  13286.    return;
  13287.  fail:
  13288. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13289. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13290.  }
  13291.  
  13292.  
  13293. @@ -5122,31 +5234,31 @@
  13294.    }
  13295.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13296.    
  13297. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13298. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13299.    convert_to_double_ex(args[1]);
  13300.    arg2 = (double) Z_DVAL_PP(args[1]);
  13301.    /*@SWIG@*/;
  13302.    
  13303.    
  13304. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13305. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13306.    convert_to_double_ex(args[2]);
  13307.    arg3 = (double) Z_DVAL_PP(args[2]);
  13308.    /*@SWIG@*/;
  13309.    
  13310.    
  13311. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13312. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13313.    convert_to_double_ex(args[3]);
  13314.    arg4 = (double) Z_DVAL_PP(args[3]);
  13315.    /*@SWIG@*/;
  13316.    
  13317.    
  13318. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13319. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13320.    convert_to_double_ex(args[4]);
  13321.    arg5 = (double) Z_DVAL_PP(args[4]);
  13322.    /*@SWIG@*/;
  13323.    
  13324.    
  13325. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13326. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13327.    convert_to_double_ex(args[5]);
  13328.    arg6 = (double) Z_DVAL_PP(args[5]);
  13329.    /*@SWIG@*/;
  13330. @@ -5160,11 +5272,13 @@
  13331.    }
  13332.    {
  13333.      /* %typemap(ret) OGRErr */
  13334. -    RETVAL_LONG(0);
  13335. +    if (result != 0) {
  13336. +      RETVAL_LONG(result);
  13337. +    }
  13338.    }
  13339.    return;
  13340.  fail:
  13341. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13342. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13343.  }
  13344.  
  13345.  
  13346. @@ -5188,19 +5302,19 @@
  13347.    }
  13348.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13349.    
  13350. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13351. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13352.    convert_to_double_ex(args[1]);
  13353.    arg2 = (double) Z_DVAL_PP(args[1]);
  13354.    /*@SWIG@*/;
  13355.    
  13356.    
  13357. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13358. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13359.    convert_to_double_ex(args[2]);
  13360.    arg3 = (double) Z_DVAL_PP(args[2]);
  13361.    /*@SWIG@*/;
  13362.    
  13363.    
  13364. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13365. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13366.    convert_to_double_ex(args[3]);
  13367.    arg4 = (double) Z_DVAL_PP(args[3]);
  13368.    /*@SWIG@*/;
  13369. @@ -5214,11 +5328,13 @@
  13370.    }
  13371.    {
  13372.      /* %typemap(ret) OGRErr */
  13373. -    RETVAL_LONG(0);
  13374. +    if (result != 0) {
  13375. +      RETVAL_LONG(result);
  13376. +    }
  13377.    }
  13378.    return;
  13379.  fail:
  13380. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13381. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13382.  }
  13383.  
  13384.  
  13385. @@ -5242,19 +5358,19 @@
  13386.    }
  13387.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13388.    
  13389. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13390. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13391.    convert_to_double_ex(args[1]);
  13392.    arg2 = (double) Z_DVAL_PP(args[1]);
  13393.    /*@SWIG@*/;
  13394.    
  13395.    
  13396. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13397. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13398.    convert_to_double_ex(args[2]);
  13399.    arg3 = (double) Z_DVAL_PP(args[2]);
  13400.    /*@SWIG@*/;
  13401.    
  13402.    
  13403. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13404. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13405.    convert_to_double_ex(args[3]);
  13406.    arg4 = (double) Z_DVAL_PP(args[3]);
  13407.    /*@SWIG@*/;
  13408. @@ -5268,11 +5384,13 @@
  13409.    }
  13410.    {
  13411.      /* %typemap(ret) OGRErr */
  13412. -    RETVAL_LONG(0);
  13413. +    if (result != 0) {
  13414. +      RETVAL_LONG(result);
  13415. +    }
  13416.    }
  13417.    return;
  13418.  fail:
  13419. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13420. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13421.  }
  13422.  
  13423.  
  13424. @@ -5298,31 +5416,31 @@
  13425.    }
  13426.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13427.    
  13428. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13429. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13430.    convert_to_double_ex(args[1]);
  13431.    arg2 = (double) Z_DVAL_PP(args[1]);
  13432.    /*@SWIG@*/;
  13433.    
  13434.    
  13435. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13436. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13437.    convert_to_double_ex(args[2]);
  13438.    arg3 = (double) Z_DVAL_PP(args[2]);
  13439.    /*@SWIG@*/;
  13440.    
  13441.    
  13442. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13443. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13444.    convert_to_double_ex(args[3]);
  13445.    arg4 = (double) Z_DVAL_PP(args[3]);
  13446.    /*@SWIG@*/;
  13447.    
  13448.    
  13449. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13450. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13451.    convert_to_double_ex(args[4]);
  13452.    arg5 = (double) Z_DVAL_PP(args[4]);
  13453.    /*@SWIG@*/;
  13454.    
  13455.    
  13456. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13457. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13458.    convert_to_double_ex(args[5]);
  13459.    arg6 = (double) Z_DVAL_PP(args[5]);
  13460.    /*@SWIG@*/;
  13461. @@ -5336,11 +5454,13 @@
  13462.    }
  13463.    {
  13464.      /* %typemap(ret) OGRErr */
  13465. -    RETVAL_LONG(0);
  13466. +    if (result != 0) {
  13467. +      RETVAL_LONG(result);
  13468. +    }
  13469.    }
  13470.    return;
  13471.  fail:
  13472. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13473. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13474.  }
  13475.  
  13476.  
  13477. @@ -5365,25 +5485,25 @@
  13478.    }
  13479.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13480.    
  13481. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13482. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13483.    convert_to_double_ex(args[1]);
  13484.    arg2 = (double) Z_DVAL_PP(args[1]);
  13485.    /*@SWIG@*/;
  13486.    
  13487.    
  13488. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13489. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13490.    convert_to_double_ex(args[2]);
  13491.    arg3 = (double) Z_DVAL_PP(args[2]);
  13492.    /*@SWIG@*/;
  13493.    
  13494.    
  13495. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13496. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13497.    convert_to_double_ex(args[3]);
  13498.    arg4 = (double) Z_DVAL_PP(args[3]);
  13499.    /*@SWIG@*/;
  13500.    
  13501.    
  13502. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13503. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13504.    convert_to_double_ex(args[4]);
  13505.    arg5 = (double) Z_DVAL_PP(args[4]);
  13506.    /*@SWIG@*/;
  13507. @@ -5397,11 +5517,13 @@
  13508.    }
  13509.    {
  13510.      /* %typemap(ret) OGRErr */
  13511. -    RETVAL_LONG(0);
  13512. +    if (result != 0) {
  13513. +      RETVAL_LONG(result);
  13514. +    }
  13515.    }
  13516.    return;
  13517.  fail:
  13518. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13519. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13520.  }
  13521.  
  13522.  
  13523. @@ -5427,31 +5549,31 @@
  13524.    }
  13525.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13526.    
  13527. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13528. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13529.    convert_to_double_ex(args[1]);
  13530.    arg2 = (double) Z_DVAL_PP(args[1]);
  13531.    /*@SWIG@*/;
  13532.    
  13533.    
  13534. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13535. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13536.    convert_to_double_ex(args[2]);
  13537.    arg3 = (double) Z_DVAL_PP(args[2]);
  13538.    /*@SWIG@*/;
  13539.    
  13540.    
  13541. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13542. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13543.    convert_to_double_ex(args[3]);
  13544.    arg4 = (double) Z_DVAL_PP(args[3]);
  13545.    /*@SWIG@*/;
  13546.    
  13547.    
  13548. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13549. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13550.    convert_to_double_ex(args[4]);
  13551.    arg5 = (double) Z_DVAL_PP(args[4]);
  13552.    /*@SWIG@*/;
  13553.    
  13554.    
  13555. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13556. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13557.    convert_to_double_ex(args[5]);
  13558.    arg6 = (double) Z_DVAL_PP(args[5]);
  13559.    /*@SWIG@*/;
  13560. @@ -5465,11 +5587,13 @@
  13561.    }
  13562.    {
  13563.      /* %typemap(ret) OGRErr */
  13564. -    RETVAL_LONG(0);
  13565. +    if (result != 0) {
  13566. +      RETVAL_LONG(result);
  13567. +    }
  13568.    }
  13569.    return;
  13570.  fail:
  13571. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13572. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13573.  }
  13574.  
  13575.  
  13576. @@ -5496,7 +5620,7 @@
  13577.    }
  13578.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13579.    
  13580. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13581. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13582.    if ((*args[1])->type==IS_NULL) {
  13583.      arg2 = (char *) 0;
  13584.    } else {
  13585. @@ -5506,31 +5630,31 @@
  13586.    /*@SWIG@*/;
  13587.    
  13588.    
  13589. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13590. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13591.    convert_to_double_ex(args[2]);
  13592.    arg3 = (double) Z_DVAL_PP(args[2]);
  13593.    /*@SWIG@*/;
  13594.    
  13595.    
  13596. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13597. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13598.    convert_to_double_ex(args[3]);
  13599.    arg4 = (double) Z_DVAL_PP(args[3]);
  13600.    /*@SWIG@*/;
  13601.    
  13602.    
  13603. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13604. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13605.    convert_to_double_ex(args[4]);
  13606.    arg5 = (double) Z_DVAL_PP(args[4]);
  13607.    /*@SWIG@*/;
  13608.    
  13609.    
  13610. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13611. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13612.    convert_to_double_ex(args[5]);
  13613.    arg6 = (double) Z_DVAL_PP(args[5]);
  13614.    /*@SWIG@*/;
  13615.    
  13616.    
  13617. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13618. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13619.    convert_to_double_ex(args[6]);
  13620.    arg7 = (double) Z_DVAL_PP(args[6]);
  13621.    /*@SWIG@*/;
  13622. @@ -5544,11 +5668,13 @@
  13623.    }
  13624.    {
  13625.      /* %typemap(ret) OGRErr */
  13626. -    RETVAL_LONG(0);
  13627. +    if (result != 0) {
  13628. +      RETVAL_LONG(result);
  13629. +    }
  13630.    }
  13631.    return;
  13632.  fail:
  13633. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13634. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13635.  }
  13636.  
  13637.  
  13638. @@ -5573,25 +5699,25 @@
  13639.    }
  13640.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13641.    
  13642. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13643. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13644.    convert_to_double_ex(args[1]);
  13645.    arg2 = (double) Z_DVAL_PP(args[1]);
  13646.    /*@SWIG@*/;
  13647.    
  13648.    
  13649. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13650. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13651.    convert_to_double_ex(args[2]);
  13652.    arg3 = (double) Z_DVAL_PP(args[2]);
  13653.    /*@SWIG@*/;
  13654.    
  13655.    
  13656. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13657. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13658.    convert_to_double_ex(args[3]);
  13659.    arg4 = (double) Z_DVAL_PP(args[3]);
  13660.    /*@SWIG@*/;
  13661.    
  13662.    
  13663. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13664. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13665.    convert_to_double_ex(args[4]);
  13666.    arg5 = (double) Z_DVAL_PP(args[4]);
  13667.    /*@SWIG@*/;
  13668. @@ -5605,11 +5731,13 @@
  13669.    }
  13670.    {
  13671.      /* %typemap(ret) OGRErr */
  13672. -    RETVAL_LONG(0);
  13673. +    if (result != 0) {
  13674. +      RETVAL_LONG(result);
  13675. +    }
  13676.    }
  13677.    return;
  13678.  fail:
  13679. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13680. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13681.  }
  13682.  
  13683.  
  13684. @@ -5635,31 +5763,31 @@
  13685.    }
  13686.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13687.    
  13688. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13689. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13690.    convert_to_double_ex(args[1]);
  13691.    arg2 = (double) Z_DVAL_PP(args[1]);
  13692.    /*@SWIG@*/;
  13693.    
  13694.    
  13695. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13696. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13697.    convert_to_double_ex(args[2]);
  13698.    arg3 = (double) Z_DVAL_PP(args[2]);
  13699.    /*@SWIG@*/;
  13700.    
  13701.    
  13702. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13703. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13704.    convert_to_double_ex(args[3]);
  13705.    arg4 = (double) Z_DVAL_PP(args[3]);
  13706.    /*@SWIG@*/;
  13707.    
  13708.    
  13709. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13710. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13711.    convert_to_double_ex(args[4]);
  13712.    arg5 = (double) Z_DVAL_PP(args[4]);
  13713.    /*@SWIG@*/;
  13714.    
  13715.    
  13716. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13717. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13718.    convert_to_double_ex(args[5]);
  13719.    arg6 = (double) Z_DVAL_PP(args[5]);
  13720.    /*@SWIG@*/;
  13721. @@ -5673,11 +5801,13 @@
  13722.    }
  13723.    {
  13724.      /* %typemap(ret) OGRErr */
  13725. -    RETVAL_LONG(0);
  13726. +    if (result != 0) {
  13727. +      RETVAL_LONG(result);
  13728. +    }
  13729.    }
  13730.    return;
  13731.  fail:
  13732. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13733. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13734.  }
  13735.  
  13736.  
  13737. @@ -5701,19 +5831,19 @@
  13738.    }
  13739.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13740.    
  13741. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13742. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13743.    convert_to_double_ex(args[1]);
  13744.    arg2 = (double) Z_DVAL_PP(args[1]);
  13745.    /*@SWIG@*/;
  13746.    
  13747.    
  13748. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13749. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13750.    convert_to_double_ex(args[2]);
  13751.    arg3 = (double) Z_DVAL_PP(args[2]);
  13752.    /*@SWIG@*/;
  13753.    
  13754.    
  13755. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13756. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13757.    convert_to_double_ex(args[3]);
  13758.    arg4 = (double) Z_DVAL_PP(args[3]);
  13759.    /*@SWIG@*/;
  13760. @@ -5727,11 +5857,13 @@
  13761.    }
  13762.    {
  13763.      /* %typemap(ret) OGRErr */
  13764. -    RETVAL_LONG(0);
  13765. +    if (result != 0) {
  13766. +      RETVAL_LONG(result);
  13767. +    }
  13768.    }
  13769.    return;
  13770.  fail:
  13771. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13772. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13773.  }
  13774.  
  13775.  
  13776. @@ -5753,7 +5885,7 @@
  13777.    }
  13778.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13779.    
  13780. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13781. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13782.    if ((*args[1])->type==IS_NULL) {
  13783.      arg2 = (char *) 0;
  13784.    } else {
  13785. @@ -5776,11 +5908,13 @@
  13786.    }
  13787.    {
  13788.      /* %typemap(ret) OGRErr */
  13789. -    RETVAL_LONG(0);
  13790. +    if (result != 0) {
  13791. +      RETVAL_LONG(result);
  13792. +    }
  13793.    }
  13794.    return;
  13795.  fail:
  13796. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13797. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13798.  }
  13799.  
  13800.  
  13801. @@ -5802,7 +5936,7 @@
  13802.    }
  13803.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13804.    
  13805. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13806. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13807.    if ((*args[1])->type==IS_NULL) {
  13808.      arg2 = (char *) 0;
  13809.    } else {
  13810. @@ -5825,11 +5959,13 @@
  13811.    }
  13812.    {
  13813.      /* %typemap(ret) OGRErr */
  13814. -    RETVAL_LONG(0);
  13815. +    if (result != 0) {
  13816. +      RETVAL_LONG(result);
  13817. +    }
  13818.    }
  13819.    return;
  13820.  fail:
  13821. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13822. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13823.  }
  13824.  
  13825.  
  13826. @@ -5869,11 +6005,13 @@
  13827.    }
  13828.    {
  13829.      /* %typemap(ret) OGRErr */
  13830. -    RETVAL_LONG(0);
  13831. +    if (result != 0) {
  13832. +      RETVAL_LONG(result);
  13833. +    }
  13834.    }
  13835.    return;
  13836.  fail:
  13837. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13838. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13839.  }
  13840.  
  13841.  
  13842. @@ -5903,46 +6041,46 @@
  13843.    }
  13844.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13845.    
  13846. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13847. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13848.    convert_to_double_ex(args[1]);
  13849.    arg2 = (double) Z_DVAL_PP(args[1]);
  13850.    /*@SWIG@*/;
  13851.    
  13852.    
  13853. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13854. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13855.    convert_to_double_ex(args[2]);
  13856.    arg3 = (double) Z_DVAL_PP(args[2]);
  13857.    /*@SWIG@*/;
  13858.    
  13859.    
  13860. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13861. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13862.    convert_to_double_ex(args[3]);
  13863.    arg4 = (double) Z_DVAL_PP(args[3]);
  13864.    /*@SWIG@*/;
  13865.    
  13866.    if(arg_count > 4) {
  13867. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13868. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13869.      convert_to_double_ex(args[4]);
  13870.      arg5 = (double) Z_DVAL_PP(args[4]);
  13871.      /*@SWIG@*/;
  13872.      
  13873.    }
  13874.    if(arg_count > 5) {
  13875. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13876. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13877.      convert_to_double_ex(args[5]);
  13878.      arg6 = (double) Z_DVAL_PP(args[5]);
  13879.      /*@SWIG@*/;
  13880.      
  13881.    }
  13882.    if(arg_count > 6) {
  13883. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13884. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13885.      convert_to_double_ex(args[6]);
  13886.      arg7 = (double) Z_DVAL_PP(args[6]);
  13887.      /*@SWIG@*/;
  13888.      
  13889.    }
  13890.    if(arg_count > 7) {
  13891. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13892. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13893.      convert_to_double_ex(args[7]);
  13894.      arg8 = (double) Z_DVAL_PP(args[7]);
  13895.      /*@SWIG@*/;
  13896. @@ -5957,11 +6095,13 @@
  13897.    }
  13898.    {
  13899.      /* %typemap(ret) OGRErr */
  13900. -    RETVAL_LONG(0);
  13901. +    if (result != 0) {
  13902. +      RETVAL_LONG(result);
  13903. +    }
  13904.    }
  13905.    return;
  13906.  fail:
  13907. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13908. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13909.  }
  13910.  
  13911.  
  13912. @@ -6001,11 +6141,13 @@
  13913.    }
  13914.    {
  13915.      /* %typemap(ret) OGRErr */
  13916. -    RETVAL_LONG(0);
  13917. +    if (result != 0) {
  13918. +      RETVAL_LONG(result);
  13919. +    }
  13920.    }
  13921.    return;
  13922.  fail:
  13923. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13924. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13925.  }
  13926.  
  13927.  
  13928. @@ -6027,7 +6169,7 @@
  13929.    }
  13930.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13931.    
  13932. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13933. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13934.    if ((*args[1])->type==IS_NULL) {
  13935.      arg2 = (char *) 0;
  13936.    } else {
  13937. @@ -6045,11 +6187,13 @@
  13938.    }
  13939.    {
  13940.      /* %typemap(ret) OGRErr */
  13941. -    RETVAL_LONG(0);
  13942. +    if (result != 0) {
  13943. +      RETVAL_LONG(result);
  13944. +    }
  13945.    }
  13946.    return;
  13947.  fail:
  13948. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13949. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  13950.  }
  13951.  
  13952.  
  13953. @@ -6081,7 +6225,7 @@
  13954.    }
  13955.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  13956.    
  13957. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13958. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13959.    if ((*args[1])->type==IS_NULL) {
  13960.      arg2 = (char *) 0;
  13961.    } else {
  13962. @@ -6091,7 +6235,7 @@
  13963.    /*@SWIG@*/;
  13964.    
  13965.    
  13966. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13967. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13968.    if ((*args[2])->type==IS_NULL) {
  13969.      arg3 = (char *) 0;
  13970.    } else {
  13971. @@ -6101,7 +6245,7 @@
  13972.    /*@SWIG@*/;
  13973.    
  13974.    
  13975. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13976. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  13977.    if ((*args[3])->type==IS_NULL) {
  13978.      arg4 = (char *) 0;
  13979.    } else {
  13980. @@ -6111,19 +6255,19 @@
  13981.    /*@SWIG@*/;
  13982.    
  13983.    
  13984. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13985. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13986.    convert_to_double_ex(args[4]);
  13987.    arg5 = (double) Z_DVAL_PP(args[4]);
  13988.    /*@SWIG@*/;
  13989.    
  13990.    
  13991. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  13992. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  13993.    convert_to_double_ex(args[5]);
  13994.    arg6 = (double) Z_DVAL_PP(args[5]);
  13995.    /*@SWIG@*/;
  13996.    
  13997.    if(arg_count > 6) {
  13998. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  13999. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14000.      if ((*args[6])->type==IS_NULL) {
  14001.        arg7 = (char *) 0;
  14002.      } else {
  14003. @@ -6134,14 +6278,14 @@
  14004.      
  14005.    }
  14006.    if(arg_count > 7) {
  14007. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  14008. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  14009.      convert_to_double_ex(args[7]);
  14010.      arg8 = (double) Z_DVAL_PP(args[7]);
  14011.      /*@SWIG@*/;
  14012.      
  14013.    }
  14014.    if(arg_count > 8) {
  14015. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14016. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14017.      if ((*args[8])->type==IS_NULL) {
  14018.        arg9 = (char *) 0;
  14019.      } else {
  14020. @@ -6152,7 +6296,7 @@
  14021.      
  14022.    }
  14023.    if(arg_count > 9) {
  14024. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  14025. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  14026.      convert_to_double_ex(args[9]);
  14027.      arg10 = (double) Z_DVAL_PP(args[9]);
  14028.      /*@SWIG@*/;
  14029. @@ -6167,11 +6311,13 @@
  14030.    }
  14031.    {
  14032.      /* %typemap(ret) OGRErr */
  14033. -    RETVAL_LONG(0);
  14034. +    if (result != 0) {
  14035. +      RETVAL_LONG(result);
  14036. +    }
  14037.    }
  14038.    return;
  14039.  fail:
  14040. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14041. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14042.  }
  14043.  
  14044.  
  14045. @@ -6195,7 +6341,7 @@
  14046.    }
  14047.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14048.    if(arg_count > 1) {
  14049. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14050. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14051.      if ((*args[1])->type==IS_NULL) {
  14052.        arg2 = (char *) 0;
  14053.      } else {
  14054. @@ -6219,11 +6365,13 @@
  14055.    }
  14056.    {
  14057.      /* %typemap(ret) OGRErr */
  14058. -    RETVAL_LONG(0);
  14059. +    if (result != 0) {
  14060. +      RETVAL_LONG(result);
  14061. +    }
  14062.    }
  14063.    return;
  14064.  fail:
  14065. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14066. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14067.  }
  14068.  
  14069.  
  14070. @@ -6259,11 +6407,13 @@
  14071.    }
  14072.    {
  14073.      /* %typemap(ret) OGRErr */
  14074. -    RETVAL_LONG(0);
  14075. +    if (result != 0) {
  14076. +      RETVAL_LONG(result);
  14077. +    }
  14078.    }
  14079.    return;
  14080.  fail:
  14081. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14082. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14083.  }
  14084.  
  14085.  
  14086. @@ -6285,7 +6435,7 @@
  14087.    }
  14088.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14089.    
  14090. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14091. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14092.    if ((*args[1])->type==IS_NULL) {
  14093.      arg2 = (char *) 0;
  14094.    } else {
  14095. @@ -6303,11 +6453,13 @@
  14096.    }
  14097.    {
  14098.      /* %typemap(ret) OGRErr */
  14099. -    RETVAL_LONG(0);
  14100. +    if (result != 0) {
  14101. +      RETVAL_LONG(result);
  14102. +    }
  14103.    }
  14104.    return;
  14105.  fail:
  14106. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14107. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14108.  }
  14109.  
  14110.  
  14111. @@ -6329,7 +6481,7 @@
  14112.    }
  14113.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14114.    
  14115. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14116. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14117.    if ((*args[1])->type==IS_NULL) {
  14118.      arg2 = (char *) 0;
  14119.    } else {
  14120. @@ -6347,11 +6499,13 @@
  14121.    }
  14122.    {
  14123.      /* %typemap(ret) OGRErr */
  14124. -    RETVAL_LONG(0);
  14125. +    if (result != 0) {
  14126. +      RETVAL_LONG(result);
  14127. +    }
  14128.    }
  14129.    return;
  14130.  fail:
  14131. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14132. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14133.  }
  14134.  
  14135.  
  14136. @@ -6398,7 +6552,9 @@
  14137.    }
  14138.    {
  14139.      /* %typemap(ret) OGRErr */
  14140. -    RETVAL_LONG(0);
  14141. +    if (result != 0) {
  14142. +      RETVAL_LONG(result);
  14143. +    }
  14144.    }
  14145.    return;
  14146.  fail:
  14147. @@ -6406,7 +6562,7 @@
  14148.      /* %typemap(freearg) char **options */
  14149.      CSLDestroy( arg2 );
  14150.    }
  14151. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14152. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14153.  }
  14154.  
  14155.  
  14156. @@ -6428,7 +6584,7 @@
  14157.    }
  14158.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14159.    
  14160. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14161. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14162.    convert_to_long_ex(args[1]);
  14163.    arg2 = (int) Z_LVAL_PP(args[1]);
  14164.    /*@SWIG@*/;
  14165. @@ -6442,11 +6598,13 @@
  14166.    }
  14167.    {
  14168.      /* %typemap(ret) OGRErr */
  14169. -    RETVAL_LONG(0);
  14170. +    if (result != 0) {
  14171. +      RETVAL_LONG(result);
  14172. +    }
  14173.    }
  14174.    return;
  14175.  fail:
  14176. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14177. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14178.  }
  14179.  
  14180.  
  14181. @@ -6468,7 +6626,7 @@
  14182.    }
  14183.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14184.    
  14185. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14186. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14187.    convert_to_long_ex(args[1]);
  14188.    arg2 = (int) Z_LVAL_PP(args[1]);
  14189.    /*@SWIG@*/;
  14190. @@ -6482,11 +6640,13 @@
  14191.    }
  14192.    {
  14193.      /* %typemap(ret) OGRErr */
  14194. -    RETVAL_LONG(0);
  14195. +    if (result != 0) {
  14196. +      RETVAL_LONG(result);
  14197. +    }
  14198.    }
  14199.    return;
  14200.  fail:
  14201. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14202. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14203.  }
  14204.  
  14205.  
  14206. @@ -6513,7 +6673,7 @@
  14207.    }
  14208.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14209.    
  14210. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14211. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14212.    if ((*args[1])->type==IS_NULL) {
  14213.      arg2 = (char *) 0;
  14214.    } else {
  14215. @@ -6523,7 +6683,7 @@
  14216.    /*@SWIG@*/;
  14217.    
  14218.    if(arg_count > 2) {
  14219. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14220. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14221.      if ((*args[2])->type==IS_NULL) {
  14222.        arg3 = (char *) 0;
  14223.      } else {
  14224. @@ -6552,11 +6712,13 @@
  14225.    }
  14226.    {
  14227.      /* %typemap(ret) OGRErr */
  14228. -    RETVAL_LONG(0);
  14229. +    if (result != 0) {
  14230. +      RETVAL_LONG(result);
  14231. +    }
  14232.    }
  14233.    return;
  14234.  fail:
  14235. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14236. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14237.  }
  14238.  
  14239.  
  14240. @@ -6584,13 +6746,13 @@
  14241.    }
  14242.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14243.    
  14244. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14245. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14246.    convert_to_long_ex(args[1]);
  14247.    arg2 = (long) Z_LVAL_PP(args[1]);
  14248.    /*@SWIG@*/;
  14249.    
  14250.    if(arg_count > 2) {
  14251. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14252. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14253.      convert_to_long_ex(args[2]);
  14254.      arg3 = (long) Z_LVAL_PP(args[2]);
  14255.      /*@SWIG@*/;
  14256. @@ -6607,7 +6769,7 @@
  14257.      }
  14258.    }
  14259.    if(arg_count > 4) {
  14260. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14261. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14262.      convert_to_long_ex(args[4]);
  14263.      arg5 = (long) Z_LVAL_PP(args[4]);
  14264.      /*@SWIG@*/;
  14265. @@ -6622,11 +6784,13 @@
  14266.    }
  14267.    {
  14268.      /* %typemap(ret) OGRErr */
  14269. -    RETVAL_LONG(0);
  14270. +    if (result != 0) {
  14271. +      RETVAL_LONG(result);
  14272. +    }
  14273.    }
  14274.    return;
  14275.  fail:
  14276. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14277. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14278.  }
  14279.  
  14280.  
  14281. @@ -6648,7 +6812,7 @@
  14282.    }
  14283.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14284.    
  14285. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14286. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14287.    if ((*args[1])->type==IS_NULL) {
  14288.      arg2 = (char *) 0;
  14289.    } else {
  14290. @@ -6666,11 +6830,13 @@
  14291.    }
  14292.    {
  14293.      /* %typemap(ret) OGRErr */
  14294. -    RETVAL_LONG(0);
  14295. +    if (result != 0) {
  14296. +      RETVAL_LONG(result);
  14297. +    }
  14298.    }
  14299.    return;
  14300.  fail:
  14301. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14302. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14303.  }
  14304.  
  14305.  
  14306. @@ -6694,7 +6860,7 @@
  14307.    }
  14308.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14309.    
  14310. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14311. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14312.    if ((*args[1])->type==IS_NULL) {
  14313.      arg2 = (char *) 0;
  14314.    } else {
  14315. @@ -6704,7 +6870,7 @@
  14316.    /*@SWIG@*/;
  14317.    
  14318.    
  14319. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14320. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14321.    if ((*args[2])->type==IS_NULL) {
  14322.      arg3 = (char *) 0;
  14323.    } else {
  14324. @@ -6714,7 +6880,7 @@
  14325.    /*@SWIG@*/;
  14326.    
  14327.    
  14328. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14329. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14330.    if ((*args[3])->type==IS_NULL) {
  14331.      arg4 = (char *) 0;
  14332.    } else {
  14333. @@ -6732,11 +6898,13 @@
  14334.    }
  14335.    {
  14336.      /* %typemap(ret) OGRErr */
  14337. -    RETVAL_LONG(0);
  14338. +    if (result != 0) {
  14339. +      RETVAL_LONG(result);
  14340. +    }
  14341.    }
  14342.    return;
  14343.  fail:
  14344. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14345. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14346.  }
  14347.  
  14348.  
  14349. @@ -6758,7 +6926,7 @@
  14350.    }
  14351.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14352.    
  14353. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14354. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14355.    if ((*args[1])->type==IS_NULL) {
  14356.      arg2 = (char *) 0;
  14357.    } else {
  14358. @@ -6776,11 +6944,13 @@
  14359.    }
  14360.    {
  14361.      /* %typemap(ret) OGRErr */
  14362. -    RETVAL_LONG(0);
  14363. +    if (result != 0) {
  14364. +      RETVAL_LONG(result);
  14365. +    }
  14366.    }
  14367.    return;
  14368.  fail:
  14369. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14370. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14371.  }
  14372.  
  14373.  
  14374. @@ -6832,7 +7002,9 @@
  14375.    }
  14376.    {
  14377.      /* %typemap(ret) OGRErr */
  14378. -    RETVAL_LONG(0);
  14379. +    if (result != 0) {
  14380. +      RETVAL_LONG(result);
  14381. +    }
  14382.    }
  14383.    return;
  14384.  fail:
  14385. @@ -6841,7 +7013,7 @@
  14386.      if ( *arg2 )
  14387.      CPLFree( *arg2 );
  14388.    }
  14389. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14390. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14391.  }
  14392.  
  14393.  
  14394. @@ -6871,7 +7043,7 @@
  14395.    }
  14396.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14397.    if(arg_count > 1) {
  14398. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14399. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14400.      convert_to_long_ex(args[1]);
  14401.      arg3 = (int) Z_LVAL_PP(args[1]);
  14402.      /*@SWIG@*/;
  14403. @@ -6903,7 +7075,9 @@
  14404.    }
  14405.    {
  14406.      /* %typemap(ret) OGRErr */
  14407. -    RETVAL_LONG(0);
  14408. +    if (result != 0) {
  14409. +      RETVAL_LONG(result);
  14410. +    }
  14411.    }
  14412.    return;
  14413.  fail:
  14414. @@ -6912,7 +7086,7 @@
  14415.      if ( *arg2 )
  14416.      CPLFree( *arg2 );
  14417.    }
  14418. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14419. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14420.  }
  14421.  
  14422.  
  14423. @@ -6964,7 +7138,9 @@
  14424.    }
  14425.    {
  14426.      /* %typemap(ret) OGRErr */
  14427. -    RETVAL_LONG(0);
  14428. +    if (result != 0) {
  14429. +      RETVAL_LONG(result);
  14430. +    }
  14431.    }
  14432.    return;
  14433.  fail:
  14434. @@ -6973,7 +7149,7 @@
  14435.      if ( *arg2 )
  14436.      CPLFree( *arg2 );
  14437.    }
  14438. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14439. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14440.  }
  14441.  
  14442.  
  14443. @@ -7063,7 +7239,9 @@
  14444.    }
  14445.    {
  14446.      /* %typemap(ret) OGRErr */
  14447. -    RETVAL_LONG(0);
  14448. +    if (result != 0) {
  14449. +      RETVAL_LONG(result);
  14450. +    }
  14451.    }
  14452.    return;
  14453.  fail:
  14454. @@ -7081,7 +7259,7 @@
  14455.      /* %typemap(freearg) (double *argout[ANY]) */
  14456.      CPLFree(*arg4);
  14457.    }
  14458. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14459. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14460.  }
  14461.  
  14462.  
  14463. @@ -7152,7 +7330,9 @@
  14464.    }
  14465.    {
  14466.      /* %typemap(ret) OGRErr */
  14467. -    RETVAL_LONG(0);
  14468. +    if (result != 0) {
  14469. +      RETVAL_LONG(result);
  14470. +    }
  14471.    }
  14472.    return;
  14473.  fail:
  14474. @@ -7160,7 +7340,7 @@
  14475.      /* %typemap(freearg) (double *argout[ANY]) */
  14476.      CPLFree(*arg4);
  14477.    }
  14478. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14479. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14480.  }
  14481.  
  14482.  
  14483. @@ -7190,7 +7370,7 @@
  14484.    }
  14485.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14486.    if(arg_count > 1) {
  14487. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,26,CONVERT_STRING_IN@*/
  14488. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,62,CONVERT_STRING_IN@*/
  14489.      if ((*args[1])->type==IS_NULL) {
  14490.        arg3 = (char *) 0;
  14491.      } else {
  14492. @@ -7226,7 +7406,9 @@
  14493.    }
  14494.    {
  14495.      /* %typemap(ret) OGRErr */
  14496. -    RETVAL_LONG(0);
  14497. +    if (result != 0) {
  14498. +      RETVAL_LONG(result);
  14499. +    }
  14500.    }
  14501.    return;
  14502.  fail:
  14503. @@ -7235,7 +7417,7 @@
  14504.      if ( *arg2 )
  14505.      CPLFree( *arg2 );
  14506.    }
  14507. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14508. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14509.  }
  14510.  
  14511.  
  14512. @@ -7287,7 +7469,9 @@
  14513.    }
  14514.    {
  14515.      /* %typemap(ret) OGRErr */
  14516. -    RETVAL_LONG(0);
  14517. +    if (result != 0) {
  14518. +      RETVAL_LONG(result);
  14519. +    }
  14520.    }
  14521.    return;
  14522.  fail:
  14523. @@ -7296,7 +7480,7 @@
  14524.      if ( *arg2 )
  14525.      CPLFree( *arg2 );
  14526.    }
  14527. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14528. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14529.  }
  14530.  
  14531.  
  14532. @@ -7322,7 +7506,7 @@
  14533.    
  14534.    return;
  14535.  fail:
  14536. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14537. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14538.  }
  14539.  
  14540.  
  14541. @@ -7348,7 +7532,7 @@
  14542.    
  14543.    return;
  14544.  fail:
  14545. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14546. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14547.  }
  14548.  
  14549.  
  14550. @@ -7377,11 +7561,13 @@
  14551.    }
  14552.    {
  14553.      /* %typemap(ret) OGRErr */
  14554. -    RETVAL_LONG(0);
  14555. +    if (result != 0) {
  14556. +      RETVAL_LONG(result);
  14557. +    }
  14558.    }
  14559.    return;
  14560.  fail:
  14561. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14562. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14563.  }
  14564.  
  14565.  
  14566. @@ -7410,11 +7596,13 @@
  14567.    }
  14568.    {
  14569.      /* %typemap(ret) OGRErr */
  14570. -    RETVAL_LONG(0);
  14571. +    if (result != 0) {
  14572. +      RETVAL_LONG(result);
  14573. +    }
  14574.    }
  14575.    return;
  14576.  fail:
  14577. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14578. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14579.  }
  14580.  
  14581.  
  14582. @@ -7443,11 +7631,13 @@
  14583.    }
  14584.    {
  14585.      /* %typemap(ret) OGRErr */
  14586. -    RETVAL_LONG(0);
  14587. +    if (result != 0) {
  14588. +      RETVAL_LONG(result);
  14589. +    }
  14590.    }
  14591.    return;
  14592.  fail:
  14593. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14594. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14595.  }
  14596.  
  14597.  
  14598. @@ -7476,11 +7666,13 @@
  14599.    }
  14600.    {
  14601.      /* %typemap(ret) OGRErr */
  14602. -    RETVAL_LONG(0);
  14603. +    if (result != 0) {
  14604. +      RETVAL_LONG(result);
  14605. +    }
  14606.    }
  14607.    return;
  14608.  fail:
  14609. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14610. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14611.  }
  14612.  
  14613.  
  14614. @@ -7509,11 +7701,13 @@
  14615.    }
  14616.    {
  14617.      /* %typemap(ret) OGRErr */
  14618. -    RETVAL_LONG(0);
  14619. +    if (result != 0) {
  14620. +      RETVAL_LONG(result);
  14621. +    }
  14622.    }
  14623.    return;
  14624.  fail:
  14625. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14626. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14627.  }
  14628.  
  14629.  
  14630. @@ -7542,11 +7736,13 @@
  14631.    }
  14632.    {
  14633.      /* %typemap(ret) OGRErr */
  14634. -    RETVAL_LONG(0);
  14635. +    if (result != 0) {
  14636. +      RETVAL_LONG(result);
  14637. +    }
  14638.    }
  14639.    return;
  14640.  fail:
  14641. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14642. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14643.  }
  14644.  
  14645.  
  14646. @@ -7577,7 +7773,7 @@
  14647.    
  14648.    return;
  14649.  fail:
  14650. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14651. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14652.  }
  14653.  
  14654.  
  14655. @@ -7596,7 +7792,7 @@
  14656.    delete_OSRCoordinateTransformationShadow(arg1);
  14657.    return;
  14658.  fail:
  14659. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14660. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14661.  }
  14662.  
  14663.  
  14664. @@ -7634,7 +7830,7 @@
  14665.    }
  14666.    return;
  14667.  fail:
  14668. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14669. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14670.  }
  14671.  
  14672.  
  14673. @@ -7665,19 +7861,19 @@
  14674.    }
  14675.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14676.    
  14677. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  14678. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  14679.    convert_to_double_ex(args[1]);
  14680.    arg3 = (double) Z_DVAL_PP(args[1]);
  14681.    /*@SWIG@*/;
  14682.    
  14683.    
  14684. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  14685. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  14686.    convert_to_double_ex(args[2]);
  14687.    arg4 = (double) Z_DVAL_PP(args[2]);
  14688.    /*@SWIG@*/;
  14689.    
  14690.    if(arg_count > 3) {
  14691. -    /*@SWIG:/usr/share/swig1.3/php/utils.i,16,CONVERT_FLOAT_IN@*/
  14692. +    /*@SWIG:/usr/share/swig2.0/php/utils.i,52,CONVERT_FLOAT_IN@*/
  14693.      convert_to_double_ex(args[3]);
  14694.      arg5 = (double) Z_DVAL_PP(args[3]);
  14695.      /*@SWIG@*/;
  14696. @@ -7692,7 +7888,7 @@
  14697.    }
  14698.    return;
  14699.  fail:
  14700. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14701. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14702.  }
  14703.  
  14704.  
  14705. @@ -7767,7 +7963,7 @@
  14706.    }
  14707.    if(!arg1) SWIG_PHP_Error(E_ERROR, "this pointer is NULL");
  14708.    
  14709. -  /*@SWIG:/usr/share/swig1.3/php/utils.i,7,CONVERT_INT_IN@*/
  14710. +  /*@SWIG:/usr/share/swig2.0/php/utils.i,7,CONVERT_INT_IN@*/
  14711.    convert_to_long_ex(args[1]);
  14712.    arg2 = (int) Z_LVAL_PP(args[1]);
  14713.    /*@SWIG@*/;
  14714. @@ -7791,7 +7987,7 @@
  14715.    
  14716.    return;
  14717.  fail:
  14718. -  zend_error_noreturn(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14719. +  zend_error(SWIG_ErrorCode(),"%s",SWIG_ErrorMsg());
  14720.  }
  14721.  
  14722.  
  14723. @@ -8352,6 +8548,8 @@
  14724.  SWIG_STRING_CONSTANT(SRS_UL_CHAIN_CONV, "20.116684023368047");
  14725.  SWIG_STRING_CONSTANT(SRS_UL_ROD, "Rod");
  14726.  SWIG_STRING_CONSTANT(SRS_UL_ROD_CONV, "5.02921005842012");
  14727. +SWIG_STRING_CONSTANT(SRS_UL_LINK_Clarke, "Link_Clarke");
  14728. +SWIG_STRING_CONSTANT(SRS_UL_LINK_Clarke_CONV, "0.2011661949");
  14729.  SWIG_STRING_CONSTANT(SRS_UA_DEGREE, "degree");
  14730.  SWIG_STRING_CONSTANT(SRS_UA_DEGREE_CONV, "0.0174532925199433");
  14731.  SWIG_STRING_CONSTANT(SRS_UA_RADIAN, "radian");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement