Moriyoshi Koizumi
149f786025
Bug #25738 (alloca() related problems on the Darwin platform)
2003-10-03 22:02:55 +00:00
Moriyoshi Koizumi
be5cbf9999
Ensure lval to have a *boolean* value.
2003-10-03 16:57:41 +00:00
foobar
db50cd251e
Aligned configure help texts.
2003-10-03 05:24:33 +00:00
5b17050a79
ChangeLog update
2003-10-01 00:32:39 +00:00
Moriyoshi Koizumi
ddd49b34c8
Remove redundant '\n'
2003-09-30 00:32:41 +00:00
c88a26881e
ChangeLog update
2003-09-27 00:33:03 +00:00
Hartmut Holzgraefe
075e66cc08
signed/unsigned compiler warning fixes
2003-09-26 08:09:56 +00:00
22c6591674
ChangeLog update
2003-09-26 00:32:52 +00:00
Georg Richter
47f6dc77c5
fixed compiler warning
...
removed dead code
2003-09-25 15:54:17 +00:00
Georg Richter
664078c100
changed ulong to long to avoid compiler warnings (comparison between signed and unsigned)
2003-09-25 15:38:35 +00:00
c8db2e0455
ChangeLog update
2003-09-23 00:32:08 +00:00
Ilia Alshanetsky
10def9a8ae
Added missing format.
2003-09-22 04:21:44 +00:00
b5d828f92d
ChangeLog update
2003-09-21 00:32:02 +00:00
Marcus Boerger
0266efb8b5
Add public array Reflection_Class::getDefaultProperties()
2003-09-20 14:22:48 +00:00
42758e6ebd
ChangeLog update
2003-09-19 00:33:52 +00:00
Marcus Boerger
3efe102a48
Nuke vars no longer needed
2003-09-18 17:13:59 +00:00
Marcus Boerger
7b3e84871e
Go with studlyCaps
2003-09-18 16:20:42 +00:00
Marcus Boerger
5b3bb16530
Go with studlyCaps
2003-09-18 12:09:55 +00:00
Marcus Boerger
f8a376fe8e
Change tostring() into __toString() to match method name used in casting.
2003-09-18 11:55:57 +00:00
Marcus Boerger
71ba442768
Fallback to default behaviour for unsupported object type conversions
2003-09-18 11:50:05 +00:00
Marcus Boerger
d7fdf15a41
- Allow partial type conversion support for objects.
...
- Add support for object to string conversion from userspace by method
__toString() and add a test.
2003-09-18 11:38:33 +00:00
Marcus Boerger
87045df4ce
Add missing check
2003-09-18 10:21:38 +00:00
77669838d0
ChangeLog update
2003-09-18 00:32:25 +00:00
Marcus Boerger
909bd62a43
Show name of missing function as typed
2003-09-17 11:06:11 +00:00
Marcus Boerger
755c404d08
Use studlyCaps in exception class
2003-09-17 10:15:00 +00:00
Marcus Boerger
46b8801b35
Go with studlyCaps in error messages/backtrace/reflection output
2003-09-17 10:14:12 +00:00
328a6b862a
ChangeLog update
2003-09-17 00:31:56 +00:00
Marcus Boerger
d2088841a4
- Make it clear whether it is an interface or a class
...
- Fix static properties
2003-09-16 19:31:45 +00:00
596ef9704b
ChangeLog update
2003-09-16 00:32:09 +00:00
Marcus Boerger
6bf04aff5b
Revert - need to look for a better solution
2003-09-15 21:00:38 +00:00
Marcus Boerger
16a816b92c
Bugfix #25547
2003-09-15 20:20:14 +00:00
Zeev Suraski
36133c4d0b
Simplify / fix
2003-09-15 08:13:34 +00:00
def79d3754
ChangeLog update
2003-09-15 00:34:42 +00:00
Marcus Boerger
9d7f2fd9f0
Bugfix #25335
2003-09-14 19:56:37 +00:00
Zeev Suraski
e0508c13bb
Commit 64-bit fixes to the standard operators
...
by Ard Biesheuvel (abies@php.net )
2003-09-14 17:37:01 +00:00
Marcus Boerger
1c86e53204
Bugfix #25528 (by Ard Biesheuvel)
2003-09-14 01:20:25 +00:00
576951c129
ChangeLog update
2003-09-14 00:31:51 +00:00
Marcus Boerger
dc6163fe20
Fix warnings
2003-09-13 16:49:50 +00:00
3a9e32d7dc
ChangeLog update
2003-09-12 00:32:10 +00:00
Stanislav Malyshev
5bcc602a7c
add test
2003-09-11 17:07:43 +00:00
Stanislav Malyshev
b163778fee
ws
2003-09-11 17:06:53 +00:00
Stanislav Malyshev
406ff728f1
Use scope from method, not from object
2003-09-11 17:04:26 +00:00
Marcus Boerger
6f78de02f0
Use type instead of constant
2003-09-11 10:26:47 +00:00
d73045166b
ChangeLog update
2003-09-09 00:31:42 +00:00
Marcus Boerger
9d0506ec54
Fix property inheritance where a derived class inherits a public property
...
and owns it as an implicit public property already (noticed by Brad).
2003-09-08 23:25:57 +00:00
Marcus Boerger
62421b5201
Fix registering/derigistering of stdClass in ZTS and NON ZTS mode
2003-09-08 10:45:19 +00:00
3cbdfccaa8
ChangeLog update
2003-09-08 00:31:45 +00:00
Marcus Boerger
cdc5d69ec2
Fix foreach() called with non array
2003-09-07 23:09:30 +00:00
Stanislav Malyshev
22c6bc13c7
check for mach-o/dyld.h - needed for non-PHP ZE build
2003-09-07 13:49:15 +00:00
573abd7e50
ChangeLog update
2003-09-07 00:31:51 +00:00
Marcus Boerger
fdf3fbadf0
Disallow to changing the backtrace
2003-09-06 14:06:40 +00:00
Marcus Boerger
a986b3f6a4
Add missing newline if no static methods are available
2003-09-06 13:18:12 +00:00
Marcus Boerger
10ea007e39
- Internal functions shall be static
...
- Fix more nesting
2003-09-06 13:11:27 +00:00
Marcus Boerger
35529e1964
Fix logic
2003-09-06 13:02:16 +00:00
Marcus Boerger
c31fc7771a
- Fix CS: {{{ / }}}
...
- Fix static reflection_*::export()
- Add class reflection_object which allows to show dynamic properties
2003-09-06 12:52:40 +00:00
Marcus Boerger
f5b1114449
Use %s where it makes more sense
2003-09-06 10:59:07 +00:00
b0aff5de7d
ChangeLog update
2003-09-06 00:31:23 +00:00
Marcus Boerger
79a507e4eb
Simplify reflection_property::__constructor() and fix property factory
2003-09-05 14:48:55 +00:00
Marcus Boerger
9a39cd5501
- Don't use resorved words as variable names.
...
- Improve several exception messages.
- Fix Reflection_Property::_construct() / getDeclaringClass()
# The above does not imply that properties are fixed when returned
# by other reflection api methods.
2003-09-05 14:35:31 +00:00
Marcus Boerger
34990374e1
Fix reflection_api::__construct() (noticed by Andrey)
2003-09-05 12:14:03 +00:00
Marcus Boerger
0e3918732e
Provide string casting for exceptions by calling toString()
2003-09-05 11:40:30 +00:00
79e5df27af
ChangeLog update
2003-09-05 00:32:09 +00:00
Marcus Boerger
95649ab260
Tests show updating consts must happen once at runtime (revert optimization).
...
Add tests for static properties.
2003-09-04 16:00:01 +00:00
Marcus Boerger
4e7a782f3a
Add reflection_class::getstaticproerties()
2003-09-04 15:57:25 +00:00
e2c873fa0c
ChangeLog update
2003-09-04 00:32:10 +00:00
Marcus Boerger
be8287e55c
Partly revert and reintroduce hash table entries for the ctor.
...
# Obviously not the brightest idea i had today.
2003-09-03 21:21:18 +00:00
Marcus Boerger
5569d7fae9
Nuke unused variable, too
2003-09-03 20:28:13 +00:00
Marcus Boerger
61b96d1fe2
- Inheritance applies to __clone() too.
...
- No need to add additional functions for the constructor.
The handler uses the pointer as intended and doesn't look the the name.
2003-09-03 20:26:01 +00:00
Marcus Boerger
91ff8d67e7
Cannot turn a static property into a non static one and vice versa
2003-09-03 19:28:46 +00:00
Marcus Boerger
7bbbd5035d
Fix handling of static properties initialized to arrays
2003-09-03 18:01:22 +00:00
Marcus Boerger
1d21d48e8a
Add missing error messages when violating static property inheritance rules.
2003-09-03 16:34:35 +00:00
Marcus Boerger
1b39a5aa2c
Fix static properties.
...
#
# There's only an errormessage missing which i'll wommit as soon as i find out
# how to do it best. But besides that damn message everything works now and all
# inheritance rules apply.
#
2003-09-03 16:13:40 +00:00
Marcus Boerger
1d3d396fea
Allow redeclareing a protected property as public.
...
#
# The only known thing left at this moment is that the protected static members
# of a base class is different then the redeclared public property. I tried
# to remove both new and old static properties in the derived class and copy
# the base property with the new name. But for reasons i have to check later
# that didn't result in the expected behavior. Anyway we would need a warning
# if someone tries to change the value of a static property in a derived class.
#
2003-09-03 10:58:55 +00:00
Zeev Suraski
93f0ee5fda
Revert bogus patch
...
One must *never* use E_CORE_* error levels!
2003-09-03 08:39:43 +00:00
Marcus Boerger
2f6e25da79
Clearly distinguish between Const, Static and Other members.
...
# Const and static props have more in common then static and dynamic/implicit.
2003-09-03 00:38:13 +00:00
3b2a06382b
ChangeLog update
2003-09-03 00:31:52 +00:00
Marcus Boerger
d1b74000ad
Fix error messages
2003-09-02 23:12:37 +00:00
Marcus Boerger
e569b5aee5
Allow redeclaring of protected properties as public (for internal classes).
...
# See http://news.php.net/article.php?group=php.zend-engine.cvs&article=1737
# for the part not fixed (e.g. property redeclaration of userland classes)
2003-09-02 20:49:42 +00:00
Marcus Boerger
560d3ab36a
Use appropriate function for property name unmangling.
...
# Make Andrey happy
2003-09-02 14:46:02 +00:00
Marcus Boerger
7148cb9e73
Make these static as noticed by Andrey
2003-09-02 14:11:53 +00:00
Marcus Boerger
9702c70a35
Synch/Unify error messages related to function/method calls
2003-09-02 14:08:59 +00:00
Marcus Boerger
469b746b4d
Fix error level
2003-09-02 13:28:34 +00:00
Marcus Boerger
0f3374615b
Currently we cannot support static ctor/dtor
2003-09-02 13:26:25 +00:00
Marcus Boerger
bd86aff005
These are implicit properties as denoted by the flag. Dynamic properties only
...
exist in one single object and currently reflection api is not capable of
showing those.
2003-09-02 13:12:47 +00:00
Marcus Boerger
f03801bdd6
Don't loose information if no parameters were shown.
...
# Noticed by Sebatian Bergmann
2003-09-01 21:40:58 +00:00
Marcus Boerger
bca0019d43
Fix initial buffer size
2003-09-01 21:14:09 +00:00
Marcus Boerger
2b19c5435e
Fix class handling of invoke
2003-09-01 21:11:38 +00:00
Marcus Boerger
d7fa986db8
Show {main} and prevent showing empty stack traces
2003-09-01 20:54:48 +00:00
Marcus Boerger
0036ed9064
Clearify this
2003-09-01 20:02:47 +00:00
Marcus Boerger
bef3e13caf
Add missing '}'
2003-09-01 19:47:34 +00:00
Sebastian Bergmann
07ef05adb5
Revert what I think is an accidental commit by Marcus that slipped in at revision 1.23. Declaring getMessage() as final is a PITA, so I hope it will not come to that.
2003-09-01 17:26:57 +00:00
Marcus Boerger
cbd08869f2
Add static reflector::export() and its implementations.
...
#
# This makes the main reflection use a lot easier.
#
2003-09-01 16:13:24 +00:00
Marcus Boerger
a389286b99
Set the params in the struct
2003-09-01 15:09:57 +00:00
Marcus Boerger
c7f1c2f74f
Invalidate exception in this case too
2003-09-01 13:05:50 +00:00
Marcus Boerger
1257b407a6
WS
2003-09-01 13:04:55 +00:00
ff647c501f
ChangeLog update
2003-09-01 00:31:37 +00:00
Marcus Boerger
4506d4ea24
Don't repeat first const count(consts) time
2003-08-31 15:47:48 +00:00
Marcus Boerger
660c14e74a
Beautify output
2003-08-31 15:30:13 +00:00
Marcus Boerger
4af0621036
Add reflection_parameters, patch by Timm Friebe
2003-08-31 15:06:54 +00:00
Marcus Boerger
f9ee319152
Excluded chars < 32 when displaying string parameters that would obliterate output.
2003-08-31 12:40:29 +00:00
Zeev Suraski
f1b80b9210
Attempt at fixing the linkage problem in Win32
2003-08-31 12:38:50 +00:00
Marcus Boerger
fb4a63a07d
Synch error message with other one to fix tests
2003-08-31 11:38:31 +00:00
Marcus Boerger
8376b7eff7
Check whether we may access tat union
2003-08-31 11:21:30 +00:00
Marcus Boerger
d15ad4609d
Revisited: Replace the non portable code by spprintf
2003-08-31 10:52:23 +00:00
Marcus Boerger
ade319ac54
Using zend_spprintf should be faster here
2003-08-31 10:06:13 +00:00
Marcus Boerger
d45fd8a1b1
Make vspprintf available as zend utility function. Use it in exception output.
2003-08-31 09:35:54 +00:00
c9a69abe25
ChangeLog update
2003-08-31 00:31:46 +00:00
Marcus Boerger
00fddc9b83
Actually fetch the parameter
2003-08-30 23:55:04 +00:00
Marcus Boerger
f1c92fa4c5
- Calling abstract methods should be a error for consistency reason.
...
- So in reflection_api we use the reflection_exception again.
2003-08-30 23:51:42 +00:00
Marcus Boerger
80c0cdf7f7
Even though it is ignored this should be correct
2003-08-30 19:01:10 +00:00
Marcus Boerger
655f2dc572
Add frame numer and finally display stack trace in the message.
...
#
# And voila - nice useable and helpfull exceptions in PHP.
# Now we need to tell ppl 'anyway don't use them if possible'.
#
2003-08-30 18:58:40 +00:00
Marcus Boerger
c80eb4573f
Add exception::traceAsString() and exception::toString()
2003-08-30 18:28:24 +00:00
Marcus Boerger
6c69b28790
fci.function_table & fci.function_name are not needed since we use zend_fcall_info_cache
2003-08-30 13:47:27 +00:00
Marcus Boerger
e679504861
Be precise
2003-08-30 13:38:23 +00:00
Marcus Boerger
49a538d054
Actually using fcc would be a good idea
2003-08-30 12:58:35 +00:00
Marcus Boerger
f7f49e4584
- The compiler can't detect all abstract function calls so we need to check.
...
# In this case throwing a dedicated exception is better than the error we
# show when the compiler can detect the abstract call because its run-time.
2003-08-30 11:40:37 +00:00
Marcus Boerger
ad31a021bc
Make those final (see comment)
2003-08-30 11:33:41 +00:00
707accd337
ChangeLog update
2003-08-30 00:31:40 +00:00
Marcus Boerger
047a574e6c
- Add zend_merge_properties() which is designed to serve *_fetch_object().
...
- Explain drawbacks of object_and_properties_init and zend_merge_properties.
#
# I guess we can live with the purity problem of potentially calling __set()
# of an object which wasn't already ctored.
#
2003-08-29 23:27:22 +00:00
Marcus Boerger
50040c8ae9
- Use zend_fcall_info_cache in invoke() to improve speed.
...
# This also fixes the problem with calling static methods.
2003-08-29 21:46:12 +00:00
Zeev Suraski
aaa1cdca31
Fix a problem in implicit public properties and inheritance
2003-08-29 08:51:43 +00:00
Sascha Schumann
dcfb7638bc
improve a number of zend_debug format strings
2003-08-29 07:34:37 +00:00
a92363f694
ChangeLog update
2003-08-29 00:31:41 +00:00
Marcus Boerger
bdd2d4aacf
Need to tell zend_fetch_debug_backtrace() whether to skip top function or not.
...
# And i wondered why the trace wasn't rally accurate.
2003-08-29 00:16:00 +00:00
Marcus Boerger
b3f3ddd1b5
Add public read access to protected
2003-08-28 23:43:56 +00:00
Marcus Boerger
fa70708d15
Add zend_throw_exception_ex() which allows to format exception messages.
...
#
# Since we don't have any portable way of printing into a dynamic buffer i
# used a stack buffer of 1K (just like the error printing) and used a dynamic
# buffer in case the necessary function is available.
#
2003-08-28 22:56:41 +00:00
Marcus Boerger
12376a2270
Classe tables work this way
2003-08-28 22:53:24 +00:00
Marcus Boerger
8d3620aea8
- Split debug_backtrace() into lowlevel c function and php function wrapper
...
- Add trace property to default method based on new zend_fetch_debug_backtrace
# Unforunatley the handler for uncaught exception can't show this backtrace
# simply because there is currently no way to do it. If i can think of a
# solution i'll add it. Until them i am open to any ideas/help.
2003-08-28 20:35:54 +00:00
Sascha Schumann
744c68e447
older gccs don't understand attribute((format)) on function pointers
2003-08-28 17:31:31 +00:00
Sascha Schumann
83bd1f4398
ZEND_GCC_VERSION should always be defined to a number so we can use
...
simple comparisons all the time.
2003-08-28 17:04:16 +00:00
Sascha Schumann
2e36578cfd
Add format attribute to a number of functions
...
Kill a few warnings
2003-08-28 16:41:20 +00:00
Sascha Schumann
169d43e5fa
cleanup & centralize ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC so that
...
they can be used by downstream applications
2003-08-28 14:53:02 +00:00
Sascha Schumann
f065aba3ba
Enable attribute((malloc)) for GCC 2.96
2003-08-28 11:55:39 +00:00
Sascha Schumann
6d7e56a0c8
GCC 2 does not know about malloc yet.
2003-08-28 06:17:05 +00:00
Sascha Schumann
cf1f6e3c4c
provide attribute((malloc)) where appropiate
2003-08-28 05:50:15 +00:00
8a00475722
ChangeLog update
2003-08-28 00:32:00 +00:00
Marcus Boerger
43836e97c5
Nuke unused variable
...
# I should have taken Timm's patch
2003-08-27 20:48:41 +00:00
Marcus Boerger
7f5196953c
Fix reflection_class::newInstance()
2003-08-27 20:45:34 +00:00
e01eddf01d
ChangeLog update
2003-08-26 00:32:02 +00:00
foobar
28447d62da
- Fixed bug #25240 (spaces before pre-processor directives)
2003-08-25 23:24:29 +00:00
15592ba096
ChangeLog update
2003-08-25 00:32:07 +00:00
Marcus Boerger
f9cebab0cb
Add missing check
2003-08-24 22:45:59 +00:00
Marcus Boerger
9603e44eb6
Fix memory source of string duplication for non internal properties
2003-08-24 18:47:11 +00:00
Marcus Boerger
19ec7a09fc
- Provide appropriate way to destroy internal zval's.
...
- Allow internal zval's of type string and disallow complex types.
- Define the default string for extensions at class level instead of ctor.
2003-08-24 17:32:47 +00:00
Marcus Boerger
cec053f707
Don't identify alias'ed functions
2003-08-24 16:35:58 +00:00
Zeev Suraski
ea36fc4143
Use ""'s if you want empty strings. We want to crash on errors.
2003-08-24 16:27:01 +00:00
Zeev Suraski
a9107e2be1
Use pemalloc()
2003-08-24 16:17:45 +00:00
Marcus Boerger
b84e9db3b8
Allow NULL, too
2003-08-24 16:13:23 +00:00
Zeev Suraski
0ac5bbd780
Never, ever, overwrite the refcount element of a connected zval!
2003-08-24 15:59:19 +00:00
Marcus Boerger
e44d0f526c
Add dedicated reflection_exception
2003-08-24 15:07:54 +00:00