cvs: pecl /perl/tests perl059.phpt perl060.phpt perl061.phpt perl062.phpt

From: Date: Tue, 09 Dec 2003 10:45:22 +0000
Subject: cvs: pecl /perl/tests perl059.phpt perl060.phpt perl061.phpt perl062.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-567@lists.php.net to get a copy of this message
dmitry Tue Dec 9 05:45:22 2003 EDT Added files: /pecl/perl/tests perl061.phpt perl062.phpt Modified files: /pecl/perl/tests perl059.phpt perl060.phpt Log: Index: pecl/perl/tests/perl059.phpt diff -u pecl/perl/tests/perl059.phpt:1.1 pecl/perl/tests/perl059.phpt:1.2 --- pecl/perl/tests/perl059.phpt:1.1 Tue Dec 9 01:43:54 2003 +++ pecl/perl/tests/perl059.phpt Tue Dec 9 05:45:22 2003 @@ -3,7 +3,7 @@ --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- -<? +<?php perl_eval(<<<END sub f { return ("Hello", "World"); Index: pecl/perl/tests/perl060.phpt diff -u pecl/perl/tests/perl060.phpt:1.1 pecl/perl/tests/perl060.phpt:1.2 --- pecl/perl/tests/perl060.phpt:1.1 Tue Dec 9 01:43:54 2003 +++ pecl/perl/tests/perl060.phpt Tue Dec 9 05:45:22 2003 @@ -3,7 +3,7 @@ --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- -<? +<?php perl_eval(<<<END package Foo; sub new { Index: pecl/perl/tests/perl061.phpt +++ pecl/perl/tests/perl061.phpt --TEST-- Test 61: Modifying object property with += operator --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php perl_eval(<<<PERL_END package Foo; sub new { my \$this = shift; my \$type = ref(\$this) || \$this; my \$self = {}; \$self->{'x'} = 0; bless \$self, \$type; return \$self; } package main; PERL_END ); $x = new Perl('Foo'); $x->x += 2; $x->x += 2; var_dump($x->x); echo "ok\n"; ?> --EXPECT-- int(4) ok Index: pecl/perl/tests/perl062.phpt +++ pecl/perl/tests/perl062.phpt --TEST-- Test 62: Modifying object element with += operator --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php perl_eval(<<<PERL_END package Foo; sub new { my \$this = shift; my \$type = ref(\$this) || \$this; my \$self = []; \$self->[0] = 0; bless \$self, \$type; return \$self; } package main; PERL_END ); $x = new Perl('Foo'); $x[0] += 2; $x[0] += 2; var_dump($x[0]); echo "ok\n"; ?> --EXPECT-- int(4) ok

« previous php.pecl.cvs (#567) next »