Andi Gutmans
ee44180fc6
- Fix a crash (not a thorough fix).
...
- Commented old code
2001-12-25 16:51:37 +00:00
Andi Gutmans
3458373ed6
- Fix a bug where function's didn't work anymore in multi-threaded
...
- servers after the latest startup changes.
2001-12-23 18:39:52 +00:00
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
ce98c73f82
- Infrastructure changes for allowing to access the global scope from
...
- within a class scope.
- Fix the Zend.dsp project a bit. It seems someone pretty much killed it
- when commiting their own personal configuration. Please be careful in
- future.
2001-12-12 20:45:38 +00:00
Andi Gutmans
4214a056a1
- Merge from ZE1
2001-12-11 18:51:02 +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
8460372395
- Fix crash with unhandled exceptions
2001-12-08 20:58:20 +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
0d559f17cd
- Fix crash and leak
2001-11-25 12:29:08 +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
2eccd95ca4
- Add some initializations
2001-11-03 12:19:52 +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
17352812a3
MFZE1
2001-09-22 00:09:24 +00:00
Zeev Suraski
483fc4c73a
MFZE1
2001-09-19 22:34:11 +00:00
Zeev Suraski
b06440bceb
MFZE1 (support return value in execute_scripts)
2001-09-10 00:07:32 +00:00
Zeev Suraski
819ea51d00
MFZE1
2001-08-31 13:11:52 +00:00
Zeev Suraski
4757104e45
MFZE1
2001-08-21 12:29:12 +00:00
Zeev Suraski
4f6c95d17a
Whitespace
2001-08-11 15:56:40 +00:00
Andi Gutmans
80b870e5d3
- Merge from Engine 1 tree
2001-08-09 03:58:58 +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
2f6cd308f9
- Merge zend_try fix from Engine 1
2001-08-08 15:06:08 +00:00
Zeev Suraski
609d58a4d6
Merge from branch - move to standard C scanners in thread safe mode
2001-08-06 13:48:51 +00:00
Zeev Suraski
fcc035108f
TSRMLS_FETCH work
2001-08-05 01:37:10 +00:00
Zeev Suraski
66d9314b60
Implement fast memory allocation and reduced fragmentation under Windows.
2001-08-03 07:06:05 +00:00
Zeev Suraski
7deb44e36d
Some cleanup
2001-08-02 06:16:20 +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
b57703825b
Avoid TSRMLS_FETCH()'s (still lots of work left)
2001-07-30 01:48:22 +00:00
Andi Gutmans
c259cb7c1a
- Object macros...
2001-07-29 08:22:57 +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
Zeev Suraski
ef4fe54f0a
Always track bailout file/lineno
2001-07-21 16:21:22 +00:00
Zeev Suraski
5f2da6f219
Fix Release builds
2001-07-21 16:13:46 +00:00
Zeev Suraski
931ebe08d7
Improve bailout mechanism, supports nesting of bailouts a-la try..catch
2001-07-21 14:25:27 +00:00
Zeev Suraski
8084d27885
Implement a more granular shutdown mechanism for the executor -
...
prevent corruption of constants and missing destructions of resources
2001-07-20 14:20:34 +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
Zeev Suraski
ab30c8cca3
Early initialization
2001-07-15 12:24:10 +00:00
Zeev Suraski
b23d83cf6a
Avoid crashing if the error reporting function is called after a bailout during shutdown
2001-06-13 17:18:11 +00:00
Zeev Suraski
51303fc051
Fix corruption issue
2001-05-17 09:58:34 +00:00
Zeev Suraski
0eadc7e423
Make zend_execute_scripts() reentrant
2001-05-07 11:08:18 +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
Andi Gutmans
7080fa5b53
- Rename modules.h to zend_modules.h
2001-02-26 18:18:34 +00:00
Andi Gutmans
d2c9e8074c
- Update copyright year
2001-02-26 05:43:27 +00:00
Zeev Suraski
0e08845eb0
Add free_estring()
2001-01-15 10:52:06 +00:00
Zeev Suraski
903018ef36
- Remove backward dependency from PHP -> Zend
...
- Rename get_ini_entry() as get_configuration_directive() for clarity
(it doesn't use the INI subsystem, but the module-supplied function for
retrieving configuration directives)
2001-01-07 18:39:11 +00:00
Zeev Suraski
1f23e50789
Fix possibility of a crash during startup (very unlikely, but possible)
2001-01-07 02:47:32 +00:00
Zeev Suraski
54d53055c2
Make the INI mechanism thread safe (or at least thread safer :)
2000-12-27 15:43:15 +00:00
Sascha Schumann
c334058412
Set the floating-point exception mask on FreeBSD to 0 (as do other
...
FreeBSD system applications). Also bump up the module API number
as the zend_hash_get_current_key change affects source and binary
compatibility.
2000-12-22 21:11:34 +00:00
Zeev Suraski
36eaad252f
Allow get_current_key() not to return the key itself, instead of a duplicate
2000-12-22 12:49:51 +00:00
Stanislav Malyshev
63873aba37
Use HashPosition iterator instead of saving/restoring internal pointer
2000-12-18 15:06:03 +00:00
Stanislav Malyshev
9a135a2b29
Preserve internal pointer over print_r ( fix #8289 )
2000-12-18 13:56:30 +00:00
Zeev Suraski
6053f2a118
Fix bug #7599
2000-11-02 23:17:55 +00:00
Zeev Suraski
309827ec1d
Fix previous update - move extension startup further down the startup sequence
2000-09-25 18:10:45 +00:00
Zeev Suraski
59d3eb5f24
Move extension startup further down the startup sequence
2000-09-25 17:02:05 +00:00
Zeev Suraski
5286b3971c
Make compile_string() accept a description of the code
2000-09-12 19:47:25 +00:00
Zeev Suraski
4acff8f37f
Don't use unsafe sprintf()
2000-09-09 15:06:38 +00:00
Stanislav Malyshev
d10336ec0e
Don't trust snprintf return
2000-09-08 13:19:51 +00:00
Andi Gutmans
27de50012b
- Use emalloc() for opened_path now. This was a potential leak before.
...
- This patch has potential to break stuff but I tested it as much as I
- could. Fixes should be easy.
2000-08-31 22:24:20 +00:00
Andi Gutmans
1b282b3521
- Remove support for __string_value() in print $obj
2000-08-31 19:50:19 +00:00
Zeev Suraski
99af3ed8ef
Safer shutdown process
2000-08-31 16:01:31 +00:00
Zeev Suraski
7795aca4ca
Fix warning issue (compile errors inside require()'d files were incorrectly supressed)
2000-08-15 16:44:40 +00:00
Stanislav Malyshev
5090b1e8d5
Fix zend_fiel_handle handling. Should fix URL include
...
and various opened_path inconsistencies.
2000-08-13 18:00:50 +00:00
Zeev Suraski
c06692e9ec
The patch we promised - redesigned the compilation/execution API:
...
Advantages:
- Smaller memory footprint for the op arrays
- Slightly faster compilation times (due to saved erealloc() calls and faster zend_op
initialization)
- include_once() & require_once() share the same file list
- Consistency between include() and require() - this mostly means that return()
works inside require()'d files just as it does in include() files (it used to
be meaningless in require()'d files, most of the time (see below))
- Made require() consistent with itself. Before, if the argument was not a constant
string, require() took the include() behavior (with return()).
- Removed lots of duplicate code.
Bottom line - require() and include() are very similar now; require() is simply an include()
which isn't allowed to fail. Due to the erealloc() calls for large op arrays, require()
didn't end up being any faster than include() in the Zend engine.
2000-08-09 19:22:35 +00:00
Thies C. Arntzen
7f4909d9f5
fix ZTS startup without filename (thanx purify!)
2000-07-12 16:37:46 +00:00
Thies C. Arntzen
372f71eb1a
unset active_symbol_table on zend-shutdown.
2000-07-12 12:00:17 +00:00
Zeev Suraski
1263932a0d
Disable the hash_apply() protection on hashes that persist across requests - it's unsafe
...
because we may be aborted at any point
2000-07-11 14:27:31 +00:00
Zeev Suraski
f34b9d41be
Add $context argument to error handler
2000-06-29 15:07:59 +00:00
Zeev Suraski
a31dc47ae4
Improve error handling code
2000-06-28 22:08:47 +00:00
Andi Gutmans
f311ab1608
- I wrote a long msg but the commit didn't go through.
...
- So here is the short version:
- a) Start moving to binary opens in Windows
- b) Give checkuid_mode() a small face lift including the fopen-wrappers.c
- The mode to this function should at least be a #define but that is for
- another day. Anyway this whole stuff should be given more face lifts in
- the future.
2000-06-25 17:05:22 +00:00
Sascha Schumann
15925864b2
fp_except check for FreeBSD 1.0-2.2.5
2000-06-18 16:51:42 +00:00
Stanislav Malyshev
536221be39
Make error callback be publicly accessible
2000-06-18 16:02:32 +00:00
Andi Gutmans
4a6869c98e
- Better FreeBSD fix. Does fp_except_t exist on 3.4?
2000-06-18 15:44:23 +00:00
Andi Gutmans
53a5eccf66
- I don't know how this happened. I tested the bloody thing and I remember
...
- copy&pasting from code which used ~.
2000-06-18 04:22:12 +00:00
Zeev Suraski
3cda6a750e
Allow the symbol_table to be passed to call_user_function_ex()
2000-06-17 16:50:38 +00:00
Zeev Suraski
84eb48f0a1
Ok, this time here's some real Win32 system programming :)
...
Redesigned the timeout system using a single timeout thread and a single window,
and used a much quicker check.
2000-06-16 14:27:28 +00:00
Zeev Suraski
ef0bd3d102
- Move timeout code to Zend
...
- Implement timeouts in Win32
2000-06-16 01:54:56 +00:00
Zeev Suraski
8b794bb1dd
Fix non thread-safe mode - asp_tags/short_tags etc weren't getting initialized properly
2000-06-15 19:18:57 +00:00
Andi Gutmans
1f5ee72e2d
- Solve floating point precision crash on FreeBSD.
2000-06-11 18:07:14 +00:00
Andi Gutmans
5928970d22
- Fixes crash problem on FreeBSD when losing precision. Need to still see
...
- how to detect we're on FreeBSD
2000-06-11 17:45:19 +00:00
Zeev Suraski
98bf43f229
Enable asp_tags/short_tags/allow_call_time_pass_by_reference to work on a per-directory
...
basis as well
2000-06-06 19:13:54 +00:00
Andi Gutmans
01d478ba56
- Change #if to #ifdef.
2000-06-03 07:34:20 +00:00
Zeev Suraski
2ffe85ddac
Don't take chances with new include files
2000-06-03 04:14:31 +00:00
Zeev Suraski
0b7a9cea88
- Fix Win32 compilation (Use winsock2.h from now on)
...
- Add lambda() support
2000-06-03 01:49:49 +00:00
Zeev Suraski
8a8c3eafc8
Nuke the old error code, use the new one
2000-06-02 12:21:49 +00:00
Zeev Suraski
0302ee5992
- Remove ugly Ltd.
2000-05-22 16:55:56 +00:00
Sam Ruby
c5cf13eb29
Windows build failure
2000-05-21 19:26:50 +00:00
Andi Gutmans
a8b0d9609c
- Fix Apache php source highlighting mode. It was crashing due to the
...
- module shutdown functions being called when the startup functions weren't
- being called.
2000-05-21 17:41:16 +00:00
Sascha Schumann
7a2d83acdc
Source file does not end with a newline. Some old compilers don't like that.
2000-05-01 22:36:10 +00:00
Zeev Suraski
ddbcbb666d
Fix a bug in the resource dispencer
2000-04-28 15:52:02 +00:00
Zeev Suraski
974671eced
*** empty log message ***
2000-04-27 21:48:47 +00:00
Zeev Suraski
b80b8381d4
More error handling work (still completely disabled)
2000-04-27 19:38:11 +00:00
Thies C. Arntzen
f4c9d96f2e
fixed shutdown crash if MSHUTDOWN tries to php_error() something.
2000-04-24 12:47:07 +00:00
Zeev Suraski
67f6974373
Initial support for trapping errors (not complete and disabled; will be enabled only
...
post-PHP 4.0.0)
2000-04-19 15:08:06 +00:00
Zeev Suraski
603d5ff5d8
Fix ZTS
2000-04-15 14:17:18 +00:00
Zeev Suraski
4cb9a483d2
- Clean up resource lists namespace
...
- Prepare extended resource list destructor APIs (currently unused)
2000-04-15 13:02:22 +00:00
Zeev Suraski
5dba477467
- Some header dependencies cleanup
...
- Generalize zval_print() and zval_print_r()
2000-03-25 19:10:07 +00:00
Andi Gutmans
13e7413182
- Change zend_startup to accept a flag for starting builtin functions
2000-03-21 19:01:19 +00:00
Thies C. Arntzen
3092c10e93
renamed _string_value_() to __string_value().
2000-03-18 14:55:29 +00:00