[PHP-DEV] realpath patch

2004-09-30 Thread Andi Gutmans
Hey, I'd like to commit the realpath() patch I sent to the list for review a week or so ago. Unless there are any objections I'll commit it (to HEAD) in 1-2 days. This will give it some more exposure and will have more people testing it. Andi -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] New to PHP internals

2004-09-30 Thread Manuel Vázquez Acosta
Solved: find . | xargs touch Thanks, Manuel. "Robert Silva" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Try google('Clock skew detected'); -Original Message- From: Manuel Vázquez Acosta [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 2:33 PM To: [EMAIL PROTE

RE: [PHP-DEV] New to PHP internals

2004-09-30 Thread Robert Silva
Try google('Clock skew detected'); -Original Message- From: Manuel Vázquez Acosta [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 2:33 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] New to PHP internals Hi all: I'm very new to PHP internals, and I would like to get some help:

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Timm Friebe
On Thu, 2004-09-30 at 23:10, Jason Garber wrote: > Hello internals, [...] > If there is no better way, perhaps we could add constant called > (SAPI_TYPE = 'CLI') or something like that to the language to > facilitate this? $ php -r 'var_dump(PHP_SAPI);' string(3) "cli" get_defined_constants

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Jason Garber
Hello Marcus, Ok, Ok. I admit it. I made the POINT of reading the CLI manual page before posting this, but I just missed it. Sorry for the trouble, and, thanks for the help. -- Best regards, Jasonmailto:[EMAIL PROTECTED] Thursday, September 30, 2004, 5:50

RE: [PHP-DEV] CLI Constant

2004-09-30 Thread Robert Silva
PHP_SAPI constant or php_sapi_name -Original Message- From: Jason Garber [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP-DEV] CLI Constant Hello internals, What is the best way, from within a php script, to tell that the scr

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Marcus Boerger
Hello Jason, you lazy doc reader :-) php -r 'var_dump(php_sapi_name());' best regards marcus Thursday, September 30, 2004, 11:10:01 PM, you wrote: > Hello internals, > What is the best way, from within a php script, to tell that the > script is being run on the command line? > I'v

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Andrey Hristov
Jason Garber wrote: Hello internals, What is the best way, from within a php script, to tell that the script is being run on the command line? I've used if(defined('STDIN')) but that seems kind of kludgey. If there is no better way, perhaps we could add constant called (SAPI_TYPE = 'CL

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Edin Kadribasic
Checkout the PHP_SAPI constant . Edin - Original Message - From: "Jason Garber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 30, 2004 11:10 PM Subject: [PHP-DEV] CLI Constant > Hello internals, > > What is the best way, from within a php script, to tell that

RE: [PHP-DEV] CLI Constant

2004-09-30 Thread Michael Sims
Jason Garber wrote: > Hello internals, > > What is the best way, from within a php script, to tell that the > script is being run on the command line? > > I've used if(defined('STDIN')) but that seems kind of kludgey. I've used if (php_sapi_name() == 'cli') ... which seems to work wel

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread George Schlossnagle
On Sep 30, 2004, at 5:10 PM, Jason Garber wrote: Hello internals, What is the best way, from within a php script, to tell that the script is being run on the command line? I've used if(defined('STDIN')) but that seems kind of kludgey. If there is no better way, perhaps we could add const

Re: [PHP-DEV] CLI Constant

2004-09-30 Thread Rasmus Lerdorf
php_sapi_name() On Thu, 30 Sep 2004, Jason Garber wrote: > Hello internals, > > What is the best way, from within a php script, to tell that the > script is being run on the command line? > > I've used if(defined('STDIN')) but that seems kind of kludgey. > > If there is no better way,

[PHP-DEV] New to PHP internals

2004-09-30 Thread Manuel Vázquez Acosta
Hi all: I'm very new to PHP internals, and I would like to get some help: I added a few lines of code to sapi_apache.c and mod_php4.c (from original source of php-4.3.8); but when I make I get: make: warning: Clock skew detected. Your build may be incomplete. What I'm missing here. Please, be

[PHP-DEV] CLI Constant

2004-09-30 Thread Jason Garber
Hello internals, What is the best way, from within a php script, to tell that the script is being run on the command line? I've used if(defined('STDIN')) but that seems kind of kludgey. If there is no better way, perhaps we could add constant called (SAPI_TYPE = 'CLI') or something

Re: [PHP-DEV] Re: declaring classes as static or final

2004-09-30 Thread Marcus Boerger
Hello Michael, Thursday, September 30, 2004, 9:19:12 PM, you wrote: >> 1. static classes: >> static classes can only contain static methods and attributes >> > what would be even easier than the above: > if a class is declared "static" or "final static", the attributes and > methods in that

[PHP-DEV] Re: declaring classes as static or final

2004-09-30 Thread Michael Virnstein
> 1. static classes: > static classes can only contain static methods and attributes > what would be even easier than the above: if a class is declared "static" or "final static", the attributes and methods in that function are static by default, so you don't need to type static on every method a

[PHP-DEV] Add SO_ORIGINAL_DST support and SOL_IP constant to socket_get_options()

2004-09-30 Thread Leonardo Pedretti
I forgot to explain why did I added this option to the list of supported options: when you implement a transparent proxy, the routing kernel makes a destination address NAT and changes it to 127.0.0.1 and some port you declare when you instruct the kernel to do the redirection through iptables

[PHP-DEV] [PATCH]Add SO_ORIGINAL_DST support and SOL_IP constant to socket_get_options()

2004-09-30 Thread Leonardo Pedretti
This patch adds some quite useful functionalities to socket_get_options() function. 1st of all, it adds the constant SOL_IP to indicate IP layer in the level parameter. 2nd, and the most important, it adds the SO_ORIGINAL_DST constant for the optname parameter, and adds this functionality of c

[PHP-DEV] php_win.exe crashes when in a directory with spaces

2004-09-30 Thread Rubem Pechansky
Hi folks, When working on a new WinBinder demo, I found out that php_win.exe (for PHP 4, from PHP-GTK) crashes when called from a folder with spaces. For example, c:\PHP\myapp\php_win.exe runs fine, but c:\Program Files\myapp\php_win.exe consistently crashes. This can be a problem for Windows us

[PHP-DEV] [PATCH] Bug #30027 segmentation fault in ftp_get/memchr()

2004-09-30 Thread Chris Field
Attached is a patch that fixes this problem. The problem seems to occur when a \r is the last char in the data buffer. -- Chris Field [EMAIL PROTECTED] Affinity Solutions Inc. 350 5th Avenue 22nd Floor New York, NY 10118 (212) 822-9620 --- php-4.3.8/ext/ftp/ftp.c 2004-03-31 15:44:04.00

Re: [PHP-DEV] CVS account requests.

2004-09-30 Thread Wez Furlong
Val's CVS account should now be working. --Wez. On Thu, 30 Sep 2004 17:22:03 +0800, Alan Knowles <[EMAIL PROTECTED]> wrote: > I asked val khokhlov, to request a CVS account - he's been doing most of > the work on bcompiler recently. - He said he's posted the request, but > I've not seen the reque

[PHP-DEV] Bug in *printf() (29733)

2004-09-30 Thread Markus Bertheau
Hi, I observed a long standing bug in the implementation of printf. When you want to reuse arguments using the %n$s syntax, printf wants one argument too many. Please review the attached patch and let me know if it can be commited. I created bug 29733 for this. http://bugs.php.net/bug.php?id=2973

[PHP-DEV] CVS account requests.

2004-09-30 Thread Alan Knowles
I asked val khokhlov, to request a CVS account - he's been doing most of the work on bcompiler recently. - He said he's posted the request, but I've not seen the request posted to internals (Derick things something is probably broken there). Let val know if you need him to repost the form. Rega