Edit report at http://bugs.php.net/bug.php?id=53251&edit=1
ID: 53251 Comment by: greno at verizon dot net Reported by: jeanseb at au-fil-du dot net Summary: bindtextdomain with null directory doesn't return the previously set Status: Feedback Type: Bug Package: Gettext related Operating System: Debian 5.0.6 PHP Version: 5.3.3 Block user comment: N Private report: N New Comment: One important thing to note about the tests: It is not necessary for the domain directory string set in bindtextdomain to actually exist in the file system at the time of binding. A script could be dynamically creating this directory later on. The binding is to nothing more than a string that represents a potential directory path. It is up to the user to make sure that the string bound by bindtextdomain actually represents a valid path at time of execution of gettext commands. I've tested this behavior in other languages and that is how they work. . Previous Comments: ------------------------------------------------------------------------ [2010-11-25 02:41:25] greno at verizon dot net Found that Expect does not need quotes around strings. Ignore previous tests. Reposted updated tests: http://greno-misc.googlecode.com/files/bindtextdomaintests-2.zip . ------------------------------------------------------------------------ [2010-11-25 02:27:08] greno at verizon dot net I think these phpt tests will work. I ran them from the command line and they ran fine. Had no idea what to name them so you may have to adjust. http://greno-misc.googlecode.com/files/bindtextdomaintests.zip . ------------------------------------------------------------------------ [2010-11-25 01:34:39] paj...@php.net make test TESTS=/path/to/php/ext/gettext/tests from your build directory. or you can run run-test.php manually, see the howto links for the details or php run-tests.php --help ------------------------------------------------------------------------ [2010-11-25 01:31:51] greno at verizon dot net How do you run a phpt test from the command line? . ------------------------------------------------------------------------ [2010-11-25 01:19:33] paj...@php.net It would be very helpful if you can write it as phpt :) See http://qa.php.net/write-test.php ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=53251 -- Edit this bug report at http://bugs.php.net/bug.php?id=53251&edit=1