Andi Gutmans
211d712c59
@ Fix bug in krsort() where an extra character was being compared (Andi)
...
- Fix bug in krsort() where an extra character was being compared (Andi)
2001-12-29 20:47:25 +00:00
Sebastian Bergmann
9063a96dfa
PHP 4.0 -> PHP 4. Patch by Martin Jansen <mail@martin-jansen.de>.
2001-12-29 14:23:58 +00:00
Dan Kalowsky
b76eb3ae40
Making PHP compile again on MacOSX 10.1
...
# 10.1 does not have inet_pton support yet it seems so disabling it.
2001-12-27 15:42:05 +00:00
Markus Fischer
7cf14fb1e1
- Fix tiny leak.
2001-12-23 15:56:41 +00:00
Alex Waugh
e320de1e2e
Undefine AF_UNIX under RISC OS
2001-12-23 00:46:13 +00:00
Derick Rethans
e8f3e3ffa0
- Let ceil also return a float in every case
2001-12-22 11:53:29 +00:00
Derick Rethans
6729156450
- Add test for floor and ceil
2001-12-22 11:52:56 +00:00
Zak Greant
2c9f5d8a91
Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,
...
uasort, uksort and usort.
Corrected prototype comments for all.
Converted to use zend_parse_parameters, except for the u.?sort functions.
Changed return values for failure from implicit NULL to explicit FALSE in
asort(), krsort(), and ksort().
Changed pval to zval in the u.?sort functions.
Added test to help ensure that fixes to code do not change function
behavior. Tests are quite large (~237k) but compress down to ~16k.
Please let me know if this is a problem!
2001-12-22 11:49:56 +00:00
Zeev Suraski
431c793e0c
Fix a warning
2001-12-22 03:04:32 +00:00
Derick Rethans
ca1bcd9ac3
- Fix for bug #14646 , floor() always returns a float now.
2001-12-21 16:38:49 +00:00
Derick Rethans
e5c08b815f
- Added open basedir checks to file functions. (Patch by
...
Christoph Kassen <chkassen@chkassen.de>)
2001-12-21 08:04:21 +00:00
Sean Bright
25058db066
Use memset() instead.
2001-12-21 03:50:07 +00:00
Sean Bright
33730ca2b9
Initialize variable to avoid bogus data and possible segfault.
2001-12-21 03:10:11 +00:00
Sean Bright
0ca4f69d31
Switched some functions to use zend_parse_parameters, cleaned up some
...
unused variables and some whitespace work.
2001-12-21 01:53:25 +00:00
Derick Rethans
d578e05f96
Mail should go to php-dev
2001-12-16 13:04:02 +00:00
Derick Rethans
3709eb6ab2
- Fix for bug #14544 , bogus warning in pow()
...
#- I think I do not need to tell who screwed this up....
2001-12-16 10:59:20 +00:00
Hartmut Holzgraefe
424679e9fb
proto fixes
2001-12-16 10:18:45 +00:00
Derick Rethans
f5f4a5cf37
- TSRMLS here and there, it's all about the Windows flair
2001-12-15 14:55:18 +00:00
Derick Rethans
143df7de6b
- Added a second parameter to var_export which makes the function return
...
the variable representation in a string.
2001-12-15 14:45:59 +00:00
Stig Bakken
dd969337a0
return boolean where appropriate
2001-12-12 01:36:07 +00:00
Hartmut Holzgraefe
cc4b274a58
ereg functions will now take in account the real number of
...
subexpressions instead of simply assuming a fixed count of 10
2001-12-11 19:28:31 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Derick Rethans
a7b9d5590b
- Remove debug code
2001-12-08 23:46:19 +00:00
Derick Rethans
3cb1db985e
- Added var_export, which shows a representation of a variable, much like
...
var_dump, but in such a way you can use it as PHP code.
@- Added var_export, which shows a representation of a variable, much like
@ var_dump, but in such a way you can use it as PHP code. (Derick)
2001-12-08 23:44:34 +00:00
Sterling Hughes
d95a4e2c19
Fix long2ip's handling of unsigned longs, by accepting a string argument and
...
then manually converting the string to an unsigned long using strtoul()
2001-12-07 13:20:18 +00:00
Egon Schmid
9f456af68b
Fixed some protos.
2001-12-07 09:34:50 +00:00
Hartmut Holzgraefe
94737d086f
proto fix
2001-12-07 07:27:00 +00:00
Hartmut Holzgraefe
49cc65cdae
renamed rot13 to str_rot13()
2001-12-06 21:39:01 +00:00
Hartmut Holzgraefe
71028d46cf
ported rot13() from php3
2001-12-06 19:02:27 +00:00
Hartmut Holzgraefe
c1626365f9
proto fixes
2001-12-06 18:59:22 +00:00
Hartmut Holzgraefe
38472b48d7
proto fix
2001-12-06 17:15:59 +00:00
Sterling Hughes
84ed9d387f
use PHP_INFO_ALL and PHP_CREDITS_ALL instead of hardcoding them
2001-12-06 13:31:34 +00:00
Sascha Schumann
ab38ad27a5
increase timestamp, because make tries to regenerate this file without any reason
2001-12-05 21:45:33 +00:00
Sterling Hughes
886ad91adf
Make the length parameter to fgets optional (defaults to 1024)
2001-12-04 19:40:48 +00:00
Derick Rethans
1f14640b3e
- Added ob_get_level, which returns the nesting level of the output buffering
...
mechanism. (patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>)
@- Added ob_get_level, which returns the nesting level of the output buffering
@ mechanism. (Yasuo, Derick)
2001-12-03 07:43:53 +00:00
Frank M. Kromann
03b5cb6775
Make php_reg_replace available from shared extensions
2001-12-03 05:15:29 +00:00
Frank M. Kromann
e7ef5041d5
Make php_MD5* functions available from shared extensions
2001-12-03 05:14:28 +00:00
Frank M. Kromann
8e40864770
Make _php_math_number_format available from shared extensions
2001-12-03 05:12:48 +00:00
Frank M. Kromann
c07cf5c2a5
Make php_startpage and php_getlastmod available from shared extensions
2001-12-03 05:11:29 +00:00
Frank M. Kromann
b4d9b70c6e
Make php_setcookie available from shared extensions
2001-12-03 05:10:10 +00:00
Hartmut Holzgraefe
34feef0d6b
- switch to new paramter parser
...
- make sure To: and Subject: do not end with a newline character
2001-12-02 17:57:17 +00:00
Bernd Roemer
99639f5812
Allow unserializer_callback_func to be turned off.
2001-12-02 17:31:11 +00:00
Derick Rethans
896faf0b34
- Fix a bug in timezones +0100 and -0100
2001-12-02 11:35:28 +00:00
Derick Rethans
29cd309944
- Fix a crash when passing e.g. NULL to basename(). (Patch by Markus
...
Fischer <mfischer@guru.josefine.at>)
#- Simplyfied code using zend_parse_parameters().
2001-12-01 15:45:55 +00:00
Thies C. Arntzen
0fd809a770
improve last patch:
...
non existant object variables are now serialized as NULL, this saves us from
buffering the serialized data.
2001-12-01 15:17:50 +00:00
Thies C. Arntzen
7ff5198c53
serialized data would be incoorect if __sleep() returned a variable-name
...
which is non-existant in the object.
submitted by: Bernd Roemer <berndr@bonn.edu>
2001-12-01 15:06:37 +00:00
Derick Rethans
9190271cef
- Added ob_flush and ob_clean functions, which do not end the buffer like
...
ob_end_flush and ob_end_clean do.
@- Added ob_flush and ob_clean functions, which flush and clean an
@ output buffer without destroying the buffer. (Derick)
2001-11-30 10:48:38 +00:00
foobar
ef64e8336f
Updated file since .re changed.
2001-11-26 22:46:15 +00:00
Derick Rethans
534b0f7e06
- Also patch the file from which var_unserializer.c is generated
2001-11-26 22:33:44 +00:00
Derick Rethans
06cdf297a8
- Adding a callback mechanism to the unserializer. (patch by Bernd
...
Roemer <berndr@bonn.edu>)
#- An explainatory e-mail will be send to php-dev
2001-11-26 21:04:21 +00:00
Derick Rethans
f17f3371be
- Added md5_file(), which calculaties the MD5 sum of a file.
...
(patch by: Alessandro Astarita <aleast@capri.it>) (Derick)
@- Added md5_file(), which calculaties the MD5 sum of a file.
@ (patch by: Alessandro Astarita <aleast@capri.it>) (Derick)
2001-11-18 18:48:17 +00:00
foobar
fc3906e93a
WS fix
2001-11-18 03:34:23 +00:00
Sascha Schumann
9f3362933a
Fix two incidents which have been reported about the new unserializer.
...
#1 : forgot to handle negative numbers
#2 : added zval_ptr_dtor which was not in the original code which
might lead to crash
PR: #14082
2001-11-16 16:34:14 +00:00
Stanislav Malyshev
39f3075500
Check in ftok() function by Andrew Sitnikov <sitnikov@infonet.ee>
2001-11-15 09:53:40 +00:00
Sterling Hughes
42b9349d8b
Many other reasons that setvbuf can fail than "wrong arguments", returning
...
false should be enough
2001-11-14 12:57:06 +00:00
Derick Rethans
b278435074
- Fix crashbug on dtor
2001-11-14 09:48:14 +00:00
Rasmus Lerdorf
55d9b2ad9c
Fix most of these tests - still think there is a bug in the long->float
...
conversion stuff somewhere
2001-11-13 13:12:46 +00:00
Rasmus Lerdorf
f78f4364a0
Different operating systems handle the group x bit differently, so
...
simplify this test to test the user x bit instead
2001-11-13 12:39:21 +00:00
foobar
12cfb76b65
Fixed the wrong logic in ini_get_all() function.
...
Now it behaves same as how phpinfo() outputs the ini entries.
If there is a local value, then the global one is the 'original one' if
there is such. Otherwise global value is same as local. :)
2001-11-13 00:37:49 +00:00
Jeroen van Wolffelaar
5ccdb1d352
Fix all (at least, I tried to catch all) proto's in file.c
2001-11-11 20:33:27 +00:00
Jeroen van Wolffelaar
788b1552a7
Add warning when set_file_buffer() fails
2001-11-11 19:42:31 +00:00
Derick Rethans
78e4644fa1
- Renaming key_exists to array_key_exists
...
@- Renamed key_exists tp array_key_exists. (Derick)
#- Not sure if this belongs in NEWS, but it was already in a released
# version. And yes, I know I'm breaking BC here, but as it was not documented
# yet, that doesn't matter.
2001-11-11 18:28:43 +00:00
Stanislav Malyshev
88c66d4859
Fix crash bug on malformed .ini file
2001-11-11 12:41:14 +00:00
Andrei Zmievski
98a7a1ba1f
Fixed bug #13901 .
2001-11-10 23:44:04 +00:00
Sascha Schumann
f341f630d3
Rewrite of unserializer which should be more maintainable and extensible.
...
Changes pass `make test´ and a couple of custom tests.
Enjoy.
2001-11-10 21:18:34 +00:00
Derick Rethans
88c6758d4e
- Fixing this bad idea
2001-11-10 18:06:28 +00:00
James Moore
4f78737000
Fix apache win32 dso build.
...
(This is untested on linux but shouldnt break anything)
2001-11-10 17:24:02 +00:00
Derick Rethans
23db803b34
- Correcting Goba's name, and adding me to QA team
2001-11-10 14:22:36 +00:00
James Moore
f111b84e05
@ - Fix Bug 9878 (patch by bfoddy@mediaone.net) (jmoore)
2001-11-07 14:22:15 +00:00
Jon Parise
2c5764d46f
It doesn't look like we use a fourth pointer.
2001-11-06 18:02:04 +00:00
Alex Waugh
f1e32a8c82
Undefine AF_UNIX when compiled for RISC OS
2001-11-04 12:40:45 +00:00
foobar
488b76b95d
ws fix
2001-11-04 02:09:55 +00:00
James Moore
a67459f581
@ - Fix bug 13885 (gmdate timezone handling on windows) (jmoore)
...
- relying on timezone and tzname isnt OK for gmdate etc, the only behaviour
that might not be right is the handling of T formatter under gmdate
should it return the machines timezone or GMT Standard Time??
2001-11-03 12:42:41 +00:00
James Moore
2ace2ccd00
WS fix
2001-11-02 19:31:57 +00:00
James Moore
c8896a38ae
@- Fix behaviour of strtok. Bug 13866 (jmoore)
...
# I have brought the behaviour of strtok into line with how the
# libc strtok's behave. currently given
# <string1><token><string2><token><token>string>
# three recursive calls to strtok returns <string1>. <string2>, <token><string3>
# it now returns <string1>, <string2>, <string3>. (there was some
# debate in #php.bugs if it should return <string1>, <string2>, false, <string3>
# but php's strtok now behaves the same way as the libc version.
2001-11-02 19:19:24 +00:00
Zeev Suraski
2f08cb119c
more ws
2001-10-29 09:45:47 +00:00
Zeev Suraski
c06c27af73
Whitespace fixes
...
Don't Adafy the code, Jani :)
2001-10-28 22:51:58 +00:00
Derick Rethans
6a5bcfef8d
- Fix for bugs #9640 and #13789
2001-10-27 17:50:26 +00:00
Andrei Zmievski
2890b57e46
@- Added array_chunk() function that splits an array into chunks of specified
...
@ size. (Andrei)
2001-10-27 05:11:15 +00:00
Andrei Zmievski
5da651fcd2
Convert to use new parameter parsing API.
2001-10-26 21:07:59 +00:00
Andrei Zmievski
b3d49ab0e4
Convert to use new parameter parsing API.
2001-10-26 14:50:58 +00:00
Rasmus Lerdorf
72fc6bc4b1
As suggested on php-dev, array_fill() is probably a better name for this
...
function.
2001-10-23 18:46:35 +00:00
foobar
f73ee14bd9
Check that realpath is available. Bug: #9469
...
# TSRM still uses it without checking. I can't fix that.
2001-10-23 11:14:51 +00:00
Zeev Suraski
c767809b2f
Prolong the death of dl() for a little while longer.
2001-10-23 01:18:54 +00:00
Rasmus Lerdorf
d98c96fc6c
Use references instead of making a copy each time in array_init(). About
...
twice as fast for a high number of elements. 2.80 seconds for the copy
of 1,000,000 elements and 1.39s for the reference version. Need to chunk
it every 62k or so because refcount is a short.
2001-10-22 20:49:27 +00:00
Jeroen van Wolffelaar
43b3da1396
Make math tests pass, round & co don't work this way, and there was an error
...
in expected output
2001-10-22 09:44:27 +00:00
foobar
701b1a548e
Fixed bug: #12617
2001-10-22 02:35:10 +00:00
Rasmus Lerdorf
4d60dbb9ef
Oops, leftover crud
2001-10-21 07:45:32 +00:00
Rasmus Lerdorf
798ec79319
Motivated by bug #13607 I wrote up a simple array_init() function that
...
lets you quickly create an array and initialize each element to a certain
value.
@ Add array_init() function (Rasmus)
2001-10-21 07:42:35 +00:00
foobar
5db38caece
Fixed bugs: #13251 , #9827 , #11363
2001-10-21 03:01:17 +00:00
Andrei Zmievski
5c90e7a78f
Fix warning,
2001-10-20 13:45:29 +00:00
Derick Rethans
6852a1e704
- Fix for bug #13413
2001-10-20 10:58:33 +00:00
Andrei Zmievski
030e873758
convert to use new parameter parsing API.
2001-10-19 19:48:35 +00:00
Andrei Zmievski
1ed249ddbc
Converting to use new parameter parsing API.
2001-10-19 19:21:58 +00:00
Egon Schmid
1f852425d1
Fixed other protos.
2001-10-19 19:21:28 +00:00
Egon Schmid
28575499df
Fixed another proto.
2001-10-19 18:42:25 +00:00
Andrei Zmievski
65da5375ea
Conver to use new parameter parsing API.
2001-10-19 18:26:30 +00:00
Edin Kadribasic
c0efc001af
Fixed last argument in strlcat() call.
2001-10-19 18:06:37 +00:00
Andrei Zmievski
8a54c2929f
Convert to use new parameter parsing API.
2001-10-19 17:16:12 +00:00
Edin Kadribasic
86959aaf62
Changed strncpy=>strlcpy; strncat=>strlcat
2001-10-19 15:54:05 +00:00
foobar
d9c26ab299
fixed proto
2001-10-16 17:08:11 +00:00
Edin Kadribasic
96a04d4ab7
Fixed bug #13083 in http_fopen_wrapper.c which is now able to handle
...
non absolute redirects.
2001-10-15 23:30:40 +00:00
Sascha Schumann
a92fa9b2bc
Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat.
2001-10-13 23:43:49 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Stig Bakken
925ff7f2b2
* remove version_{lt,le,gt,ge,eq} functions, added a third optional
...
parameter to version_compare doing the same thing
2001-10-11 10:35:59 +00:00
Stig Bakken
f0c30a0662
* added function entries for version_{lt,le,gt,ge,eq}
2001-10-10 10:32:16 +00:00
Stig Bakken
f3d2d4c630
@Added version_{lt,le,gt,ge,eq} functions (Stig)
2001-10-10 10:14:51 +00:00
Derick Rethans
62fb3d63c5
@- Added mmapfile(), read a file into a variabele with mmap (Ilia A, Derick)
...
- Added mmapfile(), read a file into a variabele with mmap (Patch by:
Ilia A. <ilia@prohost.org>)
2001-10-07 18:34:44 +00:00
Jeroen van Wolffelaar
78b881f389
Fix naming inside php_search_array, comp_func is not a compare function.
2001-10-07 13:49:08 +00:00
Sterling Hughes
3a50a0322f
@ Have rand() and mt_rand() seed automatically if srand() or mt_srand() has
...
@ not been called. (Sterling)
2001-10-07 11:52:09 +00:00
Stig Bakken
89bd184ea0
@Added version_compare() function (Stig)
2001-10-06 23:22:37 +00:00
Derick Rethans
a0bbfb590c
- <br> -> <br />
2001-10-06 20:13:39 +00:00
Sterling Hughes
af1c7070f7
fix execution order
2001-10-06 18:59:39 +00:00
Sterling Hughes
16da751e3b
avoid TSRMLS_FETCH()
2001-10-06 18:55:09 +00:00
Sterling Hughes
1bceefb2da
@ Don't through a file does not exist warning for the is_dir(), is_writeable(),
...
@ is_readable(), is_executable(), is_link() and is_file() functions. (Sterling)
2001-10-06 18:52:37 +00:00
Edin Kadribasic
26389258bb
Made assert test pass on systems with short open tags disabled.
...
Added .cvsignore
2001-10-06 09:38:29 +00:00
Stig Bakken
9ce638248d
* prototype of version_compare, doesn't work yet
2001-10-05 23:56:19 +00:00
Jeroen van Wolffelaar
a1c2b86701
Fix the pow-test, it now succeeds on my machine
2001-10-05 23:37:08 +00:00
Jeroen van Wolffelaar
5541451085
Add test for array_search and in_array
...
(should be expanded though)
2001-10-05 22:01:04 +00:00
Jeroen van Wolffelaar
62feefddc7
Fix array_search and in_array. Now binary safe, and faster (returns when
...
found, and doesn't duplicate the key each time, but only when necessary)
Patch also by Edin Kadribasic
2001-10-05 21:58:41 +00:00
Jeroen van Wolffelaar
89ea50a588
Fix bug 13567 and don't depend on a boolean int-value to be either 1 or 0
2001-10-05 20:14:33 +00:00
Edin Kadribasic
e78b61542d
Added array_change_key_case() function that returns array with
...
with all string keys lowercased or uppercased
@- Added array_change_key_case() function that returns array with
@ with all string keys lowercased or uppercased (EdinK)
2001-10-05 18:38:53 +00:00
Derick Rethans
744d1fc1ea
- 'Fix' for bug #13543
2001-10-04 15:25:39 +00:00
Derick Rethans
be52d66f4b
- Fix crashbug in php_chunk_split()
2001-09-27 06:55:23 +00:00
Zeev Suraski
7e42c73a50
Another leak bites the dust?
2001-09-27 00:21:21 +00:00
Derick Rethans
51e2a6b84e
- nl2br now handles different styles of line endings in one string. (Patch
...
by Boian Bonev <boian@bonev.com>)
@- nl2br now handles all styles of line-endings in one string. (Boian,
@ Derick)
2001-09-26 19:34:46 +00:00
Jeroen van Wolffelaar
0916fd50c0
5th and probably/hopefully last run of conv_z_macros
2001-09-26 09:21:58 +00:00
Jeroen van Wolffelaar
6cfba2a3ea
2nd phase in back-substitution those macro's
...
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Derick Rethans
f1ce7daccd
- Fix crash bug (patch by <chocolateboy@lunomail.com>)
2001-09-24 08:33:51 +00:00
Jeroen van Wolffelaar
f61dfce39c
Make chop the alias and rtrim the main function, in order to get automagically
...
generated alias-listings correct.
2001-09-23 18:32:46 +00:00
Jeroen van Wolffelaar
929ae94c64
Let settype also accept 'int', 'bool', 'float' and 'null'
...
@Let settype also accept 'int', 'bool', 'float' and 'null' (Jeroen)
2001-09-22 01:39:14 +00:00
Hartmut Holzgraefe
03f7406711
proto fixes "double" -> "float"
2001-09-21 21:59:27 +00:00
Hartmut Holzgraefe
2c275bf793
renamed doubleval to floatval and made doubleval an alias to floatval
...
made is_float the function entry and is_double the alias
2001-09-21 21:29:14 +00:00
Sascha Schumann
4582d38519
Fix warning on Win32 (thanks to Sebastian)
2001-09-21 17:21:50 +00:00
Sascha Schumann
0a8677167d
don't use boyer_str_to_str. It is experimental
2001-09-21 16:17:14 +00:00
Sascha Schumann
9002e37e4e
Always seed the LCG from the request-init hook, otherwise the seed
...
would be shared among the threads which is quite pointless. Also
use a function of the current time as one factor.
Use gettimeofday() instead of time(), because it is faster on some
operating systems.
2001-09-21 13:38:44 +00:00
Sascha Schumann
f45555e62f
Rework some string-to-number and vice-versa functions to work smarter
...
(e.g. without using functions that use slow locales, without allocating
extra memory and with fewer integer/float operations)
2001-09-20 08:22:44 +00:00
Stig Venaas
926d1506e0
Added IPv6 support to gethostbyaddr()
...
@- Added IPv6 support to gethostbyaddr()
@ (Patch by Matthias Wimmer <matthias@charente.de> and venaas)
2001-09-19 18:08:15 +00:00
Sascha Schumann
e261d310a0
quickly fix newly introdued off-by-one
2001-09-19 11:03:58 +00:00
Sascha Schumann
e4ace6cde6
Rewrite _php_match_basetozval to need only one multiplication
...
per iteration and avoid the U?LONG_MAX hassle.
2001-09-19 10:57:50 +00:00
Sterling Hughes
563c0670e5
another attempt at fixing compile warnings...
2001-09-18 20:05:05 +00:00
Sterling Hughes
8092460830
hopefully fix win32 compile warnings
...
# I really wish i had a box to compile php with win32 on
2001-09-18 05:48:49 +00:00
Sterling Hughes
bcb426a207
Merge in qsort changes
2001-09-17 21:02:53 +00:00
Sterling Hughes
97fea0931c
Make rand thread safe when ZTS is defined.
2001-09-16 20:49:57 +00:00
Sterling Hughes
96763e8372
Hopefully fix compile warnings on win32 systems
2001-09-16 17:37:19 +00:00
Sterling Hughes
47f3851a00
for the daft folks that think 0 is a good seed.
2001-09-16 03:50:04 +00:00
Sterling Hughes
373fc12bb1
@ Make the seed options to srand() and mt_srand() optional, if the seed is
...
@ not specified, the generate the most random seed possible. (Sterling)
Please, if anyone has any comments on the way I generate this seed, speak up!
This seems to be the most "random" seed I could come up with...
This commit is 100% backwards compatible :)
Add myself to the authors list cause of recent work on the file
2001-09-16 03:46:59 +00:00
Rui Hirokawa
9c5580c7d4
Added support for japanese encoding to htmlentites() and htmlspecialchars(). @ Added support for japanese encoding to htmlentites() and htmlspecialchars(). (Rui)
2001-09-15 04:48:48 +00:00
Thies C. Arntzen
e929389eeb
fix strtr() when called with two parameters. this has been broken for some time!
...
guys, when "optimizing" functions you _shoudl_ write a testcase for the
working function and make _sure_ that it works afterwards!
2001-09-13 10:48:41 +00:00
foobar
5275b60398
Enable chroot() only if SAPI is CGI.
2001-09-12 02:07:46 +00:00
Sascha Schumann
4c69a970d3
Remove some unused variables
2001-09-11 07:52:55 +00:00
Sascha Schumann
2bbbec107b
A round of "d'ohs" for me, please.
...
We must not stop scanning after finding a "?", because we
need the information regarding the "#".
2001-09-10 11:22:43 +00:00
Zeev Suraski
517bd3018c
Do some justice to the doc team
2001-09-09 23:37:55 +00:00
Sascha Schumann
de963ce9c6
Better fix for mark problem
2001-09-09 14:52:39 +00:00
Sascha Schumann
c86c9f52b4
Fix mark-handling
2001-09-09 14:38:12 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Derick Rethans
61d4f7fe65
- Really fix nl2br now... it's actaulyl faster now
2001-09-09 12:55:48 +00:00
Derick Rethans
176cd90bd7
- Fix for bug 11904
...
#- This is possibly not the best solution... feel free to improve
2001-09-09 11:42:36 +00:00
Sterling Hughes
ff2bc83c08
remove ARG_COUNT(ht)
...
# Is there any reason that the set_compare_func call is passed SORT_STRING
# instead of SORT_REGULAR??
2001-09-09 11:03:31 +00:00
Sterling Hughes
6963ac4050
export the mt rand functions...
2001-09-09 10:44:12 +00:00
Sterling Hughes
25d4500a86
I should really learn how to spell
2001-09-06 08:56:24 +00:00
Sterling Hughes
b7ba9e007d
avoid lowercasing the string
2001-09-06 08:54:54 +00:00
Sterling Hughes
33fc6e2d5f
add missing )
2001-09-06 07:33:45 +00:00
Sterling Hughes
8a156d9a39
fix ms compile warnings
2001-09-06 06:41:16 +00:00
Sterling Hughes
903c831be5
spaces -> tabs work cont.
2001-09-06 00:40:02 +00:00
Sterling Hughes
a4c905ff16
ws fix
2001-09-06 00:18:13 +00:00
Sterling Hughes
a1b11f0755
Fix ts build
...
# I've gotta start compiling --enable-experimental-zts... anyway we can make
# this the default when compiling from cvs? It'll help a large portion of
# compile issues with patches
2001-09-05 21:46:44 +00:00
Sterling Hughes
e121eaaef5
Straight out da bronx, I be using zend_parse_parameters()
...
# Word out to my peeps on Connor st.
2001-09-05 21:38:49 +00:00
Sterling Hughes
5ec58914fe
stray tabs and spaces
2001-09-05 21:04:30 +00:00
Sterling Hughes
f0c5631778
change range macro semantics
...
# Kinda torn between the two, thoughts?
2001-09-05 20:59:24 +00:00
Sterling Hughes
d930a72cd7
remove inline
2001-09-05 20:56:15 +00:00
Sterling Hughes
1b0f00d67f
a bit of api cleanup... move range stuff into a macro (properly :)
2001-09-05 20:52:45 +00:00
foobar
42b5521af5
revert bad commit.
2001-09-05 19:47:55 +00:00
Sterling Hughes
b9edf7c17c
API Update
2001-09-05 06:55:37 +00:00
Egon Schmid
03fbbb098c
Fixed some protos.
2001-09-04 10:44:28 +00:00
Sterling Hughes
38cacba117
Thanks sebastian
...
# I really like this whole qa team thingy
2001-09-04 10:13:55 +00:00
Sterling Hughes
536c96969b
update php_trim as well...
2001-09-04 09:35:53 +00:00
Sterling Hughes
c661449ebf
fix crash bug
2001-09-04 09:33:30 +00:00
Sterling Hughes
0935217091
fix proto
2001-09-04 06:21:48 +00:00
Sterling Hughes
e55315a375
tabs -> spaces
2001-09-04 06:20:23 +00:00
Sterling Hughes
fe03f6f4c2
Begin cleanup, api wise...
2001-09-04 06:18:11 +00:00
Sterling Hughes
3151916113
pval -> zval
2001-09-04 06:08:42 +00:00
Daniel Beulshausen
9b8886410d
fix zts+win32 build
2001-09-04 02:19:30 +00:00
Sterling Hughes
dda004bcfb
- update to php4 api
...
- expand case statements, ie:
case 1: case 2: case 3:
to
case 1:
case 2:
case 3:
- Remove un-necessary brackets and parentheses (only when it takes away from
readability, I know this is quite arbitrary, but I did my best :)
2001-09-03 23:30:33 +00:00
Andi Gutmans
1ecd31b66c
- Fix thread safe mode.
...
- Please don't use Java style function braces.
2001-09-03 20:21:00 +00:00
Derick Rethans
383691eec2
- Fix broken build
...
#- Please test before commit!
2001-09-03 17:38:10 +00:00
Stanislav Malyshev
0a143cf655
Add _php_math_zvaltobase and _php_math_basetozval
...
This allows to use bindec, etc. functions to convert numbers longer
than fits in long, using floats instead.
Note: the functions like decbin still don't use the zval-ed functions,
so they work only on longs yet.
2001-09-03 16:26:31 +00:00
Jeroen van Wolffelaar
dc8386e30d
Removed outdated comment until I've got a better one
2001-09-03 12:01:50 +00:00
Jeroen van Wolffelaar
efb83df9f9
Kill some warnings/errors (reported by Sebastian, more to come, but
...
could take some time. Update of ZTS-builderrors is welcome)
2001-09-03 11:57:15 +00:00
Sterling Hughes
79c27f0cd2
should be this
2001-09-03 08:47:45 +00:00
Sterling Hughes
b417b96fb8
- Update to the PHP4 API (newer macros)
...
- Improve error reporting from split()
- Some minor speed improvements
2001-09-03 08:44:02 +00:00
Sterling Hughes
f6d73d73fb
stray tabs
2001-09-03 06:10:45 +00:00
Sterling Hughes
f14ada19ac
cleanup sscanf() just a tiny bit, just so it looks like the rest of the code
...
in the string.c file.
2001-09-03 04:49:36 +00:00
Jeroen van Wolffelaar
0cb6a31906
Fix array_rand and array_suffle to use php_rand correctly
2001-09-03 01:54:04 +00:00
Jeroen van Wolffelaar
b0300e26df
Fix prototype
2001-09-03 01:46:03 +00:00
Jeroen van Wolffelaar
72c7ae080b
Fix SIGSEGV because HAS_SRAND didn't check wether the entry existed at
...
all
2001-09-03 01:25:24 +00:00
Jeroen van Wolffelaar
1a68fe49cb
Add forgotten files to MAIN
2001-09-03 01:10:29 +00:00
Jeroen van Wolffelaar
92f1248a49
Update credits
2001-09-03 01:09:35 +00:00
Jeroen van Wolffelaar
f7306ce010
Merge RAND_REDESIGN into MAIN
2001-09-03 01:06:23 +00:00
Andrei Zmievski
392e1edee8
@- Made in_array() and search_array() allow the needle to be an array in
...
@ itself. (Andrei)
2001-08-31 04:52:10 +00:00
foobar
d340c5b2bf
@- Added ini_get_all() function which returns all registered ini entries
...
or the entries for the specified extension. (Jani)
2001-08-30 17:47:04 +00:00
foobar
5dd2b6e2fd
According to Zeev this code is just for showing how to create overloaded classes.
2001-08-29 23:53:22 +00:00
foobar
08a521572f
WS fixes and indenting.
2001-08-29 16:00:30 +00:00
Rasmus Lerdorf
563ffb8984
Kill a warning
2001-08-28 21:50:37 +00:00
Zeev Suraski
b781720b36
More fixes and refinements
2001-08-27 00:23:55 +00:00
Zeev Suraski
d697a558ac
Fix my session updates.
...
trans_sid handling will no longer slow down performance unless a session
is actually in use.
2001-08-26 11:49:43 +00:00
Zeev Suraski
7b73aee40f
Make the session module more independent
2001-08-26 01:09:20 +00:00
Zeev Suraski
b8763a6f8c
Get rid of TRANS_SID - it's always possible to use it now.
2001-08-25 16:09:23 +00:00
Zeev Suraski
13ff183225
Move the trans-sid mechanism to use the output buffering mechanism.
...
Advantages:
- Would work with the output buffering mechanism in general, and with
output compression in particular
- Should yield better performance (untested as of yet)
2001-08-25 15:57:42 +00:00
Wez Furlong
9e7da02d3b
Fix htmlspecialchars problem.
2001-08-24 08:58:10 +00:00
Andrei Zmievski
cae9763d0a
@- Fixed a crash bug in array_map() if the input arrays had string or
...
@ non-sequential keys. Also modified it so that if a single array is passed,
@ its keys are preserved in the resulting array. (Andrei)
2001-08-24 02:58:23 +00:00
John Donagher
faa5031f25
Don't try and search a 0-length string. This allows parse_url() to correctly
...
parse a non-pathed URI, i.e. 'scheme://'
2001-08-24 02:21:16 +00:00
Wez Furlong
f20e9fa298
- Add support for chinese encodings to htmlentities/htmlspecialchars
...
(patch from Alan Knowles <alan_k@hklc.com>)
2001-08-23 10:43:15 +00:00
Jeroen van Wolffelaar
3e62bd0867
Reverted the patch to main branch - should have branched whole
...
ext/standard...
2001-08-22 22:14:08 +00:00
Jeroen van Wolffelaar
43c2bc364f
Commit forgotten fix in crypt.c, oversight of a BC-problem
2001-08-22 22:11:57 +00:00
Gavin Sherry
bd4150ed80
Fixed buffer overflow issue.
2001-08-22 05:47:11 +00:00
Gavin Sherry
ff7a694e0f
Changed php_strip_tags() to check if <? was XML code.
2001-08-22 02:03:14 +00:00
Joey Smith
1c10503029
Hmmm...not sure what this was trying to do. stat() was acting like filesize().
2001-08-21 23:58:19 +00:00
Zeev Suraski
e140b35b04
API update
2001-08-21 12:57:53 +00:00
Sascha Schumann
01672af8f0
Improved fix
2001-08-20 15:27:45 +00:00
Stanislav Malyshev
902100a692
Fix long printing in smart_str_print_long
2001-08-20 15:26:10 +00:00
Stanislav Malyshev
8fd65b9f16
test big numbers too
2001-08-20 14:15:05 +00:00
foobar
d3aff0f6ee
make this test work.
2001-08-18 16:47:02 +00:00
Sterling Hughes
807b49aa2f
K&R format changes
2001-08-18 08:43:47 +00:00
Sterling Hughes
03724a70e9
Z_*_P{0,2} macro work.
2001-08-17 09:10:49 +00:00
Sterling Hughes
c53f80fb23
1) update to the ZEND_NUM_ARGS() and Z_*_P{0,2} macros
...
2) minor ws improvements, removing unecessary error checking logic, and
making the error messages a bit nicer looking
2001-08-17 09:08:03 +00:00
Sterling Hughes
06aa7a4d19
Cleanup of var_dump() with correct macro's, k&r indent, and removal of a
...
pair of unnecessary { }
2001-08-17 07:50:15 +00:00
Sterling Hughes
844788a4b8
pval -> zval
...
Z_*_P{0,2} macros
easier way of doing urldecode(), from rawurldecode() (a tad faster too).
2001-08-17 07:41:20 +00:00
Sterling Hughes
591aba3c89
ws fix.
2001-08-17 07:07:34 +00:00
Sterling Hughes
6bc04c0858
Clean up the function for the Zend API (php3, early php4 relics removed).
...
Use PF_INET, instead of AF_INET, if present.
remove some code enclosed in #if 0 ... #endif that made no sense
2001-08-17 06:53:26 +00:00
Zeev Suraski
2d8ca548e2
Fix build
2001-08-15 22:49:15 +00:00
foobar
3cc6655f3a
Add the build time too. Bug: #12774
2001-08-15 22:37:31 +00:00
Jeroen van Wolffelaar
2b6bafb269
Remove cbrt also, and mark logm1 and exp1p as expermintal
2001-08-15 19:08:59 +00:00
Jeroen van Wolffelaar
d62fbbd5a8
MF407
2001-08-15 19:01:32 +00:00
Sterling Hughes
8300abe367
Removed select(), fd_set(), etc. (wasn't present in the first place, and
...
these are implemented in the sockwasn't present in the first place, and
these are implemented in the sockets extension))
2001-08-15 05:21:43 +00:00
Andi Gutmans
4580df1080
- This code looks OK so remove FIXME comment
2001-08-14 17:43:39 +00:00
Zeev Suraski
0116a7b911
Fix crashes in parse_parameters calls
...
HEADS UP: Make sure you supply TSRMLS_CC for this function!
I'll try to think of a way that'd allow us to find this issue using
the compiler.
2001-08-13 19:31:18 +00:00
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
...
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
5b2227ea80
Oops, a little too much simplification there.. ;)
2001-08-13 07:28:57 +00:00
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
...
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
Zeev Suraski
49e45baf9b
- Fix API
...
- Update NEWS
2001-08-13 00:32:04 +00:00
Zeev Suraski
35de326b0e
Compile fix for oldie Linux systems (possibly others too)
2001-08-12 21:23:15 +00:00
Zeev Suraski
c0404f4631
Whitespace
2001-08-11 17:03:37 +00:00
Wez Furlong
831f05b0fb
Fix some build probs on *bsd
2001-08-10 18:02:59 +00:00
foobar
52e3b4a44f
Cleanup. Also make gethostnamel() to return FALSE on error and not just empty array.
2001-08-10 02:19:05 +00:00
Zeev Suraski
f47962c7c0
Implement import_request_variables()
2001-08-08 20:05:37 +00:00
Wez Furlong
b00809a322
Fix probs on OpenBSD-current and RedHat 6.1
2001-08-08 20:00:09 +00:00
Zeev Suraski
5eb9495b1b
- Implement $_FORM
...
- Update phpinfo()
- Update NEWS
2001-08-08 17:16:20 +00:00
foobar
001df0d028
Yet another TSRM fix.
2001-08-07 20:13:54 +00:00
Andrei Zmievski
c4555f9f55
@- Added vprintf() and vsprintf() functions that allow passing all arguments
...
@ after format as an array. (Andrei)
2001-08-07 19:44:45 +00:00
foobar
ac28ca9d85
killed a compile warning.
2001-08-07 19:21:19 +00:00
Andrei Zmievski
32440e3051
Fix a couple of leaks.
2001-08-07 16:41:33 +00:00
Thies C. Arntzen
a35df189b8
we can no longer register internal-classes once the script is started.
...
therefore the "incomplete class" is now registered at MINIT time.
2001-08-06 13:36:08 +00:00
Sascha Schumann
23b9300fd1
more tsrm cleanup
2001-08-06 03:50:52 +00:00
Jeroen van Wolffelaar
dce78d75d6
Removed some duplicate code out of addclashes
...
# Not TSRM-safe, I am afraid...
@- addcslashes now warns when charlist is invalid. The returned string
@ remained the same (Jeroen)
2001-08-05 23:08:19 +00:00
Jeroen van Wolffelaar
b3a7b945fa
Fix test
2001-08-05 20:27:24 +00:00
Jeroen van Wolffelaar
ec140f4f67
Bugfix in abs(), abs(LONG_MIN) was bogus
2001-08-05 20:27:03 +00:00
Sebastian Bergmann
b4f31ecef5
Fix ZTS build.
2001-08-05 20:25:40 +00:00
Jeroen van Wolffelaar
2e6850a91d
Added proto for php_charmask in the .h
2001-08-05 20:02:22 +00:00
Jeroen van Wolffelaar
4a01a15fd2
Error-handling for the second parameter of [l|r]trim
2001-08-05 19:38:49 +00:00
Jeroen van Wolffelaar
71a6c03bef
Didn't commit the correct trim.phpt, it now passes
2001-08-05 19:06:34 +00:00
Jeroen van Wolffelaar
860be31cae
More tests
2001-08-05 18:38:48 +00:00
Sascha Schumann
a19563c8dc
more tsrm cleanup
2001-08-05 16:52:29 +00:00
Sascha Schumann
480ffb3d75
more tsrm cleanup
2001-08-05 16:43:57 +00:00
Sascha Schumann
b349df6364
some more eliminate-fetches-or-escalate-them-at-least
2001-08-05 16:21:33 +00:00
Sascha Schumann
373b3e101e
more tsrm cleanup -- output.c is not doing any fetches anymore
2001-08-05 15:55:43 +00:00
Stanislav Malyshev
c7d7834a43
Check that _php_math_basetolong result fits long (by request from Troels Arvin)
2001-08-05 14:40:14 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
foobar
d800a2e16a
- Fixed bug: #10822
...
- CRYPT_SALT_LENGTH is now set to the maximum length the system
supports, like it has been in the documentation for ages.
- The automatic salt is now also working like it should.
2001-08-04 23:58:56 +00:00
Jeroen van Wolffelaar
c105f7142f
Better abs() testing
2001-08-04 21:40:34 +00:00
Jeroen van Wolffelaar
fcf57d371d
Layout: revert accidentel joining of lines
2001-08-04 21:37:43 +00:00
Jeroen van Wolffelaar
2b17cd1982
Named some constants in filestat to improve readability
2001-08-04 21:34:11 +00:00
Jeroen van Wolffelaar
68df8ea465
Another bugfix in pow. Special cases, with 10 times the same thing are
...
_so_ error_prone... :(
2001-08-04 20:58:47 +00:00
Rasmus Lerdorf
7d5999fb4d
Kill a warning
2001-08-04 20:52:35 +00:00
Jeroen van Wolffelaar
b245789bdb
Bugfix. All tests pass now on my system
2001-08-04 18:29:37 +00:00
Jeroen van Wolffelaar
58ee4e47a4
Fix bug in the tests :-(
...
There seems to be one real bug in pow(), I'm trying to fix it...
2001-08-04 18:03:29 +00:00
Thies C. Arntzen
dca5f8dce4
fix serialize:
...
- keys no longer have a trailing \0
- no leak on calling __wakeup (also saved 2* malloc & free)
- serializing objects that implement __sleep() works again
- make test works again:-)
2001-08-04 17:29:54 +00:00
Andrei Zmievski
bffbe675f9
@- Fixed a crash bug in array_map() when NULL callback was passed in. (Andrei)
2001-08-04 16:54:20 +00:00
Thies C. Arntzen
3884b15b95
fix possible crash - we should never keep the zval** as they might point
...
somewhere into the Engine. (there's still a new bug in strtok - hunting;-)
2001-08-04 16:53:57 +00:00
Sean Bright
d789d45a2e
WS Pollution
2001-08-04 13:47:44 +00:00
Jeroen van Wolffelaar
0cf60d749e
Added tests for pow()
...
#The tests near LONG_MAX/MIN fail, I know that
2001-08-04 13:20:31 +00:00
Jeroen van Wolffelaar
8803bbaa80
- A little bit cleaning of pow(), and 12 bytes less memory (wow)
2001-08-04 13:11:17 +00:00
Sean Bright
fff883689e
Don't allocated quoted strings unless we are in a META tag.
2001-08-04 12:36:51 +00:00
Sebastian Bergmann
724b4d409c
Eliminate TSRMLS_FETCH() call.
2001-08-04 05:37:11 +00:00
Sebastian Bergmann
ea79632b29
Fix Win32 (and maybe other ZTS) builds.
2001-08-04 05:22:55 +00:00
Sascha Schumann
c947a0739e
Clean up the serializer by modularizing some of its code. That also
...
enables us to serialize hash indices without creating zvals for them.
Due to its nature, this patch also includes some whitespace changes.
2001-08-04 03:30:38 +00:00
Jeroen van Wolffelaar
dc4adaa231
#- HTML-safe error for pow()
2001-08-03 23:27:23 +00:00
Jeroen van Wolffelaar
b32f1ab299
#- Fix silly bug that caused segfault
2001-08-03 23:10:04 +00:00
Jeroen van Wolffelaar
f0bcaf3901
Un-revert patch
2001-08-03 23:09:05 +00:00
Jeroen van Wolffelaar
f6979a7d2b
Reverting last patch, segfaults.
2001-08-03 22:42:02 +00:00
Jeroen van Wolffelaar
7733d95770
- New pow() function. It now gives warnings on wrong input, and
...
returns integer result when possible
@- New pow() implementation, which returns an integer when possible,
@ and warnings on wrong input (jeroen)
2001-08-03 22:19:11 +00:00
Jeroen van Wolffelaar
c2150f7038
- Added new parameter to [l|r]trim, to specify _what_ to trim
...
@- Added optional second parameter to trim, chop and ltrim. You can
@ now specify which characters to trim (jeroen)
2001-08-03 22:12:46 +00:00
Jeroen van Wolffelaar
49c16290f3
- Fix array_sum to switch to float on overflow. Fixes bug#12505
2001-08-03 19:18:51 +00:00
Sascha Schumann
d6dc2ba6bc
Treat trailing zeroes correctly
2001-08-03 11:09:13 +00:00
Sascha Schumann
723bbcbea0
Do the nul'ifiying of php_var_serialize's result at the right place
2001-08-03 11:00:16 +00:00
Sascha Schumann
f6ed403fde
Don't copy the strtok parameter
2001-08-03 09:50:38 +00:00
Sascha Schumann
84aed3b718
Fix a possible segfault (Thanks to Sebastian for catching it)
2001-08-03 09:36:14 +00:00
Sascha Schumann
3459f05a07
NUL-terminate string
2001-08-03 09:35:33 +00:00
Sascha Schumann
7471943c06
Replace our strtok implementation with a binary-safe one which code
...
does not cause headaches when reading it. Also happens to be a bit quicker.
2001-08-03 08:49:19 +00:00
Sascha Schumann
4dfa91543c
Convert serializer to smart_str.. avoids lots of sprintf's and
...
copying of data.
2001-08-03 07:25:27 +00:00
Zeev Suraski
2ec440078a
Get rid of a couple of bogus persist_alloc()'s, and some cleanup
2001-08-03 07:15:14 +00:00
Frank M. Kromann
2794a0e69a
These new math functions are not supported on Win32
2001-08-01 16:55:24 +00:00
Andrei Zmievski
fa6b5cdde7
- Added a few new math functions from Jesus Castagnetto.
...
- Converted to Z_* macros.
@- Added a few new math functions. (Jesus)
2001-08-01 13:48:14 +00:00
foobar
bad630553b
fix build.
2001-08-01 00:13:02 +00:00
Zeev Suraski
15cb7ca021
Fix some warnings
2001-07-31 23:32:24 +00:00
Zeev Suraski
b1de7fc900
More TSRMLS_FETCH annihilation. Enough for today...
2001-07-31 07:09:49 +00:00
Zeev Suraski
bc42c37513
More TSRMLS_FETCH work. Got it under 400 now.
2001-07-31 06:28:05 +00:00
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
2001-07-31 04:53:54 +00:00
Zeev Suraski
e629be7b5b
Fix a crash bug in assert
2001-07-31 02:59:44 +00:00
Zeev Suraski
9f4c0ae6c0
More TSRMLS_FETCH work
2001-07-30 09:16:46 +00:00
Zeev Suraski
c43806f415
Zend compatibility patch
2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95
More TSRMLS_FETCH work, and a bit of cleanup
2001-07-30 06:18:13 +00:00
Zeev Suraski
b0224d51da
Zend compatibility patch
2001-07-30 05:36:18 +00:00
Zeev Suraski
7b1c400631
More TSRMLS_FETCH annihilation (Zend compatibility patch)
2001-07-30 04:58:07 +00:00
Zeev Suraski
1c25b8dd53
Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way
2001-07-30 01:56:43 +00:00
Andi Gutmans
354f1158d8
*** empty log message ***
2001-07-29 08:40:41 +00:00
Andi Gutmans
442890f3e1
- And more...
2001-07-29 08:20:30 +00:00
Andi Gutmans
b99a590be3
- More object macros
2001-07-29 08:14:29 +00:00
Andi Gutmans
d42f85427a
- Use object macros
2001-07-28 18:40:18 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
...
- Move to the new ts_allocate_id() API
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:16:41 +00:00
Sascha Schumann
d256fbf2b8
Get rid of memchr in SEARCHCR().
2001-07-25 21:06:01 +00:00
Andi Gutmans
afaa0085bb
- MSHUTDOWN needs to return SUCCESS/FAILURE
2001-07-24 03:52:16 +00:00
Thies C. Arntzen
b660a9f553
fix newly introduced mem-leak in assert-module
2001-07-23 16:13:34 +00:00
Sascha Schumann
8492ece5f6
While researching a crash-bug in mail(), I found these two goldies.
...
Replace php_escape_shell_(arg|cmd) with straight-forward implementations.
2001-07-22 21:32:55 +00:00
Rasmus Lerdorf
cc44119bf6
Left-over outdated comment
2001-07-21 15:51:40 +00:00
Zeev Suraski
336004f4bc
Improved bailout mechanism, supports nested bailouts a-la try..catch
...
Note: You may *not* return directly from a catch block
2001-07-21 14:27:56 +00:00
Zeev Suraski
20d53346ce
Remove redundant code
2001-07-21 12:43:23 +00:00
Sascha Schumann
09ce807bf1
Drop memchr() in php_memnstr in favor of manual scanning. This reduces
...
the complexity of the function and is about 20% faster on Linux/x86.
2001-07-21 03:26:31 +00:00
Zeev Suraski
38e5a2077d
Clarify and optimize
2001-07-21 01:15:18 +00:00
Rasmus Lerdorf
bf513871bc
Fix more crashes related to this switch to z_value
2001-07-21 00:14:14 +00:00
Zeev Suraski
11c2acc34a
Retain downwards compatibility - cool idea Jon :)
2001-07-20 17:10:04 +00:00
Zeev Suraski
ef9504cafc
Fix UNIX build
2001-07-20 15:06:51 +00:00
Zeev Suraski
6f297a370a
Fix Windows build
2001-07-20 14:40:30 +00:00
Zeev Suraski
13ac04b8e5
Avoid getting bailouts on text output during shutdown. Text output is now
...
'officially' disabled during shutdown (this doesn't change the Apache module
behavior, but may change behavior of other server modules, in which it was
possible to emit output during shutdown; I think it's a good step towards
consistency, though)
2001-07-20 13:59:00 +00:00
Sascha Schumann
4ebcdd9929
Add optional support for using boyer-moore to str_replace.
2001-07-20 01:22:29 +00:00
Stanislav Malyshev
dfe15ad070
Fix warnings
2001-07-19 08:12:12 +00:00
Sascha Schumann
dcc60b7f4a
The lcg needs to operate on signed 32-bit integers, so use
...
the proper php_int32 types here.
2001-07-18 22:55:52 +00:00
Sascha Schumann
e8fe8f9d99
Provide typedefs for php_int32
2001-07-18 22:54:55 +00:00
Stanislav Malyshev
f0c879bb26
Make variables receiving long be long
...
Fix binary (x,o,b) formats - they should not be signed
2001-07-18 16:48:52 +00:00
Stanislav Malyshev
cdf0532ad3
Make read always 0-terminate strings
2001-07-16 15:44:36 +00:00
Zeev Suraski
2edcf835ed
Update cast
2001-07-15 22:49:25 +00:00
Zeev Suraski
94f5950438
Get rid of var_uninit()
2001-07-15 19:03:04 +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
4e1c65b42b
Fix an inline
2001-07-15 14:08:23 +00:00
Andi Gutmans
fbc8f3f51d
- Faster without calling strlen()
2001-07-14 16:41:58 +00:00
Rasmus Lerdorf
8406c2d682
Fix for bug #11632
2001-07-14 15:08:36 +00:00
James E. Flemer
771e3e498f
o Fixed Bug #12121 : chdir and safe_mode
...
- [ main/safe_mode.h ] added new checkuid mode:
CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check
fails
- [ ext/standard/dir.c ] changed php_checkuid() to use
CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR
- [ main/safe_mode.c ] added code for new checkuid mode
o Fixed Bug #12119 : safe mode owner check can be bypassed with symlink
- [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination
of symlink before trimming filename
o New Feature: safe_mode_include_dir (php.ini directive)
- Allows bypassing UID/GID checks when including files
from the directory in safe_mode_include_dir and its
subdirectories. (safe_mode must be on, directory must
also be in include_path or full path must be used when
including)
o Fixed Feature: safe_mode_gid (php.ini directive)
- Correctly check (and report) UID/GID bits on directories
o Changed include() fall back to scripts cwd implementation
- CWD added to the (local) search path in php_fopen_with_path()
instead of seperate case. [ main/fopen_wrappers.c ]
2001-07-13 18:21:21 +00:00
Thies C. Arntzen
ba17fadbfb
@ - Fixed crash in iptcparse() if the supplied data was bogus. (Thies)
2001-07-13 14:35:05 +00:00
Sascha Schumann
87d99aa93c
Allow extensions to define custom prealloc sizes
2001-07-11 23:13:55 +00:00
Thies C. Arntzen
5676e5ad05
use ZVAL_* macros
2001-07-11 15:27:37 +00:00
Thies C. Arntzen
0ef0f8e32b
ZVAL_BOOL(v,0) -> ZVAL_FALSE(v)
2001-07-11 12:42:25 +00:00
Stanislav Malyshev
adc98200d6
More correct pseudo-fix
...
# This is not really a fix. This thing is still broken. I will think on
# how to really fix it. Any suggestion is *welcome*.
2001-07-11 11:45:05 +00:00
Zeev Suraski
66d94bc655
Nuke zval_reset
2001-07-11 11:39:10 +00:00
Zeev Suraski
d70ce7be27
var_reset -> ZVAL_RESET
2001-07-11 09:39:09 +00:00
Shane Caraveo
ff4dfc56f2
prevent php from crashing when serializing circular data.
...
This script produced the crash.
<?
$hash["test_key"] = "test_value";
$hash["hash_key"] = &$hash;
echo serialize($hash);
?>
2001-07-11 05:57:18 +00:00
Rasmus Lerdorf
45d71e2951
Make range() function smarter
...
@ - Improve range() function to support range('a','z') and range(9,0)
@ types of ranges. (Rasmus)
2001-07-09 20:36:47 +00:00
Andrei Zmievski
f42519ffbd
*** empty log message ***
2001-07-09 18:54:59 +00:00
Sascha Schumann
aee2ff3ec9
__USE_GNU should not be defined by an application.
2001-07-09 17:44:07 +00:00
Rasmus Lerdorf
934e10c7dc
Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
...
a gid check instead of a uid check.
@ - Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
@ a gid check instead of a uid check. (James E. Flemer, Rasmus)
2001-07-09 17:36:04 +00:00
Derick Rethans
9869ecc9b7
- Added php_escape_shell_arg to the header file
2001-07-09 17:02:50 +00:00
Thies C. Arntzen
61822fcd47
@ - assert() now accepts the array(&$obj,"methodname") syntax. (Thies)
...
+ some cleanups
2001-07-09 10:20:41 +00:00
Thies C. Arntzen
e7b01fc53c
added test for assert
2001-07-09 09:08:14 +00:00
Thies C. Arntzen
08546ef0e8
changed to use Z_* macros
2001-07-09 09:04:19 +00:00
Thies C. Arntzen
1be0975dff
added test for serialize
...
changed var.c to use Z_* macros
2001-07-09 09:03:06 +00:00
Sascha Schumann
28efce4019
Reset strtok_string, so that strtok can be used in all session handler
...
functions.
2001-07-08 23:28:48 +00:00
Shane Caraveo
fd2c27c061
Enable using an external mailer under windows.
...
1. this depends on the patch to fix tsrm I sent to dev
2. this provides backwards compatibility, as long as sendmail_path in the ini file is empty, the old internal mailer will be used, once sendmail_path is defined, the external sendmail program will be used.
I tested with indigomail from www.indigostar.com, which provides the same command line interface as sendmail no linux.
2001-07-08 22:30:11 +00:00
Sascha Schumann
69d129bdfb
Needed for the prototype of php_escape_shell_cmd().
2001-07-08 19:09:59 +00:00
Sean Bright
9d05cba6b8
This should be lower-cased per the documentation and previous
...
implementation.
2001-07-05 23:29:11 +00:00
Wez Furlong
4948cb1691
More ifdefs, just in case.
2001-07-05 10:53:15 +00:00
Wez Furlong
ca9c4b3753
Added loads of #ifdefs; should fix Bug #11889 .
2001-07-05 10:49:58 +00:00
Derick Rethans
832fe2e636
- Fix for the first part of Bug #11890
...
@- Fixed a bug that allowed users to spawn processes while using the 5th
@ parameter to mail(). (Derick)
2001-07-05 08:47:37 +00:00
Jason Greene
e48bc17c58
Fix build on linux
...
Heads up Wez
2001-07-05 07:12:28 +00:00
Sascha Schumann
ef13ab5750
Improve url scanner speed (up to 40% for large chunks of data)
...
and handle some corner cases better. The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Wez Furlong
f1364ebf3e
(PHP nl_langinfo) Added function when provided by OS
...
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
2001-07-04 10:10:30 +00:00
Zeev Suraski
551f1831a7
Fix a major thread safety bug in the output mechanism
...
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
2001-07-02 18:17:10 +00:00
Derick Rethans
91424b2b91
- Fixed proto's (Patch by Zak)
2001-07-02 11:11:58 +00:00
Daniel Beulshausen
4aa6ae493e
PHPAPI-ize php_var_* functions
...
# need this for shm*
2001-07-01 20:18:51 +00:00
Sean Bright
55fecbab76
Remove unused variable.
2001-07-01 14:07:44 +00:00
Sean Bright
1b0356e0f7
Fix for bug #11796 . Also, fixed a problem in get_meta_tags that required
...
NAME and CONTENT to be in that order. Meta tags with no CONTENT attribute
are now added to the array as empty strings. Meta tags with no NAME
attribute are ignored.
2001-06-30 20:07:12 +00:00
Zeev Suraski
f35b85b4c1
Fix bug #11678
2001-06-26 18:30:31 +00:00
Zeev Suraski
49d1e26143
Fix Win32 build
2001-06-26 13:33:24 +00:00
Hartmut Holzgraefe
045acafc52
@added optional suffix removal parameter to basename() (Hartmut)
...
added optional suffix removal parameter to basename()
this makes it more simmilar to the basename command
2001-06-23 00:51:03 +00:00
Sascha Schumann
6558ae6f21
dup fds before fdopen'ing them, so that people cannot deliberately
...
close stdio streams.
This needs to be tested on non-UNIX platforms.
PR: #11599 , #8624
2001-06-22 07:07:48 +00:00
Thies C. Arntzen
bd4f32cf12
- fixed the reference in session thingie
...
- regression test checked (this time;-)
- added new regression test for references
- references _between_ session variables also work in when the session var
replaces an already existing global var (this was a brain twister)
- saved one strlen call per session variable
- fixed one tiny leak
2001-06-21 18:46:26 +00:00
Sascha Schumann
d6d59a9ee5
1. st_blksize might be different for regular files and symlinks; hence
...
ignore differences in the twelfth element of the stat() array.
2. The 'test.file' is created by the script, thus the owner of the file
is the user id executing the script. A mode of 0654 does not grant
the owner the right to execute the file and therefore, the correct
output here is "not executable."
2001-06-21 11:15:38 +00:00
Colin Viebrock
a367c39c2e
date('W') now returns week of year (ISO 8601)
2001-06-20 18:07:53 +00:00
Thies C. Arntzen
03ae0d775b
add PLS_FETCH();
2001-06-20 15:46:47 +00:00
Rasmus Lerdorf
94897efc36
Fix for #11570
2001-06-20 14:47:26 +00:00
Andi Gutmans
c977f29862
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
2001-06-19 16:03:35 +00:00
Sebastian Bergmann
e4f109b69f
Finish phpinfo() HTML 4.01 tweaking.
2001-06-19 15:21:28 +00:00
Sebastian Bergmann
615cf785c1
Fix crash bug in urlencode().
2001-06-19 15:20:50 +00:00
Sebastian Bergmann
499334e498
Make output of phpinfo() compliant with HTML 4.01.
2001-06-15 18:34:09 +00:00
Stanislav Malyshev
5ad3d2828f
Fix potential crash
2001-06-14 15:36:10 +00:00
Daniel Beulshausen
e4a2620d80
update credits
2001-06-14 10:05:41 +00:00
Zeev Suraski
1093ed17fb
Clean-up
...
Remove a lot of 100% redundent code
2001-06-13 17:04:36 +00:00
Daniel Beulshausen
491fcd2ef8
used in extension(s) as well
2001-06-11 15:18:44 +00:00
Daniel Beulshausen
c6b4e55838
PHPAPIize url function to make them available to the outside (i.e. mbstring)
2001-06-11 15:14:04 +00:00