Commit Graph

2000 Commits

Author SHA1 Message Date
e5fd005fa9 ChangeLog update 2002-09-05 00:34:49 +00:00
Sebastian Bergmann
af4243b908 Whitespace fixes. 2002-09-04 16:50:01 +00:00
Stanislav Malyshev
e8f6654663 remove dead code 2002-09-04 15:04:39 +00:00
Stanislav Malyshev
36c60cea38 Fix __call and add some docs 2002-09-04 15:03:41 +00:00
Sebastian Bergmann
2711976f56 Fix ZTS build. 2002-09-04 12:49:30 +00:00
Sebastian Bergmann
42eebfc81a TBD: __call(), __get(), __set(). 2002-09-04 12:49:15 +00:00
Stanislav Malyshev
d8651c82cd Support for __get, __set and __call in classes.
This should work as follows: if class hasn't member with given name,
__get/__set is called. If class has no method with given name, __call is called.
__get/__set are not recursive, __call can be.
2002-09-04 09:07:58 +00:00
Sebastian Bergmann
84c1bee585 Workaround for superfluous comma in var_export() result. 2002-09-04 05:46:16 +00:00
Sebastian Bergmann
7d85d01834 Let debug_backtrace() example print out the class name, if applicable, and the function/method arguments. 2002-09-04 05:35:20 +00:00
05d52abd27 ChangeLog update 2002-09-04 00:34:17 +00:00
Thies C. Arntzen
ca0a7c4323 nuke warning 2002-09-03 14:14:44 +00:00
Thies C. Arntzen
db92641e32 nuke unneeded stuff 2002-09-03 13:53:05 +00:00
Zeev Suraski
e801a99a50 MFZE1 2002-09-03 10:25:06 +00:00
Zeev Suraski
5f3e75a725 MFZE1 2002-09-03 10:06:13 +00:00
Derick Rethans
45a203b411 - Revert
#- Sorry... was too busy with it to notice discussion on php.dev
2002-09-03 09:57:27 +00:00
Derick Rethans
74049eb191 - MFH for: Apply rest of html errors fix (Patch by Jan Lehnardt <jan@php.net>) 2002-09-03 09:56:20 +00:00
Sebastian Bergmann
cfad3c664f Add html_errors to zend_utility_values. Patch by Jan Lehnardt <jan@php.net>. 2002-09-03 09:41:41 +00:00
Andi Gutmans
1c5841d376 - Fix typo 2002-09-03 04:19:04 +00:00
3df0df50f4 ChangeLog update 2002-09-03 00:32:58 +00:00
Thies C. Arntzen
96ab23981c refine last patch. if the argument-stack is not consistent don't try to show
arguments. no call to zend_error is made as we might end up in an infinite
recursion if called from an error_handler.
so: if the arguments to functions aren't shown in debug_backtrace this is 'cause
the arument stack was not consistent when debug_backtrace was called.
2002-09-02 12:26:09 +00:00
Thies C. Arntzen
9afea7175c debug_backtrace() now checks the complete argument-stack for consistency. 2002-09-02 12:20:09 +00:00
Stanislav Malyshev
c8a659f8f6 MFZE1 2002-09-02 09:13:53 +00:00
bf220ce104 ChangeLog update 2002-09-02 00:31:53 +00:00
Andi Gutmans
f4e8b2c4e9 - Fix leak reported by "l0t3k" <cshmoove@hotmail.com> 2002-09-01 19:19:50 +00:00
Stanislav Malyshev
73cf316a53 MFZE1 2002-09-01 08:30:39 +00:00
3324e38e8a ChangeLog update 2002-08-29 00:17:29 +00:00
Thies C. Arntzen
eef3e66f1f debug_backtrace()
- make args passed to functions called vy call_user_function available again.
2002-08-28 15:05:15 +00:00
Thies C. Arntzen
b72069e859 debug_backtrace():
- make args work if called from the error_handler
- fix refcount for args
2002-08-28 14:49:15 +00:00
Thies C. Arntzen
bdc35c9f2e clear current_execute_data on bailout as it would point into some freed area
on the stack.
2002-08-28 14:43:32 +00:00
Derick Rethans
a9d819818b - MFZE1 2002-08-28 09:49:40 +00:00
9cf662e1a2 ChangeLog update 2002-08-27 00:20:32 +00:00
Thies C. Arntzen
4d931b9888 debug_backtrace(): show name of included file for include and require calls
plus some small fixes suggested by andi.
# now it's perfect;-)
2002-08-26 16:40:34 +00:00
6218e98046 ChangeLog update 2002-08-25 00:18:44 +00:00
Andi Gutmans
c651dd962f - Whitespace 2002-08-24 20:57:54 +00:00
Andi Gutmans
8a02b43073 - Whitespace and better variable name 2002-08-24 20:52:52 +00:00
Thies C. Arntzen
800c67a166 fix warning 2002-08-24 09:05:44 +00:00
89f8b5ad79 ChangeLog update 2002-08-24 00:20:37 +00:00
Andi Gutmans
f976590420 - Add \n to configure fprintf 2002-08-23 22:11:10 +00:00
Andi Gutmans
3844b6af97 - dlerror -> DL_ERROR 2002-08-23 22:07:59 +00:00
Thies C. Arntzen
eea1a0b296 debug_backtrace: show include/require/eval as normal functions on the stack
# the hard bit is to find out the args for those
2002-08-23 14:44:58 +00:00
Derick Rethans
8feda5cb6a - No spaces :) 2002-08-23 14:28:56 +00:00
Thies C. Arntzen
280809189b - debug_backtrace now also returns an array containing the arguments of the
called function.

zeev, andi - is knowing the structure of the stack considered a bad thing in
zend_builtin_function? if yes i would have to create a new function in
zend_ptr_stack.c (but i think we are save this way)
2002-08-23 14:22:25 +00:00
Thies C. Arntzen
7ed2d363c8 - debug_backtrace:
added "type" ('->' or '::') for object calls.
	made calls done thru call_user_func show-up correct in backtraces.

andi,
does this look correct to you?
2002-08-23 13:50:42 +00:00
Thies C. Arntzen
10b58f2110 those are set by RETURN_FROM_EXECUTE 2002-08-23 12:18:54 +00:00
f35c4b5138 ChangeLog update 2002-08-22 00:17:15 +00:00
Thies C. Arntzen
d88ca858aa zend_execute: make sure that current_execute_data points to the right thing
after coming back from recursion.
2002-08-21 13:58:20 +00:00
e321742383 ChangeLog update 2002-08-20 00:19:08 +00:00
Zeev Suraski
91f585744f MFZE1 2002-08-19 20:58:22 +00:00
2d2250c520 ChangeLog update 2002-08-18 00:18:19 +00:00
Andi Gutmans
2372caf57e MFZE1 2002-08-17 20:20:36 +00:00
Zeev Suraski
b66561c44a MFZE1 2002-08-17 16:22:40 +00:00
Zeev Suraski
88fd5f3f5d MFZE1 2002-08-17 16:07:26 +00:00
f32baf54b6 ChangeLog update 2002-08-17 00:19:19 +00:00
Stig Bakken
5a41ced0d7 * append emacs footer 2002-08-16 10:12:17 +00:00
Stig Bakken
bd7105f731 * remove builtin exception class 2002-08-16 10:11:32 +00:00
Andi Gutmans
38eea2e817 - Fix whitespace 2002-08-16 07:11:37 +00:00
Stig Bakken
04788f9503 @- Added set_exception_handler() function for registering a global,
@  catch-all exception handling function (Stig)
- Added set_exception_handler() function for registering a global,
  catch-all exception handling function (Stig)
2002-08-16 00:41:37 +00:00
87d86ad21d ChangeLog update 2002-08-16 00:18:07 +00:00
Zeev Suraski
0bb780b384 MFZE1 2002-08-15 00:25:27 +00:00
d823e3fe41 ChangeLog update 2002-08-15 00:18:40 +00:00
Jason Greene
b806a8e247 MFZE1 (use token instead of global for opcode counting) 2002-08-14 01:40:59 +00:00
fa626babf2 ChangeLog update 2002-08-14 00:18:10 +00:00
Andi Gutmans
17d1c75b8b - Fix crash when exception is raised in __autoload function 2002-08-13 16:46:40 +00:00
Zeev Suraski
88d3154b68 MFZE1 2002-08-13 15:14:45 +00:00
4097df12c6 ChangeLog update 2002-08-09 00:18:23 +00:00
Sebastian Bergmann
646292e08b Fix warning. 2002-08-08 18:50:46 +00:00
Stanislav Malyshev
11fb07a360 Add ZEND_API to functions 2002-08-08 17:53:32 +00:00
Andi Gutmans
52406cb37c - Make new 'is' operator work with classes only and return false when
- the object isn't of the said class or the value isn't an object.
2002-08-08 16:32:34 +00:00
Andi Gutmans
7904787f95 - Bad Harald! :) 2002-08-08 16:07:09 +00:00
Zeev Suraski
0e50ac4b2c MFZE1 2002-08-08 08:42:22 +00:00
c4b11d2447 ChangeLog update 2002-08-08 00:18:02 +00:00
Harald Radi
99c90db11a make win32 debug output more verbose 2002-08-07 14:47:42 +00:00
c5067529ee ChangeLog update 2002-08-04 00:18:09 +00:00
Andi Gutmans
61a73183cc - Small fix 2002-08-03 09:50:07 +00:00
Zeev Suraski
6025b804c2 MFZE1 2002-08-03 09:44:27 +00:00
82b5dc103f ChangeLog update 2002-08-02 00:23:21 +00:00
Stanislav Malyshev
0e7c1f4609 MFZE1 2002-08-01 16:07:19 +00:00
e219b8e70c ChangeLog update 2002-07-31 00:18:46 +00:00
Jason Greene
b0cf6c3112 MFZE1 global declare 2002-07-30 22:19:50 +00:00
Jason Greene
838b8ba49f Fix segfault 2002-07-30 22:14:39 +00:00
Andrei Zmievski
82c72f2799 @- Adding 'is' operator that can be used to check the type of a variable,
@  or its class. (Andrei)
2002-07-30 04:07:15 +00:00
110027f64a ChangeLog update 2002-07-29 00:18:58 +00:00
Harald Radi
476bae4035 update the handlers struct 2002-07-28 13:06:54 +00:00
aa338d7b21 ChangeLog update 2002-07-28 00:19:08 +00:00
Andi Gutmans
b476ddf183 - Make sure classes are first looked for in the current scope.
- Make sure that during inheritance the global scope is searched if the
- current one doesn't work.
2002-07-27 15:53:14 +00:00
6a1b927482 ChangeLog update 2002-07-27 00:18:39 +00:00
Andi Gutmans
41e3f4f0c3 - Fix problem with debug_backtrace() reported by Stig. We weren't reporting
- global function information because it wasn't available. We have to do
- an additional assignment per-function call so that it'll be available.
- Also don't define the global scope as function name _main_ but leave it
- empty so that frameworks like Pear can decide what they want to do.
2002-07-26 10:38:25 +00:00
e7bd50a5e6 ChangeLog update 2002-07-26 00:18:24 +00:00
foobar
c4789feffa Fixed 3 major failures in this test:
1. Tests work better when they are actually run..
  2. When file is opened, it should be closed sometime too.
  3. AC_TRY_RUN cleans after itself (rm -f conftest.*), so it's
     good idea to read the values while the file still exists.

#
# James, TEST BEFORE YOU COMMIT!!!!!!!
#
# Andi, I get these results (in Linux/i386):
#
#  ZEND_MM_ALIGNMENT      4
#  ZEND_MM_ALIGNMENT_LOG2 2
#
# Weren't these supposed to be 8 and 3 ?
#
2002-07-25 23:55:06 +00:00
e09f789c14 ChangeLog update 2002-07-25 00:18:55 +00:00
Andi Gutmans
a38038a4a0 - Fix some compile problems with the new configure checks. 2002-07-24 18:53:19 +00:00
James Cox
5626fc5a39 move testing for the alignment values into configure. 2002-07-24 17:04:11 +00:00
James Cox
79ef1c1661 ws fixes. 2002-07-24 00:50:04 +00:00
6b08ac665b ChangeLog update 2002-07-24 00:18:45 +00:00
Andi Gutmans
b291dfad3d - Fix WS. 2002-07-23 19:29:02 +00:00
435c2611fd ChangeLog update 2002-07-22 00:19:47 +00:00
Andi Gutmans
8dd639ce22 - Fix bug reported by Sebastian where old constructors didn't work in
- nested classes.
2002-07-21 18:50:10 +00:00
eb14d0f8e7 ChangeLog update 2002-07-19 00:18:47 +00:00
Derick Rethans
0650a59aea - MFZE1 - MacOSX fixes by Marko Karppinen 2002-07-18 11:16:34 +00:00
fb3f1709e8 ChangeLog update 2002-07-18 00:19:37 +00:00
Andi Gutmans
0355dc5504 - Remove code which wasn't supposed to go into the patch. 2002-07-17 18:39:26 +00:00
Andi Gutmans
9c52e883f0 - Rejuggle some code. 2002-07-17 18:36:29 +00:00
foobar
ff012991f8 This was mentioned already above (with an example too :) 2002-07-17 03:46:55 +00:00
8505e6ec1e ChangeLog update 2002-07-17 00:19:37 +00:00
Andi Gutmans
852f4f2c29 - Before I forget to list it, this was also added. 2002-07-16 19:16:53 +00:00
Andi Gutmans
3be1dd468e - Syntactic sugar - Add "public" as a synonym for "var".
- Now we have the three P's.
You can do:

<?
	class MyClass {
		public $a;
		private $b;
		protected $c;
	}

?>
2002-07-16 19:11:14 +00:00
449327f57c ChangeLog update 2002-07-16 00:18:24 +00:00
Derick Rethans
c652c4b512 - MFH of the crap removal 2002-07-15 18:11:04 +00:00
Andi Gutmans
bc5ea87e28 - Commit patch to support protected member variables (by Timm Friebe w/
- some fixes by me).
- You can't access protected variables from outside the object. If you want
- to see a protected member from your ancestors you need to declare the
- member as protected in the class you want to use it in. You can't
- redeclare a protected variable as private nor the other way around.
2002-07-15 18:09:56 +00:00
Andi Gutmans
f7d9b9f1ae - Really implement bool increment/decrement as flip-flop. 2002-07-15 04:11:13 +00:00
2fba341e07 ChangeLog update 2002-07-15 00:21:10 +00:00
Andi Gutmans
7b68f5108a - Nuke delete(). It was a big mistake to introduce it and I finally
- understand why Java didn't do so.
- If you still want to control destruction of your object then either make
- sure you kill all references or create a destruction method which you
- call yourself.
2002-07-14 19:23:18 +00:00
Andi Gutmans
35e8d8139e - Nuke some unused code 2002-07-14 18:17:07 +00:00
Derick Rethans
207845410b MFZE1 2002-07-14 11:48:45 +00:00
Derick Rethans
dcd67e0b14 - MFZE1 2002-07-14 09:37:42 +00:00
Derick Rethans
643f21e840 - MFZE1 2002-07-14 09:29:42 +00:00
8e7219e123 ChangeLog update 2002-07-08 00:17:06 +00:00
Andi Gutmans
1b5ac1386e - Path which should improve previous fix. 2002-07-07 19:59:37 +00:00
Andi Gutmans
4271895222 - First try at solving problem with different objects being allocated the
- same id.
2002-07-07 19:34:34 +00:00
Stanislav Malyshev
0ed4f6d184 name length should be strlen+1 2002-07-07 13:06:58 +00:00
Sebastian Bergmann
c9f1c9c19f Allow for 'class Namespace::Bar extends Foo' syntax. Patch by Timm Friebe <thekid@thekid.de>. 2002-07-07 08:22:23 +00:00
08f4a57cad ChangeLog update 2002-07-07 00:17:17 +00:00
Andi Gutmans
677a9e8751 - Fix problem where scope was lost in nested function calls.
- Thanks to Timm Friebe for diving into this one.
2002-07-06 17:44:45 +00:00
Zeev Suraski
0ae66bd659 spelling fix 2002-07-06 16:48:13 +00:00
e8c76f21ad ChangeLog update 2002-07-06 00:18:36 +00:00
Stig Bakken
eebae9f9ef * folding fixes 2002-07-05 02:34:54 +00:00
7e921b42a4 ChangeLog update 2002-07-02 00:37:08 +00:00
Andi Gutmans
57b853c831 - Fix bug when acccessing $this not in class scope. 2002-07-01 15:13:39 +00:00
Andi Gutmans
4a52b98835 - Export zend_object_get_address() 2002-07-01 04:21:40 +00:00
acac7af404 ChangeLog update 2002-07-01 00:24:52 +00:00
Andi Gutmans
4d1321afbc - Remember to document autoload when I have time. 2002-06-30 19:55:50 +00:00
Derick Rethans
bf4e59449b - MFZE1 2002-06-30 11:18:43 +00:00
cfc2259d13 ChangeLog update 2002-06-30 00:22:49 +00:00
Andi Gutmans
f24cb9731c - Get ready for alpha2 2002-06-29 19:37:10 +00:00
Andi Gutmans
401c26fb5e - Invalid -> Undefined 2002-06-29 16:01:40 +00:00
Andi Gutmans
5f2fcdd689 - Add missing semi-colon. 2002-06-29 15:38:40 +00:00
Andi Gutmans
ede84fa384 - Improve some error messages. 2002-06-29 15:30:27 +00:00
Andi Gutmans
20d02565df - Revert previous fix. 2002-06-29 11:24:11 +00:00
Andi Gutmans
6116145f9f - Change E_ERROR -> E_COMPILE_ERROR where needed. 2002-06-29 08:42:17 +00:00
Andi Gutmans
dd8df52223 - Fix for bug #17882. We complain if the same method is declared twice. 2002-06-29 08:38:24 +00:00
Andi Gutmans
6339bd5912 - Fix bug 15037
- Bump version to alpha2-dev
2002-06-29 07:35:41 +00:00
7e5b2f2165 ChangeLog update 2002-06-29 00:30:30 +00:00
Andi Gutmans
1f6cadcd28 - WS fix 2002-06-28 15:30:03 +00:00
5bb94cb3a2 ChangeLog update 2002-06-27 00:22:58 +00:00
Andi Gutmans
737de1bd0c - Autoloading support based on patch from Ivan Ristic.
- Again I hope this feature ends up working well because if it doesn't we
- might need to nuke it. This only works for global scoped classes and it
- will never work for sub-classes so don't even ask!!!!!
- Just define an __autoload() function in the global scope and it will be
- called with the class name as the parameter if it doesn't manage to find
- the class.
2002-06-26 15:13:14 +00:00
Andi Gutmans
28247f572a - Centralize global class fetch 2002-06-26 14:24:23 +00:00
Andi Gutmans
b55a20abf4 - Fix problem with scope's not changing correctly during method calls.
- Reapply a tiny optimization to the allocator so that in non-debug mode
- we clean memory without detecting leaks.
2002-06-26 11:07:35 +00:00
26d98b5b0a ChangeLog update 2002-06-25 00:27:38 +00:00
Andi Gutmans
136b92e33a - MFZE1 (Turn off fast cache until we make sure it performs well.) 2002-06-24 19:41:06 +00:00
Andi Gutmans
c6b39eb50d - More fixes (warnings, bug fixes etc.) 2002-06-24 18:49:13 +00:00