On 2002-03-16 01:11:11, Wez Furlong wrote:
Can you tell me which include files are needed to correct
the build on your system?
Then I can fix it :-)
Your fix to the .h file helped (even without the (long) change).
Maybe we can use a configure check for ptrdiff_t like in
ext/bcmath/libbcmath,
Hi,
I'm trying to find out whether PHP_RSHUTDOWN_FUNCTION is called when a
browser session is killed mid-script. If not, is there any way an extension
can detect the output socket is closed?
I've found a potential gotcha in the Sybase module, to do with locking, and
the locks never being
On 2002.03.16 06:14 Jon Parise wrote:
On Sat, Mar 16, 2002 at 03:15:07AM +0100, Markus Fischer wrote:
If no one objects I'ld like to commit the following patch
which raises an extra warning message when using mail() on
unix systems and the shell required for popen() can't be
following little script crashes now:
?
$myftp = ftp_connect(ftp.mutt.org);
?
it crashes in fflush() of libc and backtrace shows
that its called by php_stdiop_flush, which is called
from php_stream_flush, php_stream_free,
Stefan
--
PHP Development Mailing List
translating PHP manual to hebrew
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
Yes; I'm not happy with (long).
Apparently, some systems have ptrdiff_t in malloc.h rather than
stddef.h.
I'll see what I can do, but it's tricky when working blind
like this :-/
--Wez.
On 16/03/02, Stefan Roehrich [EMAIL PROTECTED] wrote:
On 2002-03-16 01:11:11, Wez Furlong wrote:
Can you
Apache crashes when running _any_ script (even phpinfo(); segfaults).
CLI works fine.
Backtrace:
#0 0x400e7476 in fflush () from /lib/libc.so.6
#1 0x402ff5b7 in php_stdiop_flush (stream=0x8169bc4)
at /home/sander/php/head/php4/main/streams.c:500
#2 0x402fee39 in php_stream_flush
Markus,
please use tabs for indentation, and favor this:
if (set) {
function();
}
above this:
if (set) function();
this makes the PHP C source more consistent.
Derick
On Sat, 16 Mar 2002, Marcus Börger wrote:
To have image.c work i had to correct the php_stream_seek and
On Sat, 16 Mar 2002, Markus Fischer wrote:
Hi,
If no one objects I'ld like to commit the following patch
which raises an extra warning message when using mail() on
unix systems and the shell required for popen() can't be
executed (tested on linux/freebsd).
Go ahead...
Hi Sander,
I've added some asserts and removed a bogus php_stream_flush
call; update your streams.c let me know how you get on :-)
If this doesn't work, then it's probably to do with the
resource management in main/main.c fopen_wrapper_for_zend :-/
--Wez.
On 16/03/02, Sander Roobol [EMAIL
Hello,
Unfortunately, it still fails. Configures compiles fine, but crashes
Apache. The backtrace is still the same.
Sander
On 2002.03.16 12:25 Wez Furlong wrote:
Hi Sander,
I've added some asserts and removed a bogus php_stream_flush
call; update your streams.c let me know how you get
Hi,
I have an array with object references stored in it. Now I want to write a
function which returns one of those references. I'm browsing through this
array with the zval_hash_*() functions until I have the correct reference in
the Variable **data. But how can I return this value by
Sander,
in main/main.c on line 576 there is a ZEND_REGISTER_RESOURCE
call. Can you comment out that line and try again?
I'd expect a leak instead of a crash now.
We need a cleaner solution for this anyway :-/
--Wez.
On 16/03/02, Sander Roobol [EMAIL PROTECTED] wrote:
Hello,
Hello Wez,
You hack makes it work again. It doesn't crash anymore.
Tnx,
Sander
On 2002.03.16 12:56 Wez Furlong wrote:
Sander,
in main/main.c on line 576 there is a ZEND_REGISTER_RESOURCE
call. Can you comment out that line and try again?
I'd expect a leak instead of a crash now.
We
With latest CVS php4-200203160300.tar.gz
and
./configure --enable-wddx --enable-sysvsem --enable-sysvshm --enable-static
--with-apxs=/usr/samba/users/andy/apache/bin/apxs --wit
hout-pear --with-openssl --with-bz
--with-iconv=/usr/samba/users/andy/413dev/php4-200203140300/ext/iconv
and then
I noticed that you didn't convert ext/ming to this
streams thingie yet. It doesn't compile now.
--Jani
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
firstly, apologies for the cross post, but I urgently need a Windows 98 /
PHP / PWS environment to test an issue on.
if anyone could help out with that, please email me back directly.
Thanks,
James
--
James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/
Was I helpful?
I don't have ming, so I can't test it :-/
I do remember changing some parts; could you send me the
error messages and I'll try and fix it up.
--Wez.
On 16/03/02, Jani Taskinen [EMAIL PROTECTED] wrote:
I noticed that you didn't convert ext/ming to this
streams thingie yet. It doesn't
I cannot compile the CVS because gcc complains about using function tempnam()
In the man tempnam i found that:
BUGS
The precise meaning of `appropriate' is undefined; it is unspecified how
accessibility of a directory is determined. Never
use this function. Use mkstemp(3) instead.
On Sat, 16 Mar 2002, Andrey Hristov wrote:
I cannot compile the CVS because gcc complains about using function tempnam()
In the man tempnam i found that:
BUGS
The precise meaning of `appropriate' is undefined; it is unspecified how
accessibility of a directory is determined. Never
ext/ming/ming.c: In function `NewSWFInput_sock':
ext/ming/ming.c:221: warning: implicit declaration of function `SOCK_FREAD'
ext/ming/ming.c: In function `GetInput':
ext/ming/ming.c:239: `PHP_STREAM_AS_STDIO_FILE' undeclared (first use in this function)
ext/ming/ming.c:239: (Each undeclared
James,
Firstly I have a suggestion for you, I downloaded a copy of something
called VMWare, it allows you to install virtual machines, ie, depending
on your disk space you can run mutliple operating systems without multi
boot. It even has the ability to forget changes, so you can have a
stable
Hello to all,
I want to
start translate PHP Docs to Hebrew, but I don't know where to start.
I don't have
CVS access, so I can't upload translated files. I also don't know where to get
the source of the docs.
I have some
free time, and I know English and Hebrew languages very well.
Hi Jani,
Please try my latest commit.
--Wez.
On 16/03/02, Jani Taskinen [EMAIL PROTECTED] wrote:
ext/ming/ming.c: In function `NewSWFInput_sock':
ext/ming/ming.c:221: warning: implicit declaration of function `SOCK_FREAD'
ext/ming/ming.c: In function `GetInput':
ext/ming/ming.c:239:
And where's the crash ?
In fact, there is none. It's only a warning message and the
binaries are built.
On Sat, Mar 16, 2002 at 03:04:57PM +0200, Andrey Hristov wrote :
With latest CVS php4-200203160300.tar.gz
and
./configure --enable-wddx --enable-sysvsem --enable-sysvshm
Hi,
Some guys already started to translate the manual to hebrew.
See
http://www.guides.co.il/forums/index.php?board=3;action=display;threadid=56
Sagi
- Original Message -
From: Hadar Porat
To: [EMAIL PROTECTED]
Sent: Saturday, March 16, 2002 3:31 PM
Subject: [PHP-DEV] Translation of
The new streams support in PHP make it easy to use SSL
for socket connections.
There is a feature request outstanding for the ftp extension
to make it support SSL ftp servers.
I'm not an FTP expert and I don't have any ftp servers setup
to test this, so I'm wondering if someone out there
Hey Wez
could you please check the interbase module ?
I receive this error with today CVS source and latest.tar.gz too :
/php4/ext/interbase/interbase.c: In function `zif_ibase_blob_import':
/php4/ext/interbase/interbase.c:2919: too many arguments to function
`php_stream_read'
make: ***
Stig suggested that it would be a good idea to define
a cpp macro that identifies that the php streams are
present, so that extensions can do the right thing.
So, I'm adding HAVE_PHP_STREAM to php.h.
Should we bump the PHP_API_VERSION to refelect this?
If so, what are the rules? (it looks like
At the moment i am working at memory-streams
If have the following problem left:
I must extend
struct _php_stream_ops
with ftell
by the way php_stream_tell is wrong because it relies on seek and
that does return either 0 on success or an erroecode
regards
marcus
-
At 18:58 16.03.2002, Marcus Boerger wrote:
At the moment i am working at memory-streams
If have the following problem left:
I must extend
struct _php_stream_ops
with ftell
by the way php_stream_tell is wrong because it relies on seek and
that does return either 0 on success or an
Damn; you're half right :-)
Your seeker implementation should spot the offset=0 whence=SEEK_CUR
case and return the current position.
I've fixed the stdio stream implementation to do this.
Please don't change the php_stream_ops structure, as there is no
need.
How are your memory streams
I hope that the streams have settled enough not to get in
the way of your plans;
I'm signing off for the evening, so I'm sorry if I can't respond
to any possible problems tonight.
--Wez.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php
At 19:53 16.03.2002, Wez Furlong wrote:
Damn; you're half right :-)
Your seeker implementation should spot the offset=0 whence=SEEK_CUR
case and return the current position.
I've fixed the stdio stream implementation to do this.
Please don't change the php_stream_ops structure, as there is no
Little problem in php_stream_copy_to_stream:
When copying the whole fstream the result is zero - should be size
See patch.
marcus
diff -u -w -r1.23 streams.c
--- main/streams.c 16 Mar 2002 18:52:03 - 1.23
+++ main/streams.c 16 Mar 2002 19:45:31 -
@@ -377,8 +377,12 @@
fsock.c
c:\home\php\php4\ext\standard\fsock.c(133): warning C4047: 'function':
Number of dereferences of 'void ***' and 'char [7]' different
c:\home\php\php4\ext\standard\fsock.c(133): warning C4022:
'zend_parse_parameters': Pointer type for parameter 2 does not match
SORRY
i checked and reloaded the file and i have no idea why whitespaces
have changed - maybe i will change my editor...
marcus
At 21:05 16.03.2002, you wrote:
helly Sat Mar 16 15:05:08 2002 EDT
Modified files:
/php4/main streams.c
Log:
-copy_stream_to_stream returns
Wez Furlong wrote:
gd:
functions that create images from files.
In particular, try creating from wrapped files over
http, ftp etc.
ext/gd does not compile on Win32:
gd.obj: error LNK2001: Unresolved external symbol:
_php_stream_stdio_ops
--
Sebastian Bergmann
Hi Wez,
i tried the streams and memory streams now in ext/exif.
What i do is check whether a stream is an stdio stream and if not
copy it to a memory stream and work with that. But before going
on using it i close/free the original stream.
I tested with http:... and the wrapper has destroy set
Harald Radi wrote:
phanto Sat Mar 16 17:08:24 2002 EDT
Modified files:
/php4/ext/standard fsock.c
Log:
fixed TSRM build
The
c:\home\php\php4\ext\standard\fsock.c(196): warning C4761:
Size conflict in argument
warning persists, the others are gone.
--
Compiles now nicely. (after my tiny typo fixes :)
btw. This streams stuff leaks a bit:
/main/streams.c(443) : Freeing 0x0823EC1C (8 bytes)
/main/streams.c(52) : Freeing 0x0834ADDC (48 bytes)
These are repeated few times.
(sorry, I don't know what is causing
Yasuo Ohgaki [EMAIL PROTECTED] wrote:
Feel free to shoot me showing including stddef.h confirms
ANSI C standard :)
the gnu c library documentation indicates that stddef.h and
ptrdiff_t are part of the ansi c standard.
http://www.aquaphoenix.com/ref/gnu_c_library/libc_483.html
jim
--
PHP
As I reluctantly mentioned a few weeks ago, I'm working on a PHP crypto
extension that uses Crypto++, a C++ library that provides implementations
for a bunch of crypto and hash algorithms. I was reluctant to bring it up
because I didn't know if I was going to finish it at all, and I didn't
Hello,
I'm currently designing a new 'encryption' extension which should be able
to have different backend encryption libaries like mcrypt and crypto++.
however this extension will be developped with an OO approach and for ZE2.
Th eidea is only in my mind at this moment, but I'm sure we can
Doesn't sound like a bad idea. It's a bit more grand than what I had in
mind for the Crypto++ extension, but I'd be willing to work on it. The main
thing for me right now is that the Crypto++ extension is being done for
work, and isn't entirely a hobby-type of thing. (Although I'm glad I work
I think it is due to a forgotten stream_close in ming.c;
fix going in now...
--Wez.
On 17/03/02, Jani Taskinen [EMAIL PROTECTED] wrote:
Compiles now nicely. (after my tiny typo fixes :)
Thanks :-)
btw. This streams stuff leaks a bit:
/main/streams.c(443) : Freeing 0x0823EC1C (8
Hi Markus,
(Sorry: I think I deleted the most relevant mail, so I'm replying to
this one :-)
Thanks for your work on the memory streams; I have a couple of
comments about them:
As they stand now, it is only possible to write in append mode.
(Or it looked that way from my quick glance).
It
At 02:56 17.03.2002, Wez Furlong wrote:
Hi Markus,
(Sorry: I think I deleted the most relevant mail, so I'm replying to
this one :-)
Thanks for your work on the memory streams; I have a couple of
comments about them:
As they stand now, it is only possible to write in append mode.
(Or it looked
Date: Sun, 17 Mar 2002 04:16:07 +0100
To: Wez Furlong [EMAIL PROTECTED]
From: Marcus Börger [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: memory streams
As for the strange problems you have in the exif extension;
if you switch to a stream opened with php_stream_fopen_tmpfile(),
do you still have
Those leaks weren't ming related at all.
Just 'normal' stuff in PHP. ie. file(), fopen(),
include()..etc.
--Jani
On Sun, 17 Mar 2002, Wez Furlong wrote:
I think it is due to a forgotten stream_close in ming.c;
fix going in now...
--Wez.
On 17/03/02, Jani Taskinen
50 matches
Mail list logo