Andi Gutmans
|
f4b832d277
|
- Fix crash bug in startup code.
- Start work on being able to reference global and local scope
|
2001-12-13 16:55:04 +00:00 |
|
Andi Gutmans
|
74efc41fc3
|
- Make classes have scope and function/constant lookups default to the class
|
2001-12-12 17:38:37 +00:00 |
|
Andi Gutmans
|
4cb97fa3b9
|
- Rename zend_class_entry.constants -> zend_class_entry.constants_table
|
2001-12-11 18:46:43 +00:00 |
|
Sebastian Bergmann
|
d863d52a5d
|
Update headers.
|
2001-12-11 15:16:21 +00:00 |
|
Andi Gutmans
|
3bfee898db
|
- More namespaces work.
- Nuke memory leak.
|
2001-12-10 18:57:17 +00:00 |
|
Andi Gutmans
|
42486196ad
|
- Initial work on changing namespace scope. Only methods & variables
- right now.
<?
$hey = "Global hey\n";
class foo {
static $hey = "Namespace hey\n";
function bar()
{
print "in foo::bar()\n";
}
}
function bar()
{
print "in bar()\n";
}
bar();
namespace foo;
bar();
namespace;
bar();
namespace foo;
$bar_indirect = "bar";
$bar_indirect();
namespace;
print $hey;
namespace foo;
print $hey;
$hey = "Namespace hey #2\n";
namespace;
print $hey;
$hey = "Global hey #2\n";
namespace foo;
print $hey;
?>
|
2001-12-06 17:47:04 +00:00 |
|
Andi Gutmans
|
fe94f59427
|
- Nuke the namespace work I did. It'll be redone differently.
|
2001-12-06 17:23:08 +00:00 |
|
Andi Gutmans
|
e858d27888
|
- Initial support for class constants. There are still a few semantic
- issues which need to be looked into but basically it seems to work.
- Example:
<?php
class foo
{
const hey = "hello";
}
print foo::hey;
?>
|
2001-11-30 16:29:47 +00:00 |
|
Andi Gutmans
|
7cd6ccc0ec
|
- Support static $var = 0; style initialization of static class
- members. For example:
- class foo {
- static $my_static = 5;
-
- }
-
- print foo::$my_static;
|
2001-11-26 18:05:01 +00:00 |
|
Andi Gutmans
|
0d559f17cd
|
- Fix crash and leak
|
2001-11-25 12:29:08 +00:00 |
|
Andi Gutmans
|
4f3eaaa854
|
- Whitespace
|
2001-11-25 08:58:59 +00:00 |
|
Andi Gutmans
|
d2da63f629
|
- Support static members. The following script works:
<?
class foo
{
class bar
{
function init_values()
{
for ($i=1; $i<10; $i++) {
foo::bar::$hello[$i] = $i*$i;
}
}
function print_values()
{
for ($i=1; $i<10; $i++) {
print foo::bar::$hello[$i] . "\n";
}
}
}
}
foo::bar::init_values();
foo::bar::print_values();
for ($i=1; $i<10; $i++) {
print $hello[$i]?"Shouldn't be printed\n":"";
}
?>
|
2001-11-25 08:49:09 +00:00 |
|
Andi Gutmans
|
559d611a86
|
- MFZE1
|
2001-11-24 18:27:20 +00:00 |
|
Zeev Suraski
|
08615c6f68
|
MFZE1
|
2001-11-15 23:26:52 +00:00 |
|
Andi Gutmans
|
a332f826a7
|
- Support instantiation of nested class. The following script now should
- work:
-<?php
- class foo
- {
- function bar()
- {
- print "bar() in class bar\n";
- }
-
- class barbara
- {
- function bar()
- {
- print "bar() in class foo::barbara\n";
- }
- }
- }
-
- $obj = new foo();
- $obj->bar();
-
- $obj = new foo::barbara();
- $obj->bar();
-
|
2001-11-04 19:30:49 +00:00 |
|
Andi Gutmans
|
2eccd95ca4
|
- Add some initializations
|
2001-11-03 12:19:52 +00:00 |
|
Andi Gutmans
|
b87194e0c6
|
- Add constructor to the zend_class_entry instead of looking it up each
- time by name.
- This will allow the next patch of being able to instantiate nested
- classes such as new foo::bar::barbara();
|
2001-11-03 11:59:14 +00:00 |
|
Andi Gutmans
|
26578c386d
|
- Initial support for nested class definitions
|
2001-10-29 17:19:02 +00:00 |
|
Andi Gutmans
|
2eabb14dc7
|
- Merge the NAMESPACES_BRANCH. It wasn't a good idea to have a branch when
- the whole CVS tree is work in progress
|
2001-09-30 17:29:55 +00:00 |
|
Zeev Suraski
|
f88c25b60e
|
MFZE1
|
2001-09-16 16:48:38 +00:00 |
|
Andi Gutmans
|
d7536a8a5f
|
- Shift around the variable parsing code to make it simpler.
|
2001-09-07 14:46:12 +00:00 |
|
Andi Gutmans
|
619702157b
|
- Make it compile in thread-safe mode.
|
2001-08-30 17:27:43 +00:00 |
|
Andi Gutmans
|
560606d210
|
- Get rid of warning and C++ comments
|
2001-08-30 15:31:35 +00:00 |
|
Andi Gutmans
|
29f5dbe10b
|
- Initial support for exceptions.
|
2001-08-30 15:26:30 +00:00 |
|
Zeev Suraski
|
4340c57ece
|
MFZE1
|
2001-08-19 13:39:06 +00:00 |
|
Zeev Suraski
|
4f6c95d17a
|
Whitespace
|
2001-08-11 15:56:40 +00:00 |
|
Andi Gutmans
|
73d4931dac
|
- Need to do some rewriting in the parser instead of this.
|
2001-08-11 10:47:41 +00:00 |
|
Andi Gutmans
|
8ff094046d
|
- A couple of fixes
|
2001-08-10 14:18:38 +00:00 |
|
Andi Gutmans
|
9d11db1200
|
- Merge new $_GET, $_POST etc. patch from Engine 1 tree
|
2001-08-08 17:18:16 +00:00 |
|
Andi Gutmans
|
cb1a40f399
|
- Preliminary patch for method() dereferencing
|
2001-08-08 15:07:11 +00:00 |
|
Andi Gutmans
|
5af7770a81
|
- Sync Engine2 CVS with latest Engine CVS
|
2001-08-07 03:17:33 +00:00 |
|
Zeev Suraski
|
7ade3b30cb
|
Fix an off by one lineno issue, in case of an implicit ;
|
2001-08-06 14:36:46 +00:00 |
|
Zeev Suraski
|
d76cf1da18
|
More TSRMLS_FETCH work
|
2001-07-31 04:53:54 +00:00 |
|
Zeev Suraski
|
4187439cff
|
More TSRMLS_FETCH work
|
2001-07-30 07:43:02 +00:00 |
|
Zeev Suraski
|
b4f3b9d3ce
|
Redesigned thread safety mechanism - nua nua
|
2001-07-28 10:51:54 +00:00 |
|
Zeev Suraski
|
2c254ba762
|
Get rid of ELS_*(), and use TSRMLS_*() instead.
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
|
2001-07-27 10:10:39 +00:00 |
|
Andrei Zmievski
|
fc260e6c98
|
Fix certain cases where inheritance of base class's overloaded handlers wasn't
being done.
|
2001-07-21 02:35:13 +00:00 |
|
Zeev Suraski
|
d68f53e94e
|
Unfix, it has too strong effects
|
2001-07-19 18:33:22 +00:00 |
|
Zeev Suraski
|
ce29cb297e
|
Catch all cases
|
2001-07-19 15:53:38 +00:00 |
|
Zeev Suraski
|
01814bb2b8
|
Fix bug #11970, strike 2
|
2001-07-19 14:15:50 +00:00 |
|
Zeev Suraski
|
43ebb86806
|
Fix bug #10287 - avoid crashing under a bogus usage of list()
|
2001-07-16 15:48:31 +00:00 |
|
Zeev Suraski
|
fb532ba52b
|
Fix bug #10467
|
2001-07-16 11:41:06 +00:00 |
|
Zeev Suraski
|
0c49166197
|
Fix bug #9884
|
2001-07-15 16:22:41 +00:00 |
|
Zeev Suraski
|
85b4df53c0
|
Improved interactive mode - it is now available in all builds, without any significant slowdown
|
2001-07-15 14:08:58 +00:00 |
|
Andi Gutmans
|
6297cd26e2
|
- Commit Thies' patch. str.len was too long.
|
2001-07-10 05:02:50 +00:00 |
|
Zeev Suraski
|
cb0d2775fb
|
parent::methodname() now works better with runtime classes (fix bug #11589)
|
2001-06-21 14:53:05 +00:00 |
|
Andi Gutmans
|
e264a407eb
|
- Change if() to while() to make sure we skip enough opcodes
|
2001-05-25 09:46:48 +00:00 |
|
Andi Gutmans
|
90c36273b4
|
- Fix memory leak
|
2001-05-25 07:26:48 +00:00 |
|
Zeev Suraski
|
bda9c83a82
|
Recover from a parse error in include files (before, it could result in a crash under certain circumstances). Fix bug #8663
|
2001-05-06 19:30:31 +00:00 |
|
Zeev Suraski
|
686eab894c
|
Hear hear, interactive mode is finally showing some progress:
- Support function calls
- Fix crash bug
|
2001-05-06 15:00:58 +00:00 |
|