summaryrefslogtreecommitdiff
path: root/testobj
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-28 11:09:39 +0000
committerZeev Suraski <zeev@php.net>1999-05-28 11:09:39 +0000
commit7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c (patch)
tree93bd58936ab1c7d70e8641f5c02667e37477e775 /testobj
parentf1f4e6f478450a3398817fd55c647c9277944609 (diff)
downloadphp-git-7a167cd0c1f6ee7c0dce0196b5ca9209a54f534c.tar.gz
* Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order. * Use the new object/class support of Zend to make the dir functions work again.
Diffstat (limited to 'testobj')
-rw-r--r--testobj17
1 files changed, 11 insertions, 6 deletions
diff --git a/testobj b/testobj
index 93ea5e0f99..26ca69bf00 100644
--- a/testobj
+++ b/testobj
@@ -1,9 +1,14 @@
<?
-//$a = new TestClass;
-$a->foo = 5;
-$foo = 456;
+class foobar {
+ function foobar() {
+ print "foobar!\n";
+ $this->initialized = 1;
+ }
+};
-print $a->foobar[2]["testing 123".$foo]->barbara."\n";
-print "---\n";
-$a->foobar[2]["testing 123".$foo]->barbara=5; \ No newline at end of file
+//$foo = new foobar or die("Unable to construct foobar\n");
+$word = new COm("word.application");
+$word->visible = true;
+sleep(5);
+$word->quit();