Commit Graph

6310 Commits

Author SHA1 Message Date
Derick Rethans
d716e02a98 - Fix for bug #12383 and #14755: 105.05$ becomes 105.5$ (Patch by: Giancarlo
Niccolai <giancarlo@niccolai.org>)
2002-03-06 19:54:47 +00:00
James E. Flemer
01505de0b1 (PHP opendir) Changed CHECKUID_ALLOW_ONLY_DIR to CHECKUID_ALLOW_ONLY_FILE
so that relative paths (vs absolute) work correctly.
2002-03-06 18:31:33 +00:00
Marcus Boerger
3dc95db8b7 -updated test to reflect third parameter of exif_read_data 2002-03-06 18:21:50 +00:00
Marcus Boerger
0b5759f7bf -missing efree
-incorrect index/length computing: left from jhead
#no errors left with test files - controlled manually with hexeditor
2002-03-06 18:11:57 +00:00
Dan Kalowsky
86ca867930 quelling a warning, and ensuring now undefined behavior 2002-03-06 16:15:28 +00:00
Dan Kalowsky
160fe54bab When #if BLAHING a section, ensure to make it's prototype included. Returns
build capability to MacOSX.
2002-03-06 16:14:00 +00:00
Derick Rethans
f3d1ae176f - Add 'appname' parameter to sybase_connect. (Patch by Christophe Sollet
<csollet@coleebris.com>)
2002-03-06 15:59:57 +00:00
Sascha Schumann
b5660126d0 Do the estrdups after checking for parameter constraints.
No real memory leaks though, because they are catched by the
memory manager.
2002-03-06 12:34:47 +00:00
Sascha Schumann
0c69739feb Did not revert back enough.
This patch does not make sense, because it enforces the existence
of a single directory.
2002-03-06 12:25:01 +00:00
Sascha Schumann
0bf5fc14be SID shall be defined to name=id, if the client did not supply
a cookie.
2002-03-06 12:12:39 +00:00
Sascha Schumann
8141c7761c Merge in session API changes (carry around tsrm context)
Now PHP_SESSION_API is defined to the date of the last change,
so that externa source-code can handle changes more gracefully.
2002-03-06 11:49:51 +00:00
Sascha Schumann
398b1011dc Always initialize the track-vars 2002-03-06 11:41:17 +00:00
Derick Rethans
2f04af4402 - More ZTS fixes 2002-03-06 11:26:05 +00:00
Derick Rethans
79330dc592 - Fix build with ZTS 2002-03-06 11:20:11 +00:00
Marcus Boerger
efddda3d6d -updated test 2002-03-06 09:32:02 +00:00
Marcus Boerger
0ecd2f0876 -new working thumbnail code
-everything uses new data structures
-new function exif_thumbnail
#nearly stripped off all jhead code
@read_exif_data is now an alias for exif_read_data
@  important to differenciate old/new version for tests)
@new function exif_tagname returns the names of tags
@new function exif_thumbnail extracts embedded thumbnail (Marcus)
#switched to internal version 1.2
2002-03-06 09:31:32 +00:00
Sascha Schumann
ca59cb7cf9 Weep out all recent commits of Yasuo.
I don't have time right now to leave in the good ones and remove
only the bad ones.

There are some semantical changes which I reject, because
they aim at fixing a bug which is at a completely other location.

Then SID does not gefined anymore properly. (This broken patch
has not been sent to me at all.)

Also, there were *so* many whitespace changes which already
make these commits bogus.
2002-03-06 09:02:31 +00:00
Yasuo Ohgaki
d36ddb5a9f Fixed typo :) 2002-03-06 09:01:13 +00:00
Yasuo Ohgaki
ae3edadca6 Use static mm file save path. Now we can safely stop web server at start up when there is an error. Older mm uses static mm file path anyway. 2002-03-06 08:54:55 +00:00
Yasuo Ohgaki
0010418ea7 Fix crash bug #14232 2002-03-06 07:49:49 +00:00
Yasuo Ohgaki
da977f8251 Make php start even with wrong save_path. 2002-03-06 06:29:43 +00:00
Jason Greene
e228b16885 Socket Rework Patch 2
Redesigned socket_recv() as outlined on php-dev
Modified socket_last_error() to no longer clear the error
Added socket_clear_error()
Fixed socket_set_nonblock()
Added socket_set_block()
Fixed a proto
Saved 1 byte of RAM : )
2002-03-06 05:21:56 +00:00
Yasuo Ohgaki
92facba86f Oops. Fix compile failure 2002-03-06 00:42:39 +00:00
Yasuo Ohgaki
a2fecc2d79 Using session_save_path() after starting session is obvious error.
Riase E_NOTICE error instead of E_WARNING. Since it is valid if
user uses session_save_path() with session_module_name().
2002-03-06 00:40:42 +00:00
Yasuo Ohgaki
09e6133e84 Return FALSE when session_module_name() failed. Fix a little leak. 2002-03-06 00:34:57 +00:00
Yasuo Ohgaki
b17fd60310 Raise error when session module failed to open or read 2002-03-06 00:26:38 +00:00
Yasuo Ohgaki
782462a4ca More TSRM work 2002-03-06 00:12:48 +00:00
Yasuo Ohgaki
4042334882 Remove TSRMLS_FETCH() and use TSRMLS_C/TSRMLS_D
# Need a little more work for backword compatibility
2002-03-06 00:05:21 +00:00
Yasuo Ohgaki
bc383c2eab Fixed crash with mm save handler 2002-03-05 23:45:50 +00:00
Yasuo Ohgaki
d809d046df Fix bug #15322 and fix a little memory leak 2002-03-05 23:37:00 +00:00
Zeev Suraski
1c3c40a339 Make $_SESSION and $HTTP_SESSION_VARS links to each other 2002-03-05 22:06:35 +00:00
Marcus Boerger
088450efce -fixes
-changed internal data structures
#nearly stripped off all jhead code
2002-03-05 19:47:19 +00:00
Dan Kalowsky
af4b22ceb5 Breaking BC, but making odbc_fetch_into behavior more consistent 2002-03-05 16:45:02 +00:00
Markus Fischer
003bb8c2b4 - Introduced posix_errno() (get error number from last error message) and
posix_strerror() (convert error number into error string).

- Do not output any error message if any of the function fails with FALSE
  return value. The proper way now is to call posix_errno() and
  posix_strerror() after encountering an error condition.

- Function not support on a system no longer issue a 'not available' error
  but simply don't exist so we can safely use 'function_exists'.

- Fixed protos.

- Use new parameter parsing API.

- posix_uname() may be aware of 'domainname' (GNU extension)

- posix_getgrnam(), posix_getgrgid(): the returned information does no
  longer contains mixture of string and numbered keys (hash / array)
  but contains key 'member' with an array of all members in a list
  (or an empty array). This breaks BC but is the right thing IMHO.
2002-03-05 16:04:04 +00:00
Derick Rethans
eeeb95595f - More test fixes 2002-03-05 09:02:02 +00:00
Derick Rethans
39225a22b8 - Fix tests to work with CLI
#- Not totally done, but this makes it a lot better
2002-03-05 09:00:56 +00:00
Derick Rethans
9354703d9d - Fix mcrypt tests 2002-03-05 08:24:21 +00:00
Dan Kalowsky
1e0ee7b1b5 Added a comment for future reference 2002-03-05 06:15:01 +00:00
Jason Greene
7d7b1ae9b5 Style Improvement 2002-03-05 03:45:23 +00:00
Frank M. Kromann
5f4fe6255e Killing compiler warning 2002-03-05 00:28:20 +00:00
Frank M. Kromann
68caa64328 Making dbase compule under WIn32 2002-03-05 00:28:07 +00:00
Dan Kalowsky
a3010a9b8f Fix for Bug 14423. Enables FreeBSD to use iconv functionality. 2002-03-04 23:28:17 +00:00
Marcus Boerger
ce4bf31268 - also test TIFF support in GetImageSize 2002-03-04 23:20:48 +00:00
Marcus Boerger
6b2a074330 - Read IsColor for TIFF 2002-03-04 23:19:27 +00:00
Sascha Schumann
e991374db6 Add apparently missing include 2002-03-04 20:14:52 +00:00
Sascha Schumann
b4d5aa5c50 Supply php_html_puts which escapes a whole string.. now fully works in ZTS
mode, too.
2002-03-04 18:46:55 +00:00
Sebastian Bergmann
f79e39cf56 Silence warning. 2002-03-04 18:21:43 +00:00
Sascha Schumann
316a03ca17 revert last commit, puts does more through putc. 2002-03-04 18:12:55 +00:00
Sascha Schumann
42bd356be8 Use PHPWRITE to output data. Because this just outputs diagnostic
information, a few spaces won't hurt (and multiple ones are rendered
as one by browsers anyway).  Micro-benchmarks which use phpinfo()
as a mean to generate output will yield more through-put now
(35 req/s vs. 83 req/s in tux).
2002-03-04 17:48:20 +00:00
Marcus Boerger
d95f691e3f - TIFF support for GetImageSize
@ TIFF support for GetImageSize (Marcus)
2002-03-04 17:17:41 +00:00
Marcus Boerger
a7403576e1 - disabled debug information
- added missing width/height from primary ifd for TIFF
2002-03-04 17:09:24 +00:00
James Cox
c63843eb29 typos suck. 2002-03-04 17:09:09 +00:00
Jason Greene
c6c7380d88 Style mismatch: Jon's catch 2002-03-04 15:02:23 +00:00
Stanislav Malyshev
800e8af417 cygwin fix 2002-03-04 11:11:25 +00:00
Jon Parise
9d43b9ecf5 Silence warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0). 2002-03-04 11:03:19 +00:00
Marcus Boerger
be5908b06c -addition to last change: php_image.h must be included now 2002-03-04 09:29:06 +00:00
James Cox
0c78c87f34 Changing the Velocis extension to now be called Birdstep, due to a product/company change.
added aliases for Velocis to the birdstep functions.
# testing is both advised and encouraged!
@ The Velocis extension is no
2002-03-04 09:10:32 +00:00
Sascha Schumann
cd5f8608e2 Restore use of inline 2002-03-04 08:37:44 +00:00
Rasmus Lerdorf
83e6dbcf19 Let getimagesize() and read_exif_data() share the same constants to
promote a little bit of code reuse here on two very similar problems.
2002-03-04 07:21:30 +00:00
Marcus Boerger
9c8ad6614f -Updated test.txt and provided test.php
# simply including test.txt
@Added test.php/txt to have a possibility to check ext/exif
@(Marcus)
2002-03-04 06:26:07 +00:00
Marcus Boerger
642ab24df1 -Added TIFF support
-Changed parameters after checking bugdatabase and discussion with
    Rasmus: 1st=Filename, 2nd=NeededSections
# 3rd=Thumbnail, 4th=All
#   3rd and 4th parameter are currently diabled because the code
#   does not work correctly (will correct this in later versions).
#   Changing the parameters will not cause any problems because the
#   old parameter functions never found their way in documentation
#   and the they did not work...
@-Added TIFF support
@-Changed parameters after checking bugdatabase and discussion with Rasmus
@    1st=Filename, 2nd=NeededSections
@    If the 2nd parameter is not present or 0 or '' the function will return
@        a result array even if no data was read from file.
#        Personally i consider a default behaviour to generate no array if
#        no data is present as a bad idea because here we can generate as
#        much information as possible....
@    If the 2nd parameter is a string then that string describes which
@        sections have to be present in the file to generate a result array.
@        If none of the needed section is found the result will be false.
@        Section strings are "ANY_TAG","IFD0","COMMENT","EXIF","GPS","INTEROP"
@        "FPIX","APP12". Each string has to be separated by a colon. So
@        "COMMENT,EXIF" returns an array if either a comment or an Exif
@        section is present. "IFD0" is standard datastructure in a TIFF/JPEG
@        file that contains image information. "EXIF" is the Exif structure
@        of TIFF/JPEG (IFD0 subdirectory). "GPS", "INTEROP", "FPIX", "APP12"
@        are additional IFD0 subdirectories. The APP12 support is an
@		 experimental Olympus support.
#        Do not worry this is no problem, it is safe.
@(Marcus)
2002-03-04 06:21:58 +00:00
Jason Greene
03baef7a3d Patch 1 of 3 (2 in 3 still in progress) of sockets rework
Abstracted string -> ipv4 value conversion which unifies all functions
Standardized Host Lookups
Fixed Broken host error values
Fixed error detection in sendmsg
Added some safety struct zeroing
Modified bind to consitentlyy use sockaddr_storage(not just for AF_UNIX)
#Note this could potentially break the build on other platforms, as I have
#not tested them yet (Will soon though)
2002-03-04 05:27:04 +00:00
James E. Flemer
787ce372b9 (PHP opendir) Added safe_mode checks on path.
@- Added safe_mode checks for opendir(). (jflemer)
2002-03-03 20:46:57 +00:00
Derick Rethans
bc7e0b5512 - Make the 2nd parameter to pgsql_fetch_* support NULL in case 3 parameters
are supplied, but you do not want to provide a row number yourself.
@- Make the 2nd parameter to pgsql_fetch_* support NULL in case 3
@  parameters are supplied, but you do not want to provide a row number
@  yourself. (Derick)
2002-03-02 19:53:11 +00:00
Hartmut Holzgraefe
547b25fd13 php has no 'double', only 'float' 2002-03-02 17:08:09 +00:00
Hartmut Holzgraefe
0558bc5b1c tab/space mixture cleand up,
editor config comments added,
minor proto fixes
2002-03-02 16:49:06 +00:00
Hartmut Holzgraefe
bff90c71c1 typo fix 2002-03-02 16:41:55 +00:00
Zeev Suraski
7c3763d056 Fix another crash bug 2002-03-02 15:59:16 +00:00
Hartmut Holzgraefe
7c655ad471 enable ctype functions by default 2002-03-02 15:44:08 +00:00
Marcus Boerger
442773abb3 Wrong brackets by rasmus...but sorry the fault was mine because i missed them...
i also decided to call the first working version 1.0a

by the way: currently i am working on tiff files and it looks like it may work
2002-03-02 15:43:19 +00:00
Zeev Suraski
8ffc0e192f Fix a crash bug in the session module 2002-03-02 14:18:45 +00:00
Derick Rethans
6f9c7bcf21 - Fix warning message for join(). 2002-03-02 14:06:57 +00:00
Derick Rethans
80ac68cc59 - Fix CREDITS files 2002-03-02 13:44:08 +00:00
Derick Rethans
d5fee0cb0c - Make GD functions only available if they really exist (Patch by
matslin@orakel.ntnu.no)
2002-03-02 12:32:31 +00:00
Yasuo Ohgaki
7ce7a73095 Add mbstring tests 2002-03-02 10:44:57 +00:00
Rasmus Lerdorf
15ba6402bd Fix a couple of warnings 2002-03-02 08:37:28 +00:00
Yasuo Ohgaki
9981d06217 Improved iconv usage with libc's iconv. No overrun. More efficient memory
allocation.
Hopefully, all bugs reported for iconv will be resolved when users are using
libc iconv.
@Improved iconv with libc's iconv
2002-03-02 07:04:59 +00:00
Yasuo Ohgaki
cdedece154 Add more tests for iconv 2002-03-02 07:00:40 +00:00
Derick Rethans
8b5411b938 - Fix for Sun WorkShop 6 update 2 compiler (Bug #15812) 2002-03-01 16:52:16 +00:00
Derick Rethans
6f6c4ec7c7 - Add support for returning NULL values from Interbase resultsets (Patch by
Daniela Mariaschi <mariaschi@libero.it>)
2002-03-01 14:03:10 +00:00
Yasuo Ohgaki
5fa8b2087f Fix compiler warnings and header file path. 2002-03-01 12:01:53 +00:00
Zeev Suraski
bb685a402f Fix php_splice() to work with large values 2002-03-01 12:00:05 +00:00
Yasuo Ohgaki
6ecd17100e Update doc 2002-03-01 11:52:04 +00:00
Marcus Boerger
0857bdbcde +Support for Photographer/Editor Copyright as associative array as this is a new feature the change (optionally being an array) has to be mentioned in documentation.
+New function exif_headername can be used to read the internal Tag namelist (was mainly created for debugging purpose but maybe somone writes code to create/update exif headers here).
+An internal version number is present.
+A testpage is supplied test.txt describes how the test works.
+The oldfunction read_exif_data has got an alias exif_read_data

As the old version of this module is very buggy i decided to implement the testpage (test.txt) and to create the alias. The test script only works with the alias as the old version does not pass tests. By the way it seems a good way to prepend 'exif_' to all functions in the module.
2002-03-01 04:01:26 +00:00
Yasuo Ohgaki
d5412f3952 Fix compiler warnings 2002-03-01 03:31:01 +00:00
Yasuo Ohgaki
82a8d372e5 Added ob_get_status() to get array of buffers and it's status.
(DO NOT document this function yet)

Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
buffers that may not be deleted.

php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for
if the buffer created may be deleted or not.

Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
deleted until script finshes.

Changed ob_*() function that have void return type to bool. All ob_*()
functions return TRUE for success, FALSE for failure.

@ - Added ob_get_status() to get array of buffers and it's status. (Yasuo)
@ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
@   buffers that may not be deleted. (Yasuo)
@ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
@   deleted until script finshes. (Yasuo)
@ - Changed ob_*() function that have void return type to bool. All ob_*()
@   functions return TRUE for success, FALSE for failure. (Yasuo)
2002-03-01 03:05:50 +00:00
foobar
77a9678496 - Fixed a typo. (caught by jtate@php.net) 2002-02-28 23:25:18 +00:00
Rasmus Lerdorf
38b3e061a7 Change fatal errors to warnings - fix bug #15797 2002-02-28 23:08:48 +00:00
Derick Rethans
27c4648010 - Make it a boolean 2002-02-28 16:00:26 +00:00
Brad House
e7084cecd0 Fix proto for mcve_initconn 2002-02-28 14:58:48 +00:00
Marc Boeren
299bd20df4 Updating docs (Mc) 2002-02-28 14:44:27 +00:00
Marcus Boerger
05b13da525 Changed file to match CODING_STANDARDS except function names that match jhead.c project. I think it is acceptable using naming conventions of other projects when borrowing code. 2002-02-28 12:20:17 +00:00
Yasuo Ohgaki
83059ae3de Use {NULL, NULL, NULL} to terminate function entry.
# It does not fix any bugs, since {0} works also.
2002-02-28 12:10:36 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Sebastian Bergmann
7d983e5faf Fix headers. 2002-02-28 06:26:50 +00:00
Yasuo Ohgaki
98861da887 Fix iconv. Patch by (itai@siftology.com) 2002-02-28 03:09:01 +00:00
Marcus Boerger
98ebd1c28b +Added UNICODE support for Comments
+Added Description,Artist
+Added missing memory deallocation
+Corrected error with multiple comments
+Corrected handling of ExifVersion, Tag has 4 ASCII characters *WITHOUT* NUL
+Corrected handling of Thumbnailsize if current source detects size < 0
+Changed all fields to char* that do not have a maximum length in EXIF standard
+Undocumented second Parameter ReadAll frees memory to early -> moved to third position default changed to false -> faster
+New second Parameter [true|false] to specify whether or not to to read thumbnails -> reading is timeconsumpting suppose default should be false -> done so
2002-02-28 01:16:27 +00:00
Brad House
20219b1e24 Initial MCVE extension added (Credit Card Processing) 2002-02-27 19:46:59 +00:00
Andrei Zmievski
313a3602bb This has been scaring people off. 2002-02-27 17:32:27 +00:00
Derick Rethans
15cadf0c42 - Fix proto 2002-02-27 14:05:39 +00:00
Adam Dickmeiss
7a68b02482 Implemented yaz_schema. Cleanup. 1.8 YAZ required 2002-02-27 12:58:33 +00:00
Dan Kalowsky
a4113ee734 Bug fix 15719 as submited by Joseph Southwell and allows NULL values in ODBC
# I haven't been able to fully test this due to MacOSX compliation errors.
# if someone in the QA group could that'd be appriciated.
2002-02-26 15:33:54 +00:00
Edin Kadribasic
0bbc3c3a4c Allow use of dl() when CLI is compiled with ZTS (bug #15717). 2002-02-26 11:00:20 +00:00
Derick Rethans
b5a0fd24a1 - Fix the fix.. no need to escape " in single quotes 2002-02-24 14:07:10 +00:00
Derick Rethans
a4946ca375 - Add slashes around string output 2002-02-24 13:26:43 +00:00
Sebastian Bergmann
dd95705ceb Make phpinfo() look nicer. 2002-02-24 07:54:04 +00:00
Markus Fischer
b68e5f2ec9 - Fix info output (Peter Neuman <neuman_peter@hotmail.com>). 2002-02-23 22:46:19 +00:00
Rui Hirokawa
8cfa80d082 fixed configure error with freetype1. 2002-02-23 01:36:55 +00:00
Rui Hirokawa
07a08288a1 fixed a comment and default output encoding changed to pass. 2002-02-23 00:04:20 +00:00
Rui Hirokawa
acf08a9015 php.h included. 2002-02-23 00:00:15 +00:00
Frank M. Kromann
db63c9e291 Return true on update success. 2002-02-22 19:03:11 +00:00
Yasuo Ohgaki
b9d158c458 Fix crash bug 15607 2002-02-22 11:39:23 +00:00
Yasuo Ohgaki
15daf99288 Added fmod() function
# Is there any reason that math.c does not use errno?
2002-02-21 11:44:41 +00:00
Andrei Zmievski
513e598d1e Adding object aggregation capability along with tests. 2002-02-21 03:32:42 +00:00
Christian Stocker
94d06d34e0 "o|a|b" is not valid ZE code. changed to "o|ab" 2002-02-20 23:35:20 +00:00
Rasmus Lerdorf
229d207a58 Split CRC32 table out into a header file so other code can use it 2002-02-20 18:18:39 +00:00
Derick Rethans
8b7b813ebc - Fix for bug #15628 (for real now :) 2002-02-20 15:53:25 +00:00
Derick Rethans
cddd25661f - Fix for bug #15638 2002-02-20 07:24:53 +00:00
Marc Boeren
6ddca71cdb Oops: source copy&paste should be done with care :) (Mc) 2002-02-18 10:22:09 +00:00
Marc Boeren
cb46dbb6eb Added support for Sybase-CT to dbx module (Mc). 2002-02-18 09:21:51 +00:00
Jason Greene
0a2438b057 Fix parse string
(Since arg6 is initialized at null this still catches the wrong param condition)
2002-02-15 17:33:08 +00:00
Dan Kalowsky
cd88ac738b fix for bug 15516, patch submitted by torben@php.net 2002-02-15 17:24:44 +00:00
Yasuo Ohgaki
fe72f742eb Fix problem with sesssion_pgsql module 2002-02-15 03:30:15 +00:00
Sean Bright
12430d1da1 Fix cosmetic bug. (#15142) 2002-02-15 03:08:41 +00:00
Derick Rethans
14d0c9d9a3 - Remove duplicate constant 2002-02-14 15:02:49 +00:00
Frank M. Kromann
d036b10062 Fixing release and debug build on Win32 2002-02-13 23:27:45 +00:00
Yasuo Ohgaki
d43e889854 Fix memory leaks. 2002-02-13 13:11:36 +00:00
Marc Boeren
6d3d668887 Fixed bug where users with empty passwords could not connect. (Mc)
# thanks for testing, Yasuo. Could you commit the mem-leak patch now?
2002-02-13 11:09:48 +00:00
Yasuo Ohgaki
c1507e1e40 Initialize automatic persistent connection reset flag 2002-02-12 10:01:08 +00:00
Andrei Zmievski
260aee10fe Fix a long-standing infelicity that resulted in extra regex information
not being passed to PCRE functions.
2002-02-12 03:15:27 +00:00
Andrei Zmievski
51f1739983 Expose pcre_get_compiled_regex as an API function. 2002-02-12 03:00:05 +00:00
Mark L. Woodward
3edf26b509 Added one more tweak for 4.0.x compatibility.
Used "#warning" to inform users of a hard dependency.
(If #warning is unaccptable, let me know!)
2002-02-11 18:32:00 +00:00
Markus Fischer
8b2dcb33b7 - Fix protos. 2002-02-11 02:48:49 +00:00
Sean Bright
6829710dce '0b' could be the beginning of a hex string (without leading '0x') so if
the user specifies base 16, use that instead.
2002-02-10 23:19:38 +00:00
Sean Bright
72c5a9cd8a Add a new test for GMP base recognition. 2002-02-10 23:13:37 +00:00
Sean Bright
cc065b3351 Fix for bugs #10133 and #15454.
Bug #15454 results from a bug in GMP.  If you pass in a string '0xABCD' and
specify a base of 0, GMP figures out that it is hex and skips over the 0x
characters.  If you specify base 16, then it doesn't skip those chars.
This was confirmed with the following test program:

#include <stdio.h>
#include <gmp.h>

int main()
{
        char *str_one, *str_two;
        mpz_t num_one, num_two;

	mpz_init_set_str (num_one, "0x45", 0);
	str_one = mpz_get_str(NULL, 10, num_one);

	mpz_init_set_str (num_two, "0x45", 16);
	str_two = mpz_get_str(NULL, 10, num_two);

	printf("%s / %s\n", str_one, str_two);

	mpz_clear (num_one);
	mpz_clear (num_two);

	return 0;
}

We now take anything that starts with 0[xX] as hexidecimal and anything
that starts 0[bB] as binary (this is what GMP does internally).  We also
no longer force the base to 10 or 16, but instead let GMP decide what the
best base is, be it hex, dec, or octal.
2002-02-10 23:12:57 +00:00
Jason Greene
150d339231 Renamed zval_debug_dump() to debug_zval_dump() 2002-02-10 17:38:15 +00:00
Thies C. Arntzen
1d54bf97e0 only rollback at script end if there is something to rollback. 2002-02-10 12:41:52 +00:00
Stig Venaas
9e420659ad Added php_sockaddr_size() in network.c (and the header file). This is used
in ftp.c to make sure connect() and bind() is called with size argument
which is exactly the size of the relevant sockaddr_xx structure
2002-02-10 12:35:29 +00:00
Sebastian Bergmann
8acc47a7a9 TSRM fixes. 2002-02-10 08:08:14 +00:00
Jason Greene
91ac18bc66 @Added zval_debug_dump which works similar to var_dump yet displays extra
internal information such as refcounts, and the true type names (Jason)
2002-02-10 06:52:35 +00:00
Yasuo Ohgaki
7baa36c885 Fix typo 2002-02-10 02:27:09 +00:00
Andrei Zmievski
66c94331bc *** empty log message *** 2002-02-09 22:54:08 +00:00
Stig Bakken
5970cfb56c * ZTS fix
# Sebastian, does it build on Windows now?
2002-02-09 22:01:00 +00:00
Sebastian Bergmann
07f95b3a79 Add MSVC workspace for tokenizer extension. Add php_tokenizer.dll entries to php.ini-*. 2002-02-08 21:19:55 +00:00
Thies C. Arntzen
7f29ed5798 - got rid of unneded calls to OCIAttrGet when reexecuting the same query
- only invalidate the define list after all rows from a REFCORSOR are read,
  "normal" corsors will now remember their column defines. this means that
  ocigetcolumn[name|type|..] will from now on work even after the result set
  has been read.
2002-02-08 18:50:12 +00:00
Stig Bakken
cf5ba0feec @Added Andrei's tokenizer extension (Stig) 2002-02-08 18:49:40 +00:00
Mark L. Woodward
e8285d6bba Backward compatibility to 4.0.6 does not have "HAVE_PHP_SESSION" define
Renamed PHP_4_x_API to PHP_4_x
2002-02-08 03:05:21 +00:00
Sterling Hughes
ed6d751cd9 move to the ZEND_DECLARE_MODULE_GLOBALS() and ZEND_EXTERN_MODULE_GLOBALS
macros
2002-02-07 22:00:21 +00:00
Frank M. Kromann
9d0f7ba3b5 Convert pLists to output character set before parsing the list 2002-02-06 22:31:23 +00:00
Frank M. Kromann
1121df7c45 Added order by clause in fbsql_list_tables().
Table names will now be sorted.
2002-02-06 19:41:00 +00:00
Frank M. Kromann
d26c7a41ff Adding fbsql_table_name() aliased fbsql_tablename() for compatibility with MySQL 2002-02-06 19:24:02 +00:00
Derick Rethans
cee660a123 - Fix for bug 15404 2002-02-06 19:10:35 +00:00
Yasuo Ohgaki
ccc8755196 Remove unused line
# I forgot to delete this line
2002-02-06 10:03:40 +00:00
Yasuo Ohgaki
eba550de9d Fixed crash with mb_output_handler()
When mb_output_hanlder is applied muiltiple times, PHP does not output.
This should be fixed also.
2002-02-06 09:51:39 +00:00
Yasuo Ohgaki
39ad453266 Clean up code.
Removed PHP_PGSQL_API macro.
Define pgsql_globals_id
# Need a little more clean up
2002-02-06 07:25:51 +00:00
Yasuo Ohgaki
b42f0b0d43 Make module specified functions to static.
Added TSRMLS_D/C, get rid of one TSRMLS_FETCH.
2002-02-06 07:16:10 +00:00
Andi Gutmans
284eaf34cc - Add TSRMLS_FETCH()'s needed for the new object overloading in ZE2. 2002-02-05 20:43:49 +00:00
Mark L. Woodward
a8013517f5 Sorry guys, PHP 4.0.6's ZEND_MODULE_API_NO is whacked, it has an extra
zero, thus ZEND_MODULE_API_NO >= xxxx, will not work for about 18000 years.
Added better checking, and cleaned up some of the #ifdef you seem to love
so much.
2002-02-05 20:02:34 +00:00
Hartmut Holzgraefe
8b9b916ce9 removed the new-style parameter parser code for bc *and* readability
reasons, changed the remaining #ifdefs to check the api version
directly instead of using the not really related OLD_ZEND_PARAM macro
2002-02-05 17:00:28 +00:00
David Eriksson
2272eb57a4 @- Removed Satellite. It is now part of PEAR. 2002-02-05 09:09:35 +00:00
foobar
ff51415423 Let's be consistent and use zval instead of pval 2002-02-05 01:30:22 +00:00
foobar
86f123ba2e Export php_session_start(). 2002-02-05 01:28:55 +00:00
Jaroslaw Kolakowski
176a426b2e Fixed compile error 2002-02-04 21:07:39 +00:00
Mark L. Woodward
5f52b45708 More 4.0.6 compatibility. 2002-02-04 18:33:46 +00:00
Mark L. Woodward
aa96e0e756 Restored backward compatibility to PHP 4.0.6 2002-02-04 18:01:40 +00:00
Yasuo Ohgaki
6abc327855 Fix ZTS startup crash 2002-02-04 14:28:02 +00:00
Thies C. Arntzen
32495f256c add oracle 9 detection for oracle-module 2002-02-04 12:08:40 +00:00
Yasuo Ohgaki
23258ef145 Remove TSRMLS_FETCH() does not need 2002-02-04 11:55:12 +00:00
Yasuo Ohgaki
488f6a706d Fix ZTS build 2002-02-04 11:43:07 +00:00
Yasuo Ohgaki
bd32363e2f Revert last commit. Last patch has problem for the 1st request.
# I also found what's wrong in mod_mm.c  :)
# I'll fix it later since don't have much time now.
2002-02-03 05:40:19 +00:00
Yasuo Ohgaki
4c6e58ac59 Fixed crash when save_path is invalid.
Fixed crash when user save handler is incorrectly used.
Fixed crash when session read failed.
2002-02-03 03:17:35 +00:00
Yasuo Ohgaki
665d38629b Added UCS4 test 2002-02-03 02:18:30 +00:00
Sebastian Bergmann
5319d84400 Consistency. 2002-02-02 19:33:36 +00:00
Sebastian Bergmann
4a2f0316e1 Fix a warning. 2002-02-02 19:27:33 +00:00
Andrei Zmievski
441c583a2c Converted extract() to use smart_str for variable name manipulation. This
sped it up a bit.
2002-02-01 20:17:32 +00:00
Adam Dickmeiss
f8d533d79d Fixes in MARC decoder (base adress, DANmarc case). 2002-02-01 17:56:19 +00:00
Thies C. Arntzen
4526dd2078 remove some crap 2002-02-01 14:02:49 +00:00
Derick Rethans
32e9ea6c64 - Fix for bug 14899 (patch by Sander Roobol <sander@php.net>) 2002-02-01 08:53:47 +00:00
Yasuo Ohgaki
53d349a3a6 Fixed bug with encodings that has 0 byte in strings. Patch by <itai@siftology.com>
Fixed possible problem with encodings that a char can be larger than
4 bytes.
2002-02-01 08:32:04 +00:00
Boian Bonev
8ad5009b22 fix comment 2002-01-31 17:02:48 +00:00
Derick Rethans
98e8a7ba08 - Fix for bug 15311 (type mismatch of php_dl when #ifndef HAVE_LIBDL) 2002-01-31 10:21:24 +00:00
Derick Rethans
d26afcf366 - Fix for openssl_pkcs7_sign segfaults
(patch by Christian Stocker <chregu@php.net>)
2002-01-31 09:57:28 +00:00
Dan Kalowsky
860e2e97ee Fix for bug #14803 2002-01-30 21:54:54 +00:00
Thies C. Arntzen
82a9fc746e enable "user-interrupts" 2002-01-30 07:41:04 +00:00
Jon Parise
9aba9071b6 These are now defined in zend_config.w32.h. 2002-01-28 16:06:27 +00:00
jim winstead
95407d3202 testing checkin 2002-01-28 01:43:43 +00:00
Jon Parise
e40e7a669a zend_isinf() is already defined in Zend/zend_config.w32.h for Win32. 2002-01-27 18:19:18 +00:00
fabrice aeschbacher
ece15242e7 add ibase_add_user(), ibase_modify_user(), ibase_delete_use() 2002-01-27 15:31:15 +00:00
Jon Parise
f174bbc711 Use the zend_* versions of finite(), isinf(), and isnan(), as defined
in php_config.h.  Redefine the zend_* versions in the case of Win32.

This fixes the build on systems that don't provide a native version of,
say, isinf() (e.g. Solaris).
2002-01-27 07:41:20 +00:00
Jon Parise
ea089d09ae Add a note that this statement will never be reached. 2002-01-27 07:23:21 +00:00
Jon Parise
d299bdc5d9 Add a comment indicating that this return statement will never be reached.
# Perhaps it should just be removed?
2002-01-27 07:15:07 +00:00
Jon Parise
539114339c Use socklen_t (instead of int) where appropriate. 2002-01-27 07:06:09 +00:00
Jon Parise
d7523c883b Because php_network.h includes <sys/socket.h>, it must be included after
_XPG4_2 is defined.

This fixes the build under Solaris 8.
2002-01-27 06:55:10 +00:00
Sterling Hughes
0d59ff42d4 don't throw fatal errors, throw E_WARNING instead. 2002-01-27 06:18:05 +00:00
Sterling Hughes
094873c6d2 hopefully fix --with-openssl issues 2002-01-27 06:11:50 +00:00
Yasuo Ohgaki
93cb481634 We need mm file for each user.
# GCI/CLI SAPI need this. It might be better to disable mm save handler
# for CGI/CLI, though.
2002-01-25 20:59:24 +00:00
Derick Rethans
edb0118d96 - Fix for bug #15227: Compiling the CGI binary with xmlrpc fails to
build/link expat
2002-01-25 19:56:48 +00:00
Derick Rethans
33b66a224b - Fixed highlight_* (make it more robust)
#- Thx Mr S for noticing this.
2002-01-25 15:43:58 +00:00
Hartmut Holzgraefe
58749ec3a4 no longer experimental 2002-01-25 14:01:41 +00:00