Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread Sebastian Bergmann
Sterling Hughes wrote:
> I'll be adding it into PECL in a little bit

  Why PECL and not add it to ext/rpc?

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] preg_replace oddity [exploitable]

2003-02-02 Thread James E. Flemer
I found a more evil example:



This happily executes "rm -rf /tmp/sess_*".  I will not
give out more examples, but if one examines the code for
addslashes() it is quite obvious what you can an cannot do
here.  Thus it is clearly a Bad Thing for someone to use
preg_replace with the /e modifier and not use quotes around
the \\n or $n backrefs.

The docs should be updated to include a very noticeable
warning about this hole.  I am contemplating possible
solutions for this problem...

Also as a side note, it does not seem to be possible to use
'echo' as part of the expression, print must be used.  (Yes
I know why, just pointing it out.)

-James


On Thu, 30 Jan 2003, James E. Flemer wrote:

> Can someone explain what is going on here:
>
> --- foo.php ---
>$a = "___! 52); echo(42 !___";
>   $b = preg_replace("/!(.*)!/e", "print(\\1);", $a);
>   print("\n---\na: $a\nb: $b\n");
> ?>
> --- end ---
> --- output ---
> 52
> ---
> a: ___! 52); echo(42 !___
> b: ___1___
> --- end ---
>
> I understand that one is supposed to use single quotes
> around the \\1 in the above preg_replace.  But what happens
> when they do not?  Clearly the echo(42); is not executed,
> and it is not printed by print().  Even more interesting is
> if you put something like echo(\"42 in $a, then you get a
> bunch of errors including:
>   Fatal error - Failed evaluating code:
>   print( 52); echo(\"42 );
>
> It seems like preg_replace() is doing some strange things,
> and might be something that could be exploitable if a
> remote user can supply the first argument, and the second
> argument does not enclose \\n options.
>
> -James
>
>
>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Andi Gutmans
At 10:20 PM 2/2/2003 +0100, Maxim Maletsky wrote:


On Sun, 2 Feb 2003 22:06:24 +0100 (CET) Derick Rethans <[EMAIL PROTECTED]> wrote:

> On Sun, 2 Feb 2003, Maxim Maletsky wrote:
>
> > stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
> > un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
> > Sicuro che non funzioni?
>
> No problem if you answer in italian, but there is no need to CC the list
> then :-)

Sorry, guys - haven't noticed that Michele added php-dev to the
conversation :)  (Should have guessed why his answer was in english)

Anyway, what he talked about was why that code didn't work for him.
Sounded strange to me since it was noted in ZEND_CHANGES.txt.


The file isn't up-to-date. I'll make sure it's correct once namespaces are 
finalized.

Andi


--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] problems on building php_win32 release binaries

2003-02-02 Thread Ernani Joppert Pontes Martins
Hi Fellows,

I was trying to build a win32 version of the CVS Snapshots and I got some
problems on its build.

Anyways I wish to help with a odbc bug that in not solved yet and I can't
understant why some files in the project is missing...

The Snapshot version I got was php4-STABLE-200302021430.tar.gz

Here is the log of VStudio

Configuration: TSRM - Win32
Release_TS
Compiling...
TSRM.c
tsrm_strtok_r.c
tsrm_virtual_cwd.c
tsrm_win32.c
Creating library...
Configuration: Zend - Win32
Release_inline
Compiling...
zend.c
zend_alloc.c
zend_API.c
zend_builtin_functions.c
zend_compile.c
zend_constants.c
zend_execute.c
zend_execute_API.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\Zend\zend_execute_API.c(362) :
warning C4018: '==' : signed/unsigned mismatch
zend_extensions.c
zend_hash.c
zend_highlight.c
zend_indent.c
zend_ini.c
zend_ini_parser.c
zend_ini_scanner.c
zend_language_parser.c
zend_language_scanner.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\Zend\zend_language_scanner.c(5558
) : warning C4273: 'isatty' : inconsistent dll linkage.  dllexport assumed.
zend_list.c
zend_llist.c
zend_multibyte.c
Generating Code...
Compiling...
zend_opcode.c
zend_operators.c
zend_ptr_stack.c
zend_qsort.c
zend_sprintf.c
zend_stack.c
zend_variables.c
Generating Code...
Creating library...
Configuration: libmysql - Win32
Release_inline
Compiling...
array.c
bchange.c
bmove.c
bmove_upp.c
charset.c
ctype.c
dbug.c
default.c
dll.c
errmsg.c
errors.c
get_password.c
int2str.c
is_prefix.c
libmysql.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\ext\mysql\libmysql\libmysql.c(923
) : warning C4018: '>' : signed/unsigned mismatch
C:\Documents and
Settings\Administrador\Desktop\php4_source\ext\mysql\libmysql\libmysql.c(982
) : warning C4018: '>' : signed/unsigned mismatch
list.c
longlong2str.c
mf_casecnv.c
mf_dirname.c
mf_fn_ext.c
mf_format.c
mf_loadpath.c
mf_pack.c
mf_path.c
mf_unixpath.c
mf_wcomp.c
mulalloc.c
my_alloc.c
my_compress.c
my_create.c
my_delete.c
my_div.c
my_error.c
my_fopen.c
my_getwd.c
my_init.c
my_lib.c
my_malloc.c
my_messnc.c
my_net.c
my_once.c
my_open.c
my_pthread.c
my_read.c
my_realloc.c
my_static.c
my_tempnam.c
my_thr_init.c
my_wincond.c
my_winthread.c
my_write.c
net.c
password.c
safemalloc.c
str2int.c
strcend.c
strcont.c
strend.c
strfill.c
string.c
strinstr.c
strmake.c
strmov.c
strnmov.c
strtoll.c
strtoull.c
strxmov.c
thr_mutex.c
typelib.c
violite.c
Creating library...
Configuration: php4dll - Win32
Release_inline
Compiling...
aggregation.c
css.c
cyr_convert.c
fopen_wrappers.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
main.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
mergesort.c
network.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
output.c
..\ext/zlib/php_zlib.h(25) : fatal error C1083: Cannot open include file:
'zlib.h': No such file or directory
php_content_types.c
php_ini.c
php_logos.c
php_open_temporary_file.c
php_ticks.c
php_variables.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
quot_print.c
reentrancy.c
rfc1867.c
safe_mode.c
SAPI.c
..\ext/zlib/php_zlib.h(25) : fatal error C1083: Cannot open include file:
'zlib.h': No such file or directory
snprintf.c
spprintf.c
streams.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\php_network.h(28) : fatal
error C1083: Cannot open include file: 'arpa/inet.h': No such file or
directory
strlcat.c
strlcpy.c
user_streams.c
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\user_streams.c(640) :
warning C4244: '=' : conversion from 'long ' to 'unsigned short ', possible
loss of data
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\user_streams.c(641) :
warning C4244: '=' : conversion from 'long ' to 'unsigned short ', possible
loss of data
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\user_streams.c(642) :
warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of
data
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\user_streams.c(643) :
warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of
data
C:\Documents and
Settings\Administrador\Desktop\php4_source\main\user_streams.c(644) :
warning C4244: '=' : conversion from 'long ' to 'short ', possible loss of
data
array.c
assert.c
base64.c
basic_functions.c
..\main\php_network.h(28) : fatal error C1083: Cannot ope

Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread nicos
They will probably be into PECL.

P.S: very nice work mister Hugues :-)

PSS: I see nothing better than your way of doing type proxying.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Maxim Maletsky" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
>
> I read the code, quite nice!
>
> It's been a while I was thinking to integrate Ruby into PHP, which would
> probably be a very very similar extension as this one. Are they going to
get
> into the official PHP distr or PECL?
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
> On 02 Feb 2003 18:13:10 -0500 Sterling Hughes <[EMAIL PROTECTED]>
wrote:
>
> > I spent a little time this weekend implementing an extension that allows
> > PHP to load .NET classes on the Unix environment - 100% open source, by
> > leveraging the mono library(*).  For more information, view the README
> > file in the distribution by downloading the file
> > http://www.edwardbear.org/php_mono_0_1.tar.gz.
> >
> > Its PHP5 only, as that's what I've switched to for all new development.
> > Hi Ho.
> >
> >  > $Console = new Mono('System.Console');
> > $Console->WriteLine('Hello World, PHP is .NET ready!');
> > ?>
> >
> > - Sterling "No More Extensions Needed" Hughes
> >
> > (*) Mono is much more than library, of course.  But it links to/uses the
> > mono library.
> >
> > PS:  I'll be adding it into PECL in a little bit, I want to finish the
> > type proxying code.  I'd also like to add all of the object and method
> > caching.
> >
> > PPS: If anyone has suggestions for a better way of doing type proxying
> > than what's described in the README, please let me know.
> >
> > --
> > "First they ignore you, then they laugh at you,
> >  then they fight you, then you win."
> > - Gandhi
> >
> >
> > --
> > PHP Development Mailing List 
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Mono & PHP

2003-02-02 Thread Maxim Maletsky

I read the code, quite nice!

It's been a while I was thinking to integrate Ruby into PHP, which would
probably be a very very similar extension as this one. Are they going to get
into the official PHP distr or PECL?

-- 
Maxim Maletsky
[EMAIL PROTECTED]


On 02 Feb 2003 18:13:10 -0500 Sterling Hughes <[EMAIL PROTECTED]> wrote:

> I spent a little time this weekend implementing an extension that allows
> PHP to load .NET classes on the Unix environment - 100% open source, by
> leveraging the mono library(*).  For more information, view the README
> file in the distribution by downloading the file
> http://www.edwardbear.org/php_mono_0_1.tar.gz.
> 
> Its PHP5 only, as that's what I've switched to for all new development.
> Hi Ho.
> 
>  $Console = new Mono('System.Console');
> $Console->WriteLine('Hello World, PHP is .NET ready!');
> ?>
> 
> - Sterling "No More Extensions Needed" Hughes
> 
> (*) Mono is much more than library, of course.  But it links to/uses the
> mono library.
> 
> PS:  I'll be adding it into PECL in a little bit, I want to finish the
> type proxying code.  I'd also like to add all of the object and method
> caching.
> 
> PPS: If anyone has suggestions for a better way of doing type proxying
> than what's described in the README, please let me know.
> 
> -- 
> "First they ignore you, then they laugh at you,  
>  then they fight you, then you win."  
> - Gandhi
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Problems with zand_API.c

2003-02-02 Thread Marcus Börger
I have problems with ze2 right now.
Function zend_parse_method_parameters uses void * in .h file and zval ** in 
.c file.
Since i have no karma there somebody else must fix this.

gcc  ...  /usr/src/php4-HEAD/Zend/zend_API.c -o Zend/zend_API.o  && echo > 
Zend/zend_API.lo
/usr/src/php4-HEAD/Zend/zend_API.c:567: conflicting types for 
`zend_parse_method_parameters'
/usr/src/php4-HEAD/Zend/zend_API.h:126: previous declaration of 
`zend_parse_method_parameters'
/usr/src/php4-HEAD/Zend/zend_API.c: In function `zend_parse_method_parameters':
/usr/src/php4-HEAD/Zend/zend_API.c:597: warning: second parameter of 
`va_start' not last named argument
/usr/src/php4-HEAD/Zend/zend_API.c: In function 
`zend_parse_method_parameters_ex':
/usr/src/php4-HEAD/Zend/zend_API.c:642: warning: second parameter of 
`va_start' not last named argument


--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...

Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--


[PHP-DEV] [PATCH] sapi/nsapi/nsapi.c

2003-02-02 Thread Uwe Schindler
I submit a patch for the NSAPI SAPI module and hope that it fixes a lot of 
problems I have (and others as seen in the bug database).

As a lot of variables which are needed by a lot of PHP scripts which use 
$_SERVER["..."] are not transferred correctly to the PHP script that runs 
in iPlanet Webserver (4 or 6). An example are the "Host" and "X-Forwarded" 
headers. This is so, because the transferred variables are static in the 
SAPI module.

The new nsapi.c file now transfers _ALL_ variables from rc->rq->headers to 
php_register_variable("HTTP_"+headername_uppercase, ...).

Also missing variables like "SERVER_SOFTWARE" are added.
A lot of customers complain about memory leaks in this module. I hope they 
are also fixed by freeing the by nsapi allocated strings (the return value 
of session_dns and http_uri2url).

The patch should work with Netscape/iPlanet Servers from version 3 on (I 
used no newer API calls).

If you are interested I could eventually create a patch for supporting the 
"virtual servers" in SunONE/iPlanet Web Server 6, because some vars only 
get the default-hostname not the real virtual server name (for example 
$_SERVER["SERVER_URL"] which is often used in scripts to refer together 
with $_SERVER["PHP_SELF"]). But this mut be done with #ifdefs because some 
new functions are in the nsapi since version 6. A good fix would be also to 
map $_SERVER["SERVER_URL"] to "http://$SERVER["HTTP_HOST"]";, because in 
iPlanet-Servers the Host variable is everytime available (if not in 
original HTTP-headers it is defined to be the default hostname).

Greetings,
Uwe


-
Uwe Schindler
Addr 1: Bamberger Str. 24a, D-96049 Bamberg
Addr 2: Drausnickstr. 153, D-91052 Erlangen
http://www.thetaphi.de - http:///www.schindlers-software.de
eMails: [EMAIL PROTECTED] (private); [EMAIL PROTECTED] (company)
Tel./Fax: +49 700 PCLATEIN (+49 700 72528346)

Schindlers Software - Home of Schindlers PC-LATEIN 3.10
DIE Software zum Lateinlernen!  --- nsapi.c.old Sun Oct 27 00:00:36 2002
+++ nsapi.c Sun Feb  2 23:46:05 2003
@@ -2,7 +2,7 @@
+--+

| PHP Version 4|

+--+

-   | Copyright (c) 1997-2002 The PHP Group|

+   | Copyright (c) 1997-2003 The PHP Group|

+--+

| This source file is subject to version 2.02 of the PHP license,  |

| that is bundled with this package in the file LICENSE, and is|

@@ -66,6 +66,8 @@
 #define NSLS_CC, NSLS_C

 #define NSG(v) (request_context->v)

 

+#define NSHEADER_BUF_SIZE 1024

+

 /*

  * ZTS needs to be defined for NSAPI to work

  */

@@ -95,17 +97,7 @@
 

 static nsapi_equiv nsapi_headers[] = {

{ "CONTENT_LENGTH", "content-length" },

-   { "CONTENT_TYPE",   "content-type" },

-   { "HTTP_ACCEPT","accept" },

-   { "HTTP_ACCEPT_ENCODING",   "accept-encoding" },

-   { "HTTP_ACCEPT_LANGUAGE",   "accept-language" },

-   { "HTTP_ACCEPT_CHARSET","accept-charset" },

-   { "HTTP_AUTHORIZATION", "authorization" },

-   { "HTTP_COOKIE","cookie" },

-   { "HTTP_IF_MODIFIED_SINCE", "if-modified-since" },

-   { "HTTP_REFERER",   "referer" },

-   { "HTTP_USER_AGENT","user-agent" },

-   { "HTTP_USER_DEFINED",  "user-defined" }

+   { "CONTENT_TYPE",   "content-type" }

 };

 static size_t nsapi_headers_size = sizeof(nsapi_headers)/sizeof(nsapi_headers[0]);

 

@@ -114,6 +106,7 @@
{ "REQUEST_LINE",   "clf-request" },

{ "REQUEST_METHOD", "method" },

{ "SCRIPT_NAME","uri" },

+   { "PHP_SELF",   "uri" },

{ "SERVER_PROTOCOL","protocol" }

 };

 static size_t nsapi_reqpb_size = sizeof(nsapi_reqpb)/sizeof(nsapi_reqpb[0]);

@@ -130,7 +123,8 @@
 static nsapi_equiv nsapi_client[] = {

{ "HTTPS_KEYSIZE",  "keysize" },

{ "HTTPS_SECRETSIZE",   "secret-keysize" },

-   { "REMOTE_ADDR","ip" }

+   { "REMOTE_ADDR","ip" },

+   { "REMOTE_HOST","ip" }

 };

 static size_t nsapi_client_size = sizeof(nsapi_client)/sizeof(nsapi_client[0]);

 

@@ -281,8 +275,10 @@
 {

nsapi_request_context *rc = (nsapi_request_context *)SG(server_context);

size_t i;

-   char *value;

-   char buf[128];

+   char *value,*p;

+   char c;

+   char buf[NSHEADER_BUF_SIZE + 1];

+   struct pb_entry *entry;

 

for (i 

[PHP-DEV] Mono & PHP

2003-02-02 Thread Sterling Hughes
I spent a little time this weekend implementing an extension that allows
PHP to load .NET classes on the Unix environment - 100% open source, by
leveraging the mono library(*).  For more information, view the README
file in the distribution by downloading the file
http://www.edwardbear.org/php_mono_0_1.tar.gz.

Its PHP5 only, as that's what I've switched to for all new development.
Hi Ho.

WriteLine('Hello World, PHP is .NET ready!');
?>

- Sterling "No More Extensions Needed" Hughes

(*) Mono is much more than library, of course.  But it links to/uses the
mono library.

PS:  I'll be adding it into PECL in a little bit, I want to finish the
type proxying code.  I'd also like to add all of the object and method
caching.

PPS: If anyone has suggestions for a better way of doing type proxying
than what's described in the README, please let me know.

-- 
"First they ignore you, then they laugh at you,  
 then they fight you, then you win."  
- Gandhi


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] a critical bug since 4.2.3 still open?

2003-02-02 Thread Thomas Seifert
Hi folks,

as some people here just asked about it I found that bug report
http://bugs.php.net/bug.php?id=19292
about open_basedir-problems which is what happens here.

Did anyone have time to look at it or even fix it?

Can't believe that this critical bug hasn't ever been
seriously worked out.


TIA,

-- 
Thomas Seifert

mailto:[EMAIL PROTECTED]
http://www.MyPhorum.de 

-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Configure error(imap or imap-ssl)

2003-02-02 Thread Stig-Ørjan
Hello all,

I'm trying to compile PHP5-dev(php5-200302022030) on Mandrake Linux 
8.0(i386), but I get this errormessage:

--
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for 
details.
--

I've looked through config.log, but couldn't see anything(I'm no 
programmer)...


Thanks for any help.


Regards,
Stig-Orjan Smelror



--
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Again scope

2003-02-02 Thread Maxim Maletsky

On Sun, 2 Feb 2003 22:06:24 +0100 (CET) Derick Rethans <[EMAIL PROTECTED]> wrote:

> On Sun, 2 Feb 2003, Maxim Maletsky wrote:
> 
> > stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
> > un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
> > Sicuro che non funzioni?
> 
> No problem if you answer in italian, but there is no need to CC the list 
> then :-)

Sorry, guys - haven't noticed that Michele added php-dev to the
conversation :)  (Should have guessed why his answer was in english)

Anyway, what he talked about was why that code didn't work for him.
Sounded strange to me since it was noted in ZEND_CHANGES.txt. 


---
Maxim Maletsky
[EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Question on bug list

2003-02-02 Thread Sara Golemon
> > Wouldn't it be nice/more useful to generate RDF/RSS on a per-bug basis?
> > Then you could just add the feed url to your favourite RSS client.
> >
> > If you make it do that, then I will take a look and commit, provided
> > that there are no objections to this.
> >
> Jesus suggested the same thing, I'm trying out a few different approaches
to
> see what looks best, I'll post again when I have something usable.
>
http://frankenbox.alphaweb.net/test/export.phps

In normal mode (called as http://bugs.php.net/export.php?id=12345 ) it would
output an RSS 1.0 valid bug listing similar to the following output:

http://frankenbox.alphaweb.net/test/export.rss

It also allows for a more detailed extract (called as
http://bugs.php.net/export.php?id=12345&format=xml ) which includes all the
information related to the bug (except password, I accidently included that
field in my first sample)  Output sample:

http://frankenbox.alphaweb.net/test/export.xml

-Pollita


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Derick Rethans
On Sun, 2 Feb 2003, Maxim Maletsky wrote:

> stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
> un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
> Sicuro che non funzioni?

No problem if you answer in italian, but there is no need to CC the list 
then :-)

Derick

-- 

-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread Maxim Maletsky
stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi
un anno mentre il tuo CVS checkout e, credo, sia un sacco piu fresco.
Sicuro che non funzioni?

---
Maxim Maletsky
[EMAIL PROTECTED]


On 02 Feb 2003 21:56:08 +0100 michel 'ziobudda' morelli <[EMAIL PROTECTED]> wrote:

> Il dom, 2003-02-02 alle 21:31, Maxim Maletsky ha scritto:
> > da http://www.php.net/ZEND_CHANGES.txt
> > 
> > 
> >  > class FooClass {
> > function foo() {
> > $this->bar();
> > bar();
> > }
> > 
> > function bar() {
> > print "foobar\n";
> > }
> > }
> > 
> > $obj = new FooClass;
> > $obj->foo();
> > ?>
> > 
> > 
> 
> Ok, this not works. My cvs is old, very old. Tnx anyway.
> 
> 
> -- 
> michel 'ziobudda' morelli <[EMAIL PROTECTED]>
> 


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] Again scope

2003-02-02 Thread michel 'ziobudda' morelli
Il dom, 2003-02-02 alle 21:31, Maxim Maletsky ha scritto:
> da http://www.php.net/ZEND_CHANGES.txt
> 
> 
>  class FooClass {
> function foo() {
> $this->bar();
> bar();
> }
> 
> function bar() {
> print "foobar\n";
> }
> }
> 
> $obj = new FooClass;
> $obj->foo();
> ?>
> 
> 

Ok, this not works. My cvs is old, very old. Tnx anyway.


-- 
michel 'ziobudda' morelli <[EMAIL PROTECTED]>


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] RE: [PHP-QA] Test results [failed]

2003-02-02 Thread Kai Schröder
That's the result of testing lastest win32 snap (PHP4-STABLE) against test
cases in HEAD (something I should not do, I know):

> =
> FAILED TEST SUMMARY
> -
> jdtojewish() function [D:\work\php5\ext\calendar\tests\jdtojewish.phpt]
> range() [D:\work\php5\ext\standard\tests\array\range.phpt]
> File type functions [D:\work\php5\ext\standard\tests\file\001.phpt]
> is_*() and file_exists() return values are boolean.
> [D:\work\php5\ext\standard\tests\file\003.phpt]
> Bug #21131: fopen($filename, "a+") has broken position
> [D:\work\php5\ext\standard\tests\file\bug21131.phpt]
> User-space filters [D:\work\php5\ext\standard\tests\file\userfilters.phpt]
> quoted_printable_decode() function test with CR/LF
> [D:\work\php5\ext\standard\tests\general_functions\006.phpt]
> MD5 / Base64 [D:\work\php5\ext\standard\tests\general_functions\007.phpt]
> getopt [D:\work\php5\ext\standard\tests\general_functions\getopt.phpt]
> GetImageSize() [D:\work\php5\ext\standard\tests\image\getimagesize.phpt]
> image_type_to_mime_type()
> [D:\work\php5\ext\standard\tests\image\image_type_to_mime_type.phpt]
> Various pow() tests [D:\work\php5\ext\standard\tests\math\pow.phpt]
> Test split() [D:\work\php5\ext\standard\tests\reg\009.phpt]
> unserialize() floats with E notation (#18654)
> [D:\work\php5\ext\standard\tests\serialize\003.phpt]
> Bug #21453 (handling of non-encoded <)
> [D:\work\php5\ext\standard\tests\strings\bug21453.phpt]
> nl2br() function [D:\work\php5\ext\standard\tests\strings\nl2br.phpt]
> wordwrap() function
> [D:\work\php5\ext\standard\tests\strings\wordwrap.phpt]
> strtotime() function [D:\work\php5\ext\standard\tests\time\002.phpt]
> Check for mktime with out-of-range parameters
> [D:\work\php5\ext\standard\tests\time\003.phpt]
> Testing register_shutdown_function() with timeout. (Bug: #21513)
> [D:\work\php5\tests\func\005a.phpt]
> Bug #21094 (set_error_handler not accepting methods)
> [D:\work\php5\tests\lang\bug21094.phpt]
> Bug #21600 (assign by reference function call changes variable contents)
> [D:\work\php5\tests\lang\bug21600.phpt]
> Bug #21849 (self::constant doesn't work as method's default parameter)
> [D:\work\php5\tests\lang\bug21849.phpt]
> Formatted print functions [D:\work\php5\tests\strings\002.phpt]
> =
>
> =
> TEST RESULT SUMMARY
> -
> Exts skipped:   91
> Exts tested :   15
> -
> Number of tests :  475
> Tests skipped   :  231 (48.6%)
> Tests failed:   24 ( 5.1%)
> Tests passed:  220 (46.3%)
> -
> Time taken  :   39 seconds
> =

10 of the 24 failed tests are based on wrong test cases in my eyes:

ext/standard/tests/array/range.phpt:
no SKIPIF for versions < 5.0.0 (The optional step parameter for range() was
added in 5.0.0)

ext/standard/tests/file/001.phpt:
symlink() doesn't exist on Windows; should be in separate test

ext/standard/tests/file/003.phpt:
is_executable() doesn't exist on Windows; should be in separate test

ext/standard/tests/file/userfilters.phpt:
no SKIPIF for versions < 5.0.0

ext/standard/tests/general_functions/007.phpt:
wrong line breaks in EXPECT

ext/standard/tests/general_functions/getopt.phpt
getopt() is currently not available on Windows; SKIPIF should be changed

ext/standard/tests/strings/bug21453.phpt:
line break problem

ext/standard/tests/strings/nl2br.phpt:
line break problem

tests/lang/bug21849.phpt:
no SKIPIF for versions < 5.0.0

tests/strings/002.phpt:
two lines missing in EXPECT:
fprintf test 1:abcde
int(20)

Regards, Kai



-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] followup: mod_negotiation and php

2003-02-02 Thread Stephen van Egmond
As a followup, I'd like to document what worked (for me) to address 
the problem.

The issue, in summary, is that mod_negotiation thinks that
PHP produces content of type application/x-httpd-php.  It usually
produces text/html of course, but there's no way for it to know that.

mod_negotiation has infrastructure to consider a few other mime
as "pseudo html" during the negotiation phase.  Changing
INCLUDES_MAGIC_TYPE in apache:src/include/httpd.h to
application/x-httpd-php results in the behaviour you would hope for.

I haven't got the chops to try to turn this into an acceptable patch.
But the hack could work for others.


-- 
PHP Development Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php