Andi Gutmans
928da71046
- Try #2 . Wasn't allowed to delete in the previous manner because we were
...
in the middle of an llist_apply()
2000-10-18 20:15:53 +00:00
Sascha Schumann
ffc6e72604
Add explicit conversion from 'void *', otherwise ANSI C++ compilers
...
will break out.
2000-10-18 19:53:43 +00:00
Andi Gutmans
a953f6bc5b
- Fix crash
2000-10-18 19:48:17 +00:00
Andi Gutmans
610edbc7de
- Fix copy&paste bug
2000-10-17 18:25:10 +00:00
Andi Gutmans
54754242da
- Increase op_array size faster and make eralloc() it in the end to save
...
memory.
2000-10-15 19:52:01 +00:00
Andi Gutmans
154052ff15
- Add another patch from Sterling.
2000-10-14 19:48:53 +00:00
Andi Gutmans
5c6593b505
- Preliminary commit of Sterlings get_defined_functions()/get_defined_vars
...
functions
2000-10-14 15:52:24 +00:00
Andi Gutmans
b8cadf21db
- Only run startup() if ZEND_EXTENSIONS is defined to 1.
...
This fixes a link error on platforms which don't support libdl
2000-10-14 00:16:46 +00:00
Andi Gutmans
bc37c9b1cd
- Make increment of "" become "1"
2000-10-13 16:24:00 +00:00
Andi Gutmans
e9887156cf
Don't use 'new' symbol
2000-10-11 19:11:48 +00:00
Zeev Suraski
dee2d85e77
Fix -a interactive mode (no idea how the previous commit got committed)
2000-10-11 18:51:52 +00:00
Zeev Suraski
48167d2b21
*** empty log message ***
2000-10-11 18:36:02 +00:00
Zeev Suraski
84f81c50ba
Update version
2000-10-11 17:40:40 +00:00
Zeev Suraski
9aa38aad45
Add zend_hash_merge_ex(), for selective merging
2000-10-11 16:22:40 +00:00
Andi Gutmans
996bd9300b
- Fix Bug #7061
2000-10-06 17:34:50 +00:00
Andi Gutmans
d84c5a2238
- Updated included_files() also for plain include()/require().
2000-10-05 17:58:46 +00:00
Andi Gutmans
6d92ac275d
- Fix fprintf
2000-10-04 19:29:28 +00:00
Andi Gutmans
fe550afba6
- Change zend_extension_api_no
2000-10-02 20:08:46 +00:00
Andi Gutmans
ab8c6ed967
- Cleanup error output
2000-09-30 16:24:53 +00:00
Andi Gutmans
c4fd954b8a
- Another has optimization/fix like the hash_copy one from earlier on
2000-09-28 23:21:08 +00:00
Stanislav Malyshev
56c474cf48
Make hash_copy call copy constructor on a real copy, not on a temp
2000-09-28 15:17:50 +00:00
Andi Gutmans
b4ac6f4fdd
- Remove zend_gcc_inline.c
2000-09-28 06:40:57 +00:00
Sascha Schumann
99771d91ce
Remove --enable-c9x-inline option. We now use a syntax which is compatible
...
with all compilers by providing the function with static linkage in every
compilation unit.
2000-09-26 11:10:11 +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
Andi Gutmans
813f7b58d6
- Add Z_BVAL* macros
2000-09-19 18:18:26 +00:00
Stanislav Malyshev
d9d65f18e9
Fix crash on Solaris with function parameter destruction
2000-09-19 17:27:56 +00:00
Stanislav Malyshev
5918218872
Made get_included_files() work again, in somewhat different way
2000-09-18 13:43:20 +00:00
Stanislav Malyshev
2158bbfa7f
Set filename even on recursive include
2000-09-17 08:58:39 +00:00
Andi Gutmans
5418b59681
- Fix NULL handling in ARRAY opcode and resolve memory leak
2000-09-14 20:30:06 +00:00
Zeev Suraski
5286b3971c
Make compile_string() accept a description of the code
2000-09-12 19:47:25 +00:00
Andi Gutmans
5348058938
- Forgot to create extended info in include()/require() call
2000-09-11 15:15:57 +00:00
Stanislav Malyshev
e7402d7a50
Allow require_once to take expressions, just like require
2000-09-10 11:24:45 +00:00
Stanislav Malyshev
a05c35b802
Try once more to remove dups
2000-09-10 09:49:55 +00:00
Stanislav Malyshev
bb030e6fa8
Test commit - weed out duplicate messages
2000-09-10 09:49:02 +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
180c337885
- Save two lines
2000-09-06 18:42:06 +00:00
Andi Gutmans
6d32e7e59b
- Fix header
2000-09-06 18:38:36 +00:00
Sascha Schumann
5669b2dd26
Unless overwritten, default to no optimization in debug mode.
2000-09-06 18:37:39 +00:00
Andi Gutmans
715774bed7
- Commiting Sterling's new multi_convert* functions
2000-09-05 17:55:57 +00:00
Andrei Zmievski
0fd8685c64
Fix memory overrun.
2000-09-05 14:58:14 +00:00
Stanislav Malyshev
951eb9079c
Fix crash with trigger_error having no args ( #6549 )
2000-09-05 12:08:41 +00:00
Andi Gutmans
85181ac512
- Remove two tabs
2000-09-04 04:02:17 +00:00
Andi Gutmans
570e7e9a13
- Defining TSRM_WIN32 in each and every dsp sucked. Revert this change
2000-09-02 16:28:25 +00:00
Andi Gutmans
8d7faf6c12
- Fix windows build
2000-09-02 15:56:18 +00:00
Andi Gutmans
f826cc3bdd
- This should fix the performance problem with Release builds
2000-08-31 23:49:36 +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
Andi Gutmans
e7f10a41f2
- Update Zend version.
2000-08-29 15:48:55 +00:00
Andi Gutmans
1192fe545f
- Don't define this function in non-debug mode
2000-08-26 14:45:29 +00:00
Andi Gutmans
fbbc249f2b
- Revert patch from 9/7/2000 which seems to have broken unset().
...
- I hope what made me do this patch doesn't appear again.
2000-08-24 19:03:35 +00:00
Andi Gutmans
207814916d
- Fix bug report by Andrei when using a method as a sort user function
...
- parameter in usort() like functions
2000-08-22 18:35:42 +00:00
Zeev Suraski
1d0f45ea6b
Fix Win32 build
2000-08-20 22:19:58 +00:00
Sascha Schumann
9b9f9fa4dd
_isnan seems to be supported on Win32, add an appropiate macro.
2000-08-20 08:31:34 +00:00
Sascha Schumann
9e6e64955f
If available, use fpclassify for substituting zend_finite.
2000-08-20 07:12:48 +00:00
Sascha Schumann
6aada077a0
Including math.h before using macros defined there will work better :)
2000-08-20 06:09:07 +00:00
Sascha Schumann
1f84023b05
Add zend_isinf and zend_isnan.
2000-08-20 06:07:42 +00:00
Andrei Zmievski
0691afb08c
One more fix to C compile.
2000-08-19 18:13:52 +00:00
Zeev Suraski
595ca6b588
Fix C build
2000-08-19 18:05:15 +00:00
Zeev Suraski
f8d74acd93
Fix eval() leakage in ZTS mode
2000-08-19 17:58:04 +00:00
Zeev Suraski
c34f41b7c5
Eliminate run-time leak with eval()'s
2000-08-19 17:50:42 +00:00
Zeev Suraski
79b0a56c51
Fix build with no memory_limit
2000-08-19 16:51:30 +00:00
Zeev Suraski
07b5d74022
Fix memory_limit
2000-08-19 16:35:02 +00:00
Andi Gutmans
c698e14635
- Beautify
2000-08-19 15:16:53 +00:00
Stanislav Malyshev
1f793fd06c
Fix EMPTY_STRING macros
2000-08-17 08:48:16 +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
Zeev Suraski
636d126e16
- Fix leak and some logic
2000-08-14 20:16:27 +00:00
Andi Gutmans
e46ea8864c
- This patch should hopefully fix situations where a constructor uses
...
- the $this pointer as a reference.
2000-08-14 19:17:26 +00:00
Stanislav Malyshev
9e750e64b9
Fix crash
2000-08-14 09:06:56 +00:00
Andi Gutmans
e1a3604103
- Unused results should be marked with EXT_TYPE_UNUSED and not IS_UNUSED
2000-08-14 04:10:02 +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
Andi Gutmans
caa3b6c9b6
- Revert foreach() change which only allowed variables and array(...)
2000-08-13 04:19:44 +00:00
Andi Gutmans
2336c0148e
- Only support variables and array(...) in foreach loops
2000-08-11 09:56:28 +00:00
Andi Gutmans
e5015ed581
@ Fix problem with nested foreach()'s (Andi, Zend Engine)
2000-08-10 22:08:02 +00:00
Andi Gutmans
a1adc81f30
@ Fix switch which only has a default rule (Andi, Zend Engine)
...
@ Change require_once() to use the same file list as include_once().
@ Patch includes making require() & include() to behave the same when it
@ comes to scoping. require() is now an include() which isn't allowed to fail.
@ require() caused too many memory reallocations which ended up being quite
@ slow for sites that required lots of files. (Andi & Zeev, Zend Engine)
- Fix switch() which only has default rule (bug #5879 ,
2000-08-10 20:42:57 +00:00
Zeev Suraski
7dcf456dd6
that too
2000-08-09 19:25:01 +00:00
Zeev Suraski
0855453e83
Update API number
2000-08-09 19:23:38 +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
Andi Gutmans
50ddf9e3d5
- Use some more SEPARATE_ZVAL macros instead of replicated code.
2000-08-05 13:54:07 +00:00
Stanislav Malyshev
8b9ecac2dc
Fix memory leak
2000-08-05 11:06:00 +00:00
Andi Gutmans
fcdc025d11
- Beautify code. Try and use more macros for splitting instead of
...
- replicating the code everywhere.
2000-08-04 08:11:54 +00:00
Andi Gutmans
5ae343b752
- Remove commented code
2000-08-02 17:51:42 +00:00
Zeev Suraski
735a0d148e
Fix filename issues
2000-07-29 10:44:13 +00:00
Stanislav Malyshev
2c95b113bd
Make define return false and issue E_NOTICE when trying to redefine constant
...
@- Make define return false and issue E_NOTICE when trying to redefine constant (Stas)
2000-07-28 09:44:46 +00:00
Andi Gutmans
290525fdcd
Always store full filename as compiled file name
2000-07-27 15:36:54 +00:00
Zeev Suraski
a30cde3de5
Fix a possible issue with runtime inheritence under fairly rare circumstance
...
and optimize a tiny bit
2000-07-26 18:23:30 +00:00
Stanislav Malyshev
1373a16280
Add strncasecmp function
...
@ Added strncasecmp function (Andi)
2000-07-26 11:32:15 +00:00
Zeev Suraski
58e1dd2ee8
Forgot to link this function...
2000-07-18 20:32:39 +00:00
Zeev Suraski
a650dd8a19
This is probably the oldest bug in PHP :)
...
Luckily it's unlikely we're ever actually bitten by this bug.
2000-07-18 20:08:06 +00:00
Andi Gutmans
4066a197be
- Beautify Zeev's patch a bit.
2000-07-16 22:33:42 +00:00
Zeev Suraski
808f8ed306
Implement parent::foo()
2000-07-16 16:40:21 +00:00
Zeev Suraski
b4266edb07
Add more extended_info calls
2000-07-15 15:41:20 +00:00
Zeev Suraski
55d313db99
Improve register_resource_ex() infrastructure
2000-07-14 20:00:24 +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
3513866627
Another persistent hash - disable apply protection
2000-07-11 14:47:34 +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
Stanislav Malyshev
148317f979
Fix a bug in passing second parameter of RECV_INIT with is_ref set
2000-07-11 13:23:48 +00:00