Re: [PHP-DEV] mbstring functions in 4.2.3

2002-09-20 Thread Wez Furlong
Hi Erica, Personally, I would roll my own tarball/package based on the now fixed code in the 4.2 branch of CVS. However, as I mentioned in your original PR, there is a bug that affects file_exists on some systems; AFAIK, this has yet to be resolved which I why I suggested that you ask here, and

[PHP-DEV] [PATCH] [ZE] More useful error message for class redeclaration

2002-09-23 Thread Wez Furlong
, the previous declaration will appear to be the actual declaration in the script. I'm not sure of the best way to resolve this. --Wez. -- Wez Furlong The Brain Room Ltd. Index: Zend/zend.h === RCS file: /repository/Zen

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /main streams.c

2002-09-23 Thread Wez Furlong
Can you try this instead: if (eol && (size_t)((ptrdiff_t)eol + 1 - (ptrdiff_t)readptr) <= maxlen - 1) { justread = eol + 1 - readptr; It's looking really ugly - maybe there is a better way? --Wez. On 09/23/02, "Sebastian Bergmann" <[EMAIL PROTECTED]> wrote: > It compiles again, bu

Re: [PHP-DEV] [PATCH] [ZE] More useful error message for class redeclaration

2002-09-23 Thread Wez Furlong
ven't really delved into how it all works :-/ --Wez. On 09/23/02, "Andi Gutmans" <[EMAIL PROTECTED]> wrote: > Can't you make sure that the filename of internal classes will be NULL and > then we can check for it and say it's an internal class? > > An

[PHP-DEV] sticky perms in CVS?

2002-09-23 Thread Wez Furlong
Am I the only one who is getting their files chmod'ed to read-only every time I do a CVS commit? In particular, main/user_streams.c keeps doing this which is quite annoying - is there some setting on the server side that affects this? (and do we want it switched on?) --Wez. -- Wez Furlon

Re: [PHP-DEV] sticky perms in CVS?

2002-09-23 Thread Wez Furlong
itory itself, or to enable the PreservePermissions setting on the server side (although he hints at some other implications). --Wez. On 09/23/02, "Andi Gutmans" <[EMAIL PROTECTED]> wrote: > At 07:22 PM 9/23/2002 +0100, Wez Furlong wrote: > >Am I the only one who is getting

RE: [PHP-DEV] sticky perms in CVS?

2002-09-23 Thread Wez Furlong
But aren't all the other files -rw-r--r-- ? On 09/23/02, "James Cox" <[EMAIL PROTECTED]> wrote: > The perms are fine in cvs: > > -r--r--r-- 1 cvs cvs 24388 Sep 23 14:18 user_streams.c,v -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP-DEV] Re: sticky perms in CVS?

2002-09-23 Thread Wez Furlong
On 09/23/02, "Jim Winstead" <[EMAIL PROTECTED]> wrote: > Wez Furlong <[EMAIL PROTECTED]> wrote: > > Am I the only one who is getting their files chmod'ed to read-only > > every time I do a CVS commit? > this happens when someone does a 'cvs

[PHP-DEV] Re: broken stat cache?

2002-09-25 Thread Wez Furlong
On 09/25/02, "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: > It seems stat cache is broken. > Just point it out the problem I noticed, since Wez is > going to rewrite stat related code soon(?) IIRC. I re-routed the user-space stat() through the wrappers subsystem (a while ago), but didn't want/need t

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard reg.c reg.h

2002-09-25 Thread Wez Furlong
And in English: C:\TBR\C++\php4\ext\standard\reg.c(45) : error C2065: 'php_reg_globals' : undeclared identifier C:\TBR\C++\php4\ext\standard\reg.c(45) : error C2059: syntax error : ')' C:\TBR\C++\php4\ext\standard\reg.c(54) : error C2059: syntax error : ')' C:\TBR\C++\php4\ext\standard\reg.c(56)

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard reg.c reg.h

2002-09-25 Thread Wez Furlong
On 09/25/02, "Sebastian Bergmann" <[EMAIL PROTECTED]> wrote: > Wez Furlong wrote: > > And in English: > Oops, sorry, forgot to translate :-/ I didn't mean for that to sound like a command, I just thought it would be helpful for anyone interested in fixing it

[PHP-DEV] mb_convert_case (Was: Re: #19257 [Bgs]: strtolower & strtoupper does not work for UTF-8 strings)

2002-09-25 Thread Wez Furlong
All: I've just committed a php-style version of the ucdata package that Stig directed me to. usage: proto string mb_convert_case(string str, int mode [, string encoding]); mode can be one of MB_CASE_UPPER, MB_CASE_LOWER or MB_CASE_TITLE. encoding specifies the encoding of str; if omitted, the m

[PHP-DEV] php_request_shutdown_for_exec and a bunch of bugs

2002-09-26 Thread Wez Furlong
but doesn't say why - and those PRs appear to need those fd's to be closed in order to be resolved. I've tried looking through the CVS log for main/main.c but didn't have much luck; is this something of a hangover from PHP 3 days or did I just miss the relevant commit? --Wez.

Re: [PHP-DEV] Latest cvs: error in mbstring

2002-09-26 Thread Wez Furlong
Did you ./buildconf and then re-run configure? --Wez. On 09/26/02, "Martin Jansen" <[EMAIL PROTECTED]> wrote: > The following error occurs when building latest CVS: > > ext/mbstring/mbstring.lo: In function `zif_mb_convert_case': > /home/martin/cvs/php/php4/ext/mbstring/mbstring.c:2499:

[PHP-DEV] Re: open_basedir bug

2002-09-26 Thread Wez Furlong
It looks like this is the culprit: http://cvs.php.net/diff.php/php4/main/fopen_wrappers.c?r1=1.142&r2=1.142.2.1&ty=h But I don't know enough about this particular situation to decide what the best solution is. Rasmus: any ideas? (and does this affect HEAD?) --Wez. On 09/26/02, "Andrei Zmievsk

[PHP-DEV] Re: open_basedir bug

2002-09-27 Thread Wez Furlong
http://cvs.php.net/diff.php/php4/sapi/apache/mod_php4.c?r1=1.127.2.3&r2=1.127.2.4&ty=h Is also a good candidate. --Wez. On 26/09/02, "Wez Furlong" <[EMAIL PROTECTED]> wrote: > It looks like this is the culprit: > > http://cvs.php.net/diff.php/php4/main/fopen

Re: [PHP-DEV] feedback on PHP's WDDX

2002-09-27 Thread Wez Furlong
On 27/09/02, "Andrei Zmievski" <[EMAIL PROTECTED]> wrote: > May you watch Battlefield: Earth 10 times in a row. Is that meant to be a compliment?? :-) --Wez. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] naming of new streams functions for 4.3

2002-09-27 Thread Wez Furlong
;d like to get this right before we branch for 4.3; comments please! --Wez. -- Wez Furlong The Brain Room Ltd. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] (critical?) object comparison recursion bug

2002-09-29 Thread Wez Furlong
ss B { var $a; function B(&$a) { $this->a =& $a; } } $one =& new A; $two =& $one; if ($one == $two) { // <-- fatal error here echo "Same object\n"; } else { echo "not the same object\n"

[PHP-DEV] [PATCH] [ZE] (critical?) object comparison recursion bug

2002-09-29 Thread Wez Furlong
or objects?). --Wez. On 09/29/02, "Wez Furlong" <[EMAIL PROTECTED]> wrote: > The code below produces: > > Fatal error: Nesting level too deep - recursive dependency? > in test.php on line 24 > > This is should not happen since the objects being compared are >

Re: [PHP-DEV] [PATCH] [ZE] (critical?) object comparison recursion bug

2002-09-29 Thread Wez Furlong
That last patch was the wrong file, based on an earlier version :-/ Here is the correct patch, which will raise a warning instead of a fatal error, which at least gives the user the option of suppressing the problem by using error_reporting(). --Wez. Index: Zend/zend_hash.c ==

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Wez Furlong
On 09/29/02, "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote: > Shucks ... I take it that you are familiar enough with the source so > that I can take this to be a pretty definitive answer? Yep. > If so ... maybe you can suggest something to me then? > > I find myself including() the same

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-29 Thread Wez Furlong
BTW: if you keep your various HTML chunks in their own separate files, using readfile() to output them will optimially make use of your OS ability to cache files. In PHP 4.3 (due for release fairly soon), there is also file_get_contents() which uses the same mechanism but returns the contents as

[PHP-DEV] [PATCH] [ZE] More useful error message for class redeclaration [final version]

2002-09-29 Thread Wez Furlong
And here is the final version of my class redeclaration patch. class Foo {} class Foo {} -> Fatal error: Cannot redeclare class foo (previously declared in /home/wez/source/php/PHPDEV/wez.declare.class.php:3) in /home/wez/source/php/PHPDEV/wez.declare.class.php on line 5 class Directory {} -

Re: [PHP-DEV] [PATCH] [ZE] (critical?) object comparison recursion bug

2002-09-29 Thread Wez Furlong
&& Z_OBJPROP_PP(obj1) == Z_OBJPROP_PP(obj2)); } --Wez. On 09/29/02, "Zeev Suraski" <[EMAIL PROTECTED]> wrote: > Do we really need a new #define there? I think it's quite alright to bail > out in that situation as well... > The check for the hashtables

Re: [PHP-DEV] [PATCH] [ZE] (critical?) object comparison recursion bug

2002-09-29 Thread Wez Furlong
But I need this functionality with the current ZE :-/ --Wez. On 09/29/02, "Sebastian Bergmann" <[EMAIL PROTECTED]> wrote: > Wez Furlong wrote: > > I suppose that what I'm really after is an "is_same_object" test, > > rather than a is_equal_objec

Re: [PHP-DEV] auto_prepend/append: does the PHP engine cache the

2002-09-30 Thread Wez Furlong
On 01/01/70, "George Schlossnagle" <[EMAIL PROTECTED]> wrote: > Just as a note about all this: if you have a deep 'standard' include > tree (same 30-40 files), there is a decent amount of overhead just from > parsing all the include files, even with inexpensive code. In which case you should c

[PHP-DEV] infinite loop / problem with chunk size in output buffer

2002-09-30 Thread Wez Furlong
an come up with something better. --Wez. -- Wez Furlong The Brain Room Ltd. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Interbase blob stream broken!

2002-09-30 Thread Wez Furlong
Hi Daniela, Could you mail me the error message(s) that you are getting, or perhaps give me a little bit more information about what is failing? I don't have interbase so anything I'm doing there is a bit of a guess :-/ --Wez. On 09/30/02, "Daniela Mariaschi" <[EMAIL PROTECTED]> wrote: > Test

Re: [PHP-DEV] getimagetype() broken for jpegs?

2002-10-02 Thread Wez Furlong
Yep, it's probably the streams code (specifically the seeking that marcus mentioned). Also, I think there is now a slight bug with fopen wrappers under win32. I'm all of a sudden really pushed for time, so I might not be able to fix this before saturday - if that is the case, I'll make an effort

Re: [PHP-DEV] pear's Mail using smtp not working with cvs php

2002-10-02 Thread Wez Furlong
On 02/10/02, "Matt Haught" <[EMAIL PROTECTED]> wrote: > >250-haught.org (Read took 60.009819984436 seconds) > It appears that fgets is where the problem is occuring. Its taking over a > minute. Can anyone confirm? I tried a server at mail.wvwc.edu and received > the same sort of results. The

Re: [PHP-DEV] Re: Fixing socket reads

2002-10-04 Thread Wez Furlong
That buffering code is new as of a couple of weeks ago, in response to doing something about handling mac EOL conventions, so I'm not surprised there have been a couple of teething troubles there :-/ Sascha: thanks for fixing fgets; I've removed the dont_block member of the stream ops and replace

[PHP-DEV] Re: Streams: Further considerations

2002-10-04 Thread Wez Furlong
That's pretty much what streams was doing a couple of weeks ago. The reason it was changed was because the stdio fgets doesn't handle non-native EOL conventions :-/. What are your thoughts on the following: - Disable buffering for stdio streams (setvbuf(3) or similar). - read(2) using the fd obt

[PHP-DEV] Re: Streams: Further considerations

2002-10-04 Thread Wez Furlong
On 04/10/02, "Sascha Schumann" <[EMAIL PROTECTED]> wrote: > 1. Use fgetc in stream_gets for stdio stream ops > 2. Add file descriptor-based stream ops > 3. Redirect _php_stream_fopen_from_file/pipe to new stream > ops, if possible So, if fileno() returns a valid fd, we will use o

Re: [PHP-DEV] Multiple copies of files in the source... why?

2002-10-05 Thread Wez Furlong
Hi Dan, ext/rpc is the the ZE2 version of ext/com and ext/java, which will (most likely) be removed from the repository once ZE2 is officially released. ext/rpc is designed to make it easier to implement those kinds of extensions and is a kind of extensible extension (as is ext/session). --Wez.

[PHP-DEV] Re: userstreams.phpt

2002-10-06 Thread Wez Furlong
Hi Jan, The test actually passes, but the current output buffer problems mean that the output that is normally discarded for a successful test is still being output, and that causes the test harness to mark it as failed. --Wez. On 10/06/02, "Jan Lehnardt" <[EMAIL PROTECTED]> wrote: > Hi (wez),

[PHP-DEV] Re: Problems with unserialize

2002-10-06 Thread Wez Furlong
Well, I don't have a pear command and it doesn't look like HEAD builds or installs one either. But I've managed to track down the problem using pear.in manually; a fix is going in now. --Wez. On 06/10/02, "Derick Rethans" <[EMAIL PROTECTED]> wrote: > Hello, > > I think some recent change to th

Re: [PHP-DEV] Anyone confirm this?

2002-10-07 Thread Wez Furlong
It seems quite likely that this change should be made; it doesn't make sense to check for a hex-digit twice on the same character in the same if statement, and quoted printable uses "=XX", where XX is two hex digits, as a substitution for a character whose ascii code is XX. --Wez. On 10/07/02, "

Re: [PHP-DEV] ext/sysvmsg permissions

2002-10-08 Thread Wez Furlong
Hi Jan, I had this same problem with some of the streams files. It was (apparently) due to someone doing a "cvs watch on". Jim fixed this by tweaking the repository. What's strange is that both the streams files and those sysvmsg files were created by me, (although my umask is the usual 022)...

Re: [PHP-DEV] ext/sysvmsg

2002-10-08 Thread Wez Furlong
Hi Jan, I wrote that code, but I don't have a FreeBSD box to help fix this :-/ --Wez. On 10/08/02, "Jan Lehnardt" <[EMAIL PROTECTED]> wrote: > Hi, > even more errors show up when the previously quoted lines are commented out: > > gcc -Iext/sysvmsg/ -I/mnt/data/cvs/php4clean/ext/sysvmsg/ -DPHP_

[PHP-DEV] session.save_path = "N;/path"

2002-10-09 Thread Wez Furlong
I thought that I'd try this out with HEAD, but I found that PHP would go into an infinite loop. I didn't have time to debug it, so I reverted to using a regular path instead. Could a session guru take a look and double check this? session.save_path="2;/var/tmp"--> infinite loop session.save

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard css.c

2002-10-09 Thread Wez Furlong
On 10/09/02, "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: > AFAIK, there is no Arial that includes CJK. "Arial Unicode MS" (that 22MB TTF you'll find in \windows\fonts) seems to do a good job of including virtually all characters known to man. BTW: Colin - there is a bug report about phpinfo() - yo

[PHP-DEV] fopencookie detection

2002-10-09 Thread Wez Furlong
Before we branch, I would be grateful if someone could verify that we are detecting fopencookie correctly. It seems that older glibcs use an "off_t" parameter for the seeker function, while newer versions pass an "fpos_t *" instead. I've (previously) expanded the PHP_FOPENCOOKIE test in acinclud

[PHP-DEV] Re: session.save_path = "N;/path"

2002-10-09 Thread Wez Furlong
Doh! I somehow misread that line, despite reading it several times. I think it would be useful to emit a warning in this situation. (if I misread it, I'm sure others will do so also). --Wez. On 10/09/02, "Sascha Schumann" <[EMAIL PROTECTED]> wrote: > On Wed, 9 Oct

[PHP-DEV] reference parameters for overloaded objects

2002-10-12 Thread Wez Furlong
this: $obj->foo($set_me_please); Then I get a warning about the parameter not being passed by reference and $set_me_please ends up (or remains) NULL. Is there any way for the latter case to set $set_me_please, without explicitly using the &? --Wez. -- Wez Furlong The Brain Room Ltd. -

[PHP-DEV] Re: Streams Problems

2002-10-12 Thread Wez Furlong
I've committed a probable fix for the first issue. The second issue is not really an issue at all AFAICT; the delay is the remote server remaining open after serving your request because you have not closed the connection. This similar script does not "hang" as you described: http://host";, "r"

Re: [PHP-DEV] Re: Streams Problems

2002-10-12 Thread Wez Furlong
On 10/12/02, "Ilia A." <[EMAIL PROTECTED]> wrote: > So, I think this is indeed a problem. Allocating a huge buffer just because > users says so is not right, we might as well allow people direct memory > access while we are at it. One thing is that if this were to fail because > there were real

Re: [PHP-DEV] Re: Streams Problems

2002-10-13 Thread Wez Furlong
On 10/12/02, "Ilia A." <[EMAIL PROTECTED]> wrote: > #0 0x403cd271 in ?? () > #1 0x8171922 in zif_fgets (ht=2, return_value=0x83c843c, this_ptr=0x0, > return_value_used=0) at /home/rei/PHP_CVS/php4/ext/standard/file.c:1271 > #2 0x823faa2 in execute (op_array=0x83d498c) at > /home/rei/PHP_CVS/p

Re: [PHP-DEV] Re: [4.3.0-pre1] Weird encoding issue

2002-10-13 Thread Wez Furlong
nl2br had a nasty memory problem that was recently fixed; this is probably the cause. --Wez. On 10/13/02, "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: > Martin Jansen wrote: > > Yet another issue with 4.3.0-pre1 and Chora: > > > > The screenshot that is available at > > http://www.martinjansen.com

RE: [PHP-DEV] Streams Problems

2002-10-13 Thread Wez Furlong
Works for me using latest CVS. http://site.that.redirects";, "r"); fpassthru($fp); var_dump(stream_get_meta_data($fp)); ?> The var_dump shows that PHP is following the redirects. There used to be a bug like that, but it's been fixed for a couple of weeks now. How about posting a script th

RE: [PHP-DEV] Streams Problems

2002-10-13 Thread Wez Furlong
n/slash.php on line 2 > > Regards > Mike Robinson > > > > -Original Message- > > From: Wez Furlong [mailto:[EMAIL PROTECTED]] > > Sent: Saturday, October 12, 2002 1:40 PM > > To: Mike Robinson > > Cc: [EMAIL PROTECTED]; 'We

Re: [PHP-DEV] Curl multi Interface Patch

2002-10-13 Thread Wez Furlong
Hi Boris, PHP 4.3 already has the needed checks for curl with the multi interface. Please read the README.SUBMITTING_PATCH file; your patch should be against CVS and not PHP 4.2 (which is really getting old now!). Also, you should Cc your patch to the curl extension maintiner Sterling Hughes <[E

Re: [PHP-DEV] Re: Streams Problems

2002-10-13 Thread Wez Furlong
Hi Ilia, I've just added an E_NOTICE(*) when a socket send(2) fails. Hopefully, this will help track down the problem, as I can't see any reason why it would mysteriously fail. It might be that we need to look out for error codes such as EAGAIN/EWOULDBLOCK/ENOBUFS/ENOMEM/EINTR and re-try the sen

[PHP-DEV] [PATCH] cli broken - here's a temporary fix

2002-10-13 Thread Wez Furlong
array TSRMLS_CC); + _php_import_environment_variables(track_vars_array TSRMLS_CC); /* Build the special-case PHP_SELF variable for the CLI version */ php_register_variable("PHP_SELF", php_self, track_vars_array TSRMLS_CC); -- Wez Furlong The Brain Room Ltd. -- PHP Devel

[PHP-DEV] Re: Ming streams bug

2002-10-15 Thread Wez Furlong
Hi Rasmus, It could actually be an fopencookie detection bug. Can you try both of these things: A. toggle the configure detected value for COOKIE_SEEKER_USES_FPOS_T then recompile. B. #undef HAVE_FOPENCOOKIE then recompile. Hopefully the first one solves the problem (so we just need to fix the

[PHP-DEV] Re: Ming streams bug

2002-10-15 Thread Wez Furlong
have you got a script I can try out? Did you try A and B separately? I might not be able to reproduce this, because my glibc is the older flavour :-/ I'll give it a go though! --Wez. On 16/10/02, "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote: > > A. toggle the configure detected value for COOKIE_

Re: [PHP-DEV] Re: Ming streams bug

2002-10-15 Thread Wez Furlong
wo separately yet. > > -Rasmus > > On Wed, 16 Oct 2002, Wez Furlong wrote: > > > have you got a script I can try out? > > > > Did you try A and B separately? > > > > I might not be able to reproduce this, because my glibc is the older > > flavour

Re: [PHP-DEV] [PATCH] New function file_put()

2002-10-15 Thread Wez Furlong
Hi Christian, A couple of comments: there was a discussion, and we decided that file_get_contents was the best name, so it's counterpart should be called file_put_contents for consistency. the return value will only hold the length of the last item you wrote if you pass an array. local vars li

Re: [PHP-DEV] [PATCH] Changing entity charset handling inext/standard/html.c

2002-10-16 Thread Wez Furlong
Unfortunately, we absolutely must remain 100% backwards compatible with htmlentities(), so this patch should not be applied. However, I don't see a problem with making phpinfo determine the charset and passing that on to the internal htmlentities function? --Wez. On Thu, 17 Oct 2002, Moriyoshi

Re: [PHP-DEV] [PATCH] Changing entity charset handling inext/standard/html.c

2002-10-16 Thread Wez Furlong
Search the archives for the discussion. phpinfo could determine the charset as your patch does at the start, and then pass the info in php_escape_html_entities. Seems easy to me. --Wez. On 10/16/02, "Moriyoshi Koizumi" <[EMAIL PROTECTED]> wrote: > Wez Furlong <[E

Re: [PHP-DEV] [PATCH] Changing entity charset handlinginext/standard/html.c

2002-10-16 Thread Wez Furlong
On 10/17/02, "Moriyoshi Koizumi" <[EMAIL PROTECTED]> wrote: > Yep, as far as I read the archives, I haven't found any discussions on the > charset related backwards problems. So I wrote "*exactly* about this > issue". Search for "htmlentities charset". Both myself and thies (and probably other

[PHP-DEV] Re: [PATCH] Make mb_convert_case() conform to Unicode Spec

2002-10-23 Thread Wez Furlong
Hi Moriyoshi, The code was taken from the ucdata package; I don't really know anything about the internals at this stage. It is probably best to talk to the ucdata guys - I don't have the URL to hand, but I'm sure you can find them using google. --Wez. On Thu, 24 Oct 2002, Moriyoshi Koizumi wrot

Re: [PHP-DEV] Re: [PATCH] Make mb_convert_case() conform to UnicodeSpec

2002-10-23 Thread Wez Furlong
AFAIK, UCDATA itself only offers character conversion facilities, not > string conversion ones. Is it our job to discuss how to implement those > string conversion functions? If you think so, I'll commit it because > I might be one of those who know the right way to handle it

[PHP-DEV] php/embed and php-config

2002-10-18 Thread Wez Furlong
ld.so.conf now). -- Wez Furlong The Brain Room Ltd. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] php/embed and php-config

2002-10-18 Thread Wez Furlong
OK, so /usr/lib/mysql was already in ld.so.conf. The only way I got this to build was: LD_LIBRARY_PATH=/usr/lib/mysql make wtf is going wrong here? Could it be a libtool problem? --Wez. On 18/10/02, "Wez Furlong" <[EMAIL PROTECTED]> wrote: > When I try and link I get: > /u

Re: [PHP-DEV] [PATCH] Changing entity charset

2002-10-18 Thread Wez Furlong
Err, I suggest you read that patch again. The default will be the mbstring.internal_charset That's not the same thing! --Wez. On Thu, 17 Oct 2002, Yasuo Ohgaki wrote: > Wez Furlong wrote: > > Search for "htmlentities charset". Both myself and thies (and probably ot

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
Hi Tony, There's not much we can tell you about this unless you post the rest of the lines of that function. Perhaps you did not include ? Note: always prefer this: read(fd, buf, sizeof(buf)); to this: read(fd, buf, 1024); The former is immune to buffer overruns if you change the size

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Wez Furlong
On 10/20/02, "Tony Leake" <[EMAIL PROTECTED]> wrote: > and now I'm trying to write functions that will read and write from the > pipe. So far I have this, it isn't finished as you will see. > > PHP_FUNCTION(pipe_read) > { > pipe_r_le_struct *st_pipe_r; > zval *read; > zval * res; >

RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)

2002-10-20 Thread Wez Furlong
I've not been following this thread, but wanted to point out that there is now mb_convert_case() available in the mbstring extension. It is locale independent and you can specify the charset of the string whose case you want to convert. proto string mb_convert_case(string sourcestring, int mode [,

Re: [PHP-DEV] algebra code

2002-10-24 Thread Wez Furlong
Get a math text book that explains gaussian elimination, learn it, then ask your question on php-general. This list is for development of php itself, not writing programs with PHP. --Wez. On 10/24/02, "Diana Castillo" <[EMAIL PROTECTED]> wrote: > does anyone know where I can get the code to solv

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main streams.c

2002-10-27 Thread Wez Furlong
Hey Ilia, Does this prevent opening of things like block and character special files? If yes, then let's change it to explicitly check for directories instead, as there are bound to be people out there that want to open things like /dev/hda1 (for example). --Wez. On 28/10/02, "Ilia Alshanetsky"

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-27 Thread Wez Furlong
On 28/10/02, "Zeev Suraski" <[EMAIL PROTECTED]> wrote: > Thank you for the detailed explanation, I'm sure everybody understands it now. > > Let's go for the voting phase. I vote we keep PHP-CLI with implicit_flush > on by default. +1 --Wez. -- PHP Development Mailing List

[PHP-DEV] Re: [PHP-CVS] Discuss on php-dev, not on php-cvs please

2002-10-29 Thread Wez Furlong
That would be ideal :) On Tue, 29 Oct 2002, Derick Rethans wrote: > On Tue, 29 Oct 2002, Wez Furlong wrote: > > If you need to comment on a commit, can you please change the To/Cc line > > from php-cvs to php-dev. > I think we can instruct the listmanager to set a Reply-To

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
On 10/29/02, "Marcus B?rger" <[EMAIL PROTECTED]> wrote: > -Use "//" instead of "/* ... */" comments Why? > #this test fails for me. Very weired... You changed the test. Why not ask me first about it failing? --Wez. -- PHP Development Mailing List To unsubscribe, v

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
when i use any print/echo statement after ob_end_xxx() nothing > is printed... > > The length of the lyrics added by me was only to test whether or not that > part of the script works. > > marcus > > At 15:25 29.10.2002, Wez Furlong wrote: > >On 10/29/02, "Marcu

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
On 10/29/02, "Marcus Börger" <[EMAIL PROTECTED]> wrote: > This test fails with adding > --INI-- > output_buffering=0 > output_handler= > zlib.output_compression= > implicit_flush=0 Works fine here. > and even when removing the three calls to ob_xxx89 Can you email me the output? Also, could yo

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
OK, so how about a backtrace ? --Wez. On Tue, 29 Oct 2002, Marcus [iso-8859-1] Börger wrote: > At 16:36 29.10.2002, Wez Furlong wrote: > >Also, could you strace it too? (just to be sure) > > old_mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard/tests/file userstreams.phpt

2002-10-29 Thread Wez Furlong
0, > tsrm_ls=0x82887b0) at /usr/src/php4-HEAD/main/main.c:1541 > #12 0x081dfa30 in main (argc=2, argv=0xbb44) > at /usr/src/php4-HEAD/sapi/cli/php_cli.c:695 > #13 0x40561280 in __libc_start_main () from /lib/libc.so.6 > (gdb) > > At 19:02 29.10.2002, you wrote: > >

Re: [PHP-DEV] hebrew patch for jewish calendar

2002-10-30 Thread Wez Furlong
Derick: pine can't handle uuencoded attachments :/ moshe: Your mua appears to be MS Outlook Express; you can avoid these strange problems with attachments by setting it to send base64 encoded MIME attachments instead of uuencoded "attachments". As for the patch, can you explain in english what it

Re: [PHP-DEV] Variable Functions?

2002-10-31 Thread Wez Furlong
Hi Dan, http://php.net/create_function, and see the ZE2 notes on __call/__get/__set handlers. --Wez. On 10/31/02, "Dan Hardiker" <[EMAIL PROTECTED]> wrote: > Hi All, > > Just a thought, but while working reciently with a few ECMA scripting > languages (eg: ActionScript in Flash MX), I uncovered

Re: [PHP-DEV] ODBTP, a possible solution for MS-SQL and other databases

2002-11-03 Thread Wez Furlong
Hi Bob, I'm interested in this becoming more mainstream, although I personally dislike mssql; the only current alternative that works in a similar way is one of the packages that Dan mentioned (I forget which) - it was difficult to configure as it required quite a large amount of fiddling around o

Re: [PHP-DEV] Image corruption when retrieving image files from MYSQL database

2002-11-03 Thread Wez Furlong
On 04/11/02, "Darren McPhee" <[EMAIL PROTECTED]> wrote: > I have spent the last 3 days trying to figure this out. And will probably > give up very soon. I have written 2 programs (which are very common PHP Then please spend the extra couple of minutes to read php.net/support.php and find the cor

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard ftp_fopen_wrapper.c

2002-11-05 Thread Wez Furlong
Hi Marcus, I'm assuming that it's a warning about result being uninitialized; if that is the case, lets just initialize it to zero in it's declaration. The cleanup code in errexit: inspects the first byte of tmp_line before attempting to use it; it might also be a good idea to initialize tmp_line

Re: [PHP-DEV] [Sorta OT] Mystery zcontext?

2002-11-05 Thread Wez Furlong
Hi John, It's for some funky stuff that won't really come into it's own until version 5 of PHP. ATM, you can use stream_context_XXX family of functions to do: o Set notification callbacks. These can be used to implement progress bars for event driven applications. o Set parameters for the vari

Re: [PHP-DEV] Please help document headers_sent()

2002-11-06 Thread Wez Furlong
Hi Philip, I think the idea is that you do this: if (headers_sent($file, $line)) { echo "headers were sent by $file:$line"; } Both $file and $line are optional. --Wez. On 06/11/02, "Philip Olson" <[EMAIL PROTECTED]> wrote: > Hello- > > headers_sent() has two new parameters as of PHP > 4.3.

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-07 Thread Wez Furlong
I agree with you that the codeset conversion functions should be there by default (iconv and recode seem to have patchy/variable support on different platforms; mbstring is reliable since we know exactly what is supported in there). I've been using the conversion functions of mbstring in productio

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-08 Thread Wez Furlong
I see the known-good codeset conversion implementation as a *very* good reason to have mbstring enabled by default. (Just look at all the problems with iconv and recode on different systems out there). I agree that the magic features for lazy programmers (function overloading and transparent encod

Re: [PHP-DEV] CVS account request

2002-11-08 Thread Wez Furlong
Hello Sergey, PHP 4.3 will/does have SSL and TLS support integrated into the fopen and fsockopen functions. (see the online manual: http://php.net/fopen and http://php.net/fsockopen). The current implementation requires that the openssl extension is built-in to php (rather than shared), and does

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Wez Furlong
Hi Tony, What kind of things are you planning to do? proc_open seems ideal to extend for this purpose, and works on win32. --Wez. On 09/11/02, "Tony Leake" <[EMAIL PROTECTED]> wrote: > The whole picture is that i want to control a child process completely > from within php. A bit like popen or

[PHP-DEV] [RFC] php-cli: option to ignore php.ini

2002-11-11 Thread Wez Furlong
What are your opinions for having some option to prevent the loading/parsing of php.ini for the CLI version of PHP? -n "No Ini File" - skips parsing php.ini on startup At the moment, I'm using "-c DOESNOTEXIST" to achieve the same result, but this is a bit hacky. --Wez. -- PHP Deve

[PHP-DEV] Critical? Shutdown issue with nsapi (Bug #20274)

2002-11-12 Thread Wez Furlong
I'm a little concerned about #20274 (running out of file descriptors); I'm not sure of the cause, but I suspect that there is some kind of request shutdown issue with threaded servers. The PR implies that this is a problem with iPlanet under Solaris, but it really would be a good idea to make sure

Re: [PHP-DEV] mbstring and 4.3.0

2002-11-13 Thread Wez Furlong
On 11/13/02, "Derick Rethans" <[EMAIL PROTECTED]> wrote: > On Wed, 13 Nov 2002, Marcus Börger wrote: > > At 04:11 13.11.2002, Jani Taskinen wrote: > > > > > Since when have we started to use users as guinea-pigs > > > for testing EXPERIMENTAL extensions without them even > > > really

Re: [PHP-DEV] XP?

2002-11-17 Thread Wez Furlong
Plus we were using IRC to bounce ideas off each other at the same time :) --Wez. On 11/17/02, "Andrei Zmievski" <[EMAIL PROTECTED]> wrote: > Who says Xtreme Programming can't work over long distances.. :) > > iliaa Sat Nov 16 19:07:33 2002 EDT > > Modified files:

Re: [PHP-DEV] getimagesize() broken in HEAD

2002-11-18 Thread Wez Furlong
I just merged some streams fixes back from the branch, so perhaps it was a streams problem after all? --Wez. On Mon, 18 Nov 2002, Marcus [iso-8859-1] Börger wrote: > At 11:20 18.11.2002, Derick Rethans wrote: > >On Mon, 18 Nov 2002, Rasmus Lerdorf wrote: > > > > > getimagesize() works ok in the

[PHP-DEV] RE: hebrew patch for jewish calendar

2002-11-18 Thread Wez Furlong
Hey Moshe, Could you resend your revised patch to Tal (and the list)? --Wez. smime.p7s Description: application/pkcs7-signature

Re: [PHP-DEV] ZE2 and classes

2002-11-19 Thread Wez Furlong
php.net/get_defined_functions and php.net/get_class_methods not good enough for you? ;-) What's the long term aim? --Wez. On Tue, 19 Nov 2002, Marcus [iso-8859-1] Börger wrote: > I have experimented with the code below. > > The main thing is to introduce a function that can return a list of > a

Re: [PHP-DEV] Mailparse extension

2002-11-19 Thread Wez Furlong
Hi Mike, I'm ironing out a few nasty bugs; I'm aiming to have it stable either in time for 4.3 or very shortly afterwards. (It's not bundled with the core any longer - it's now in PECL) --Wez. On Tue, 19 Nov 2002, Mike Hall wrote: > Is this going to be production stable in 4.3.0? > > Cheers, >

Re: [PHP-DEV] [PATCH 4.3.0] Win32 CoInitalize/CoUninitialize CallMove

2002-11-25 Thread Wez Furlong
+1 Makes very much sense (almost too much sense!) to me. --Wez. On Mon, 25 Nov 2002, Michael Sisolak wrote: > While stess testing the recent threading fixes under the ISAPI module I > was seeing a lot of instability in IIS after the testing finished. > While the PHP pages would continue to load

Re: [PHP-DEV] Concrete suggestion re: i18n messages

2002-11-26 Thread Wez Furlong
If I wanted localized error messages, then this would be the way to do it. Perhaps merging this with the php_error_docref might be slightly better. However, I'm personally -1000 on such things; there are many reasons, most of them have already been raised here, so I won't repeat them now, but the

Re: [PHP-DEV] PHP 5 - when?

2002-11-27 Thread Wez Furlong
Hi Piotr, The short answer is that it will be ready when it is ready :) We don't have a definite time frame for PHP 5 (we are not 100% sure what features it will contain), and probably won't have a definite time frame until we begin the release cycle (typically a month or more before we release t

<    1   2   3   4   5   6   7   >