Subject: | // in strings regarded as comment |
PHP::Include does not allow // in strings anymore, since it thinks that those are
comments and removes the rest of the line. Can be tested using the following PHP file
and Perl test file:
intern:~ # cat url.php
<?php
define ("URL", "http://metacpan.org");
?>
intern:~ # cat 015urls.t
use strict;
use warnings;
use Test::More;
use PHP::Include (DEBUG => 1);
include_php_vars('url.php');
is(URL, 'http://metacpan.org');
done_testing;