[Cartoweb-dev] [Bug 1289] php server2pot.php [nom du projet] sans effet

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Thu Aug 10 23:01:59 EDT 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1289

rdsmath09 at yahoo.fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From rdsmath09 at yahoo.fr  2006-08-10 23:01 -------
Dans server2pot.php, à la ligne 64, voici ce que l’on peut voir :

if (!extension_loaded('mapscript')) {
        $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? '' : 'php_';
        if (!dl($prefix . 'mapscript.' . PHP_SHLIB_SUFFIX))
	print 'Error: Cannot load Mapscript library.';
            return false;
    }

Voici les modifications à apporter au script pour qu’il fonctionne 
correctement :

if (!extension_loaded('mapscript')) {
        $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? '' : 'php_';
        if (!dl($prefix . 'mapscript.' . PHP_SHLIB_SUFFIX))
	{ print 'Error: Cannot load Mapscript library.';
                    return false;
	 }
    }

Sans l’ajout des accolades, le script server2pot.php ne génère que le fichier 
server.po, et non pas les fichiers server.po ET server.[nom_projet].po.

Université de Polynésie Française
Laboratoire Terre-Océan



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Cartoweb-dev mailing list