[PHP-DEV] Bug #12281 Updated: base64_encode

2001-07-21 Thread sangdin

Thanks a lot for the immediate response. I will follow your
instructions.

Sangeetha



PHID: 12281
PHUpdated by: zak
PHReported By: [EMAIL PROTECTED]
PHOld Summary: base 64 _encode
PHStatus: Open
PHBug Type: Any
PHOperating System: windows NT
PHPHP Version: 4.0.4pl1
PHNew Comment:

PHI can't reproduce the problem base64_encode() under Win2k / PHP 4.0.6

PHDoes the following script fail?
PH?php echo base64_encode ('foo'); ?

PHRegarding the MSSQL problems, have you enabled the MSSQL extension? If not,

PHPrevious Comments:
PH

PH[2001-07-20 09:10:09] [EMAIL PROTECTED]

PHThe function base64_encode is not detected by the application. Should I upgr
PHnot identified by php. Should I reinstall the latest version
PHagain or please guide to upgrade the existing version to
PHenable these functions.

PH



PHATTENTION! Do NOT reply to this email!
PHTo reply, use the web interface found at http://bugs.php.net/?id=12281edit=




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12274 Updated: parser/string access problems

2001-07-21 Thread tegel

ID: 12274
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Strings related
Operating System: NT4
PHP Version: 4.0.4pl1
New Comment:

This piece of code works correct with our system as well:
?
$s = hello ;
$s[0] = H ;
var_dump($s) ;
?


Original sourcecode generating this problem is as follows (although i can not see a 
particular difference):

 function ansi2htmlsingle($t) {
 //convert special characters from one 8-byte 
 //charset another
  for ($i=0; $istrlen($t); $i++ ) {
   $c=ord($t[$i]);
   $d=$c;
   switch ($c) {
case 138: $d=169; break; 
case 142: $d=174; break; 
case 154: $d=185; break; 
case 158: $d=190; break; 
   };
   $t[$i]=chr($d); 
  };
  return $t;  
 };

The above function is working only not for character $t[0].

This one is:

 function ansi2htmlsingle($t) {
  $r='';
  for ($i=0; $istrlen($t); $i++ ) {
   $c=ord($t[$i]);
   $d=$c;
   switch ($c) {
case 138: $d=169; break; 
case 142: $d=174; break; 
case 154: $d=185; break; 
case 158: $d=190; break; 
   };
  $r=$r.chr($d);
  };
  return $r;  
 };



Previous Comments:


[2001-07-20 22:52:51] [EMAIL PROTECTED]

BTW, I can't reproduce it with a recent CVS checkout:

[cynic@linux cynic]$ cat test.php 
?
$s = hello ;
$s[0] = H ;
var_dump($s) ;
?
[cynic@linux cynic]$ php -q test.php 
string(5) Hello
[cynic@linux cynic]$ php -v
4.0.7-dev



[2001-07-20 14:22:20] [EMAIL PROTECTED]

Oops - that should be bogus, not closed. :)



[2001-07-20 14:20:38] [EMAIL PROTECTED]

The use of brackets as to access a single character from a string is deprecated.

Use curly braces instead and you will experience the expected behavior.

i.e.
?php
$foo= 'bar';
$foo{2} = 't';
echo $foo;
?

There is additional information at 
http://www.php.net/manual/en/language.types.string.php



[2001-07-20 05:55:38] [EMAIL PROTECTED]

Suppose a string $t:
one can access(read) all single characters of $t by reading elements $t[0] .. $t[n]
Setting $t[0] however fails, setting $t[1] .. $t[n] succeeds.
Looks like when setting element [0] that $t gets converted to array type, and after 
setting $t[0] the values $t[1]..$t[n] are simply lost.

why not this behaviour with other indexes as well, only with item[0] ? - that's not 
consistent.






Edit this bug report at http://bugs.php.net/?id=12274edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12274 Updated: parser/string access problems

2001-07-21 Thread tegel

ID: 12274
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Strings related
Operating System: NT4
PHP Version: 4.0.4pl1
New Comment:


Output with second version of function:
ŽITO d.o.o. Osijek

Output with first version of function:
Warning: Undefined offset: 1 in c:\inetpub\wwwroot\info.php on line 20
Warning: Undefined offset: 2 in c:\inetpub\wwwroot\info.php on line 20
etc. etc. Elements $t[1]..$t[n] are _lost_ !

changing function to start from element $t[1] (skip first character) like for ($i=1; 
$in; $i++) and all suddenly works fine... (except for first char not get 
translated)...




Previous Comments:


[2001-07-21 04:15:14] [EMAIL PROTECTED]

This piece of code works correct with our system as well:
?
$s = hello ;
$s[0] = H ;
var_dump($s) ;
?


Original sourcecode generating this problem is as follows (although i can not see a 
particular difference):

 function ansi2htmlsingle($t) {
 //convert special characters from one 8-byte 
 //charset another
  for ($i=0; $istrlen($t); $i++ ) {
   $c=ord($t[$i]);
   $d=$c;
   switch ($c) {
case 138: $d=169; break; 
case 142: $d=174; break; 
case 154: $d=185; break; 
case 158: $d=190; break; 
   };
   $t[$i]=chr($d); 
  };
  return $t;  
 };

The above function is working only not for character $t[0].

This one is:

 function ansi2htmlsingle($t) {
  $r='';
  for ($i=0; $istrlen($t); $i++ ) {
   $c=ord($t[$i]);
   $d=$c;
   switch ($c) {
case 138: $d=169; break; 
case 142: $d=174; break; 
case 154: $d=185; break; 
case 158: $d=190; break; 
   };
  $r=$r.chr($d);
  };
  return $r;  
 };





[2001-07-20 22:52:51] [EMAIL PROTECTED]

BTW, I can't reproduce it with a recent CVS checkout:

[cynic@linux cynic]$ cat test.php 
?
$s = hello ;
$s[0] = H ;
var_dump($s) ;
?
[cynic@linux cynic]$ php -q test.php 
string(5) Hello
[cynic@linux cynic]$ php -v
4.0.7-dev



[2001-07-20 14:22:20] [EMAIL PROTECTED]

Oops - that should be bogus, not closed. :)



[2001-07-20 14:20:38] [EMAIL PROTECTED]

The use of brackets as to access a single character from a string is deprecated.

Use curly braces instead and you will experience the expected behavior.

i.e.
?php
$foo= 'bar';
$foo{2} = 't';
echo $foo;
?

There is additional information at 
http://www.php.net/manual/en/language.types.string.php



[2001-07-20 05:55:38] [EMAIL PROTECTED]

Suppose a string $t:
one can access(read) all single characters of $t by reading elements $t[0] .. $t[n]
Setting $t[0] however fails, setting $t[1] .. $t[n] succeeds.
Looks like when setting element [0] that $t gets converted to array type, and after 
setting $t[0] the values $t[1]..$t[n] are simply lost.

why not this behaviour with other indexes as well, only with item[0] ? - that's not 
consistent.






Edit this bug report at http://bugs.php.net/?id=12274edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8741 Updated: preg functions interpret { as part of variable interpolation

2001-07-21 Thread cynic

ID: 8741
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: PCRE related
Operating System: Linux 2.x, Redhat 6.2
PHP Version: 4.0.3pl1


Previous Comments:


[2001-01-16 12:56:19] [EMAIL PROTECTED]

The following code does not work properly

$number = 999.00;
$precision = 2;
echo preg_replace(/\.0{$precision}/, , $number);

it echos 999.00

But if you escape the first `{' bracket, the regular expression works properly

echo preg_replace(/\.0\{$precision}/, , $number);

it echos 999









Edit this bug report at http://bugs.php.net/?id=8741edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #12240 Updated: microtime.x

2001-07-21 Thread jiv

According to the faq I should check if /usr/include/linux points to the
right place. Yes it does!

[root@jiv][11:40am] ~ # ls -lah /usr/include/linux/
lrwxrwxrwx   1 root root   28 Jan  1  2000 /usr/include/linux -
/usr/src/linux/include/linux/
[root@jiv][11:41am] ~ # ls -lah /usr/src/linux
lrwxrwxrwx   1 root root   20 Jul 19 01:22 /usr/src/linux -
/usr/src/linux-2.4.3/

The other suggestion from this faq is:
... or by installing a glibc-devel package that matches your glibc ... 
???


- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 10:25 PM
Subject: Bug #12240 Updated: microtime.x


 ID: 12240
 Updated by: rasmus
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Closed
 Bug Type: Any
 Operating System: Slackware 7.0
 PHP Version: 4.0.6
 New Comment:

 This is a FAQ - http://www.php.net/FAQ.php#6.12

 Basically you probably upgraded a Linux 2.2 box to the 2.4 kernel, right?
 And you screwed up your header files.

 Previous Comments:
 

 [2001-07-18 18:41:01] [EMAIL PROTECTED]

 The problem:
 _
 microtime.c: In function `php_if_getrusage':
 microtime.c:99: storage size of `usg' isn't known
 microtime.c:102: `RUSAGE_SELF' undeclared (first use in this function)
 microtime.c:102: (Each undeclared identifier is reported only once
 microtime.c:102: for each function it appears in.)
 microtime.c:108: `RUSAGE_CHILDREN' undeclared (first use in this function)
 make[3]: *** [microtime.lo] Error 1
 make[3]: Leaving directory `/usr/local/src/php-4.0.6/ext/standard'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/usr/local/src/php-4.0.6/ext/standard'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/local/src/php-4.0.6/ext'
 make: *** [all-recursive] Error 1
 ___

 A part from the ./configure output:
 ___
 [root@jiv][01:39am] /usr/local/src/php-4.0.6 #
/configure  --with-mysql=/usr/local/ --with-apxs=/var/lib/apache/sbin/apxs |
grep time
 checking for sys/time.h... yes
 checking for utime.h... yes
 checking whether struct tm is in sys/time.h or time.h... time.h
 checking for asctime_r... yes
 checking for ctime_r... yes
 checking for gettimeofday... yes
 checking for gmtime_r... yes
 checking for localtime_r... yes
 checking for setitimer... yes
 checking for strftime... yes
 checking for utime... yes
 checking whether utime accepts a null argument... yes
 checking for declared timezone... yes
 checking for type of reentrant time-related functions... POSIX
 configure: warning: You will need bison 1.28 if you want to regenerate the
Zend parser (found 1.27).


 



 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at
http://bugs.php.net/?id=12240edit=2


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Fwd: [PHP-DEV] * New Parameter Parsing Functions *

2001-07-21 Thread Andi Gutmans

Guys,

Andrei sent this Email a while ago and I don't remember anyone giving 
feedback. We'd be happy to hear what people think about this new parameter 
API in the Zend Engine. I think it has good potential especially for 
simplifying functions which accept read-only arguments (which is the case 
for most functions) of pre-determined types.
Please take another look at what Andrei wrote and see what you think.
Andi


Date: Tue, 10 Jul 2001 10:35:04 -0500
From: Andrei Zmievski [EMAIL PROTECTED]
To: PHP Developers [EMAIL PROTECTED]
User-Agent: Mutt/1.2.5i
Subject: [PHP-DEV] * New Parameter Parsing Functions *

New parameter parsing functions
===

It should be easier to parse input parameters to an extension function.
Hence, borrowing from Python's example, there are now a set of functions
that given the string of type specifiers, can parse the input parameters
and store the results in the user specified variables. This avoids most
of the IS_* checks and convert_to_* conversions. The functions also
check for the appropriate number of parameters, and try to output
meaningful error messages.


Prototypes
--
/* Implemented. */
zend_parse_parameters(int num_args, char *type_spec, ...);
zend_parse_parameters_ex(int flags, int num_args, char *type_spec, ...);

/* Not implemented yet. */
zend_parse_parameters_hash(HashTable *ht, char *type_spec, ...);
zend_parse_parameters_hash_ex(int flags, HashTable *ht, char *type_spec, ...);


The zend_parse_parameters() function takes the number of parameters
passed to the extension function, the type specifier string, and the
list of pointers to variables to store the results in. The _ex() version
also takes 'flags' argument -- current only ZEND_PARSE_PARAMS_QUIET can
be used as 'flags' to specify that the function should operate quietly
and not output any error messages.

The auto-conversions are performed as necessary. Arrays, objects, and
resources cannot be autoconverted.


Type specifiers
---
  l  - long
  d  - double
  s  - string (with possible null bytes) and its length
  b  - boolean, stored in zend_bool
  r  - resource (stored in zval)
  a  - array
  o  - object (of any type)
  O  - object (of specific type, specified by class entry)
  z  - the actual zval

  The following characters also have a meaning in the specifier string:
  | - indicates that the remaining parameters are optional, they
 should be initialized to default values by the extension 
 since they
 will not be touched by the parsing function if they are not
 passed to it.
 / - use SEPARATE_ZVAL_IF_NOT_REF() on the parameter it follows
 ! - the parameter it follows can be of specified type or NULL 
 (only applies
  to 'a', 'o', 'O', 'r', and 'z'). If NULL is passed, the results
 pointer is set to NULL as well.

Examples

/* Gets a long, a string and its length, and a zval */
long l;
char *s;
int s_len;
zval *param;
zend_parse_parameters(ZEND_NUM_ARGS(), lsz, l, s, s_len, param);


/* Gets an object of class specified by my_ce, and an optional double. */
zval *obj;
double d = 0.5;
zend_parse_parameters(ZEND_NUM_ARGS(), O|d, obj, my_ce, d);


/* Gets an object or null, and an array.
If null is passed for object, obj will be set to NULL. */
zval *obj;
zval *arr;
zend_parse_parameters(ZEND_NUM_ARGS(), O!a, obj, arr);


/* Gets a separated array. */
zval *arr;
zend_parse_parameters(ZEND_NUM_ARGS(), a/, arr));


/* Get only the first three parameters (useful for varargs functions). */
zval *z;
zend_bool b;
zval *r;
zend_parse_parameters(2, zbr!, z, b, r);


/* Get either a set of 3 longs or a string. */
long l1, l2, l3;
char *s;
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), 
lll, l1, l2, l3)) {
 /* manipulate longs */
} else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, 
ZEND_NUM_ARGS(), s, s)) {
 /* manipulate string */
} else {
 /* output error */
}

Comments and feedback are welcome.

-Andrei
* If it's never finished, you can't prove it doesn't work. *

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] parent/super??

2001-07-21 Thread Andi Gutmans

At 10:03 PM 7/20/2001 -0600, Chris Newbill wrote:
Hope I am not opening a can of worms here, but...

Did anything become final on whether or not super::foo() would work?  I'm
looking through the mail list archives and can't find a definate answer.

If the answer is 'no', that's fine I can work around it easily, would just
be nice to have  every now and then.

parent:foo() works.

Andi


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] a FIXME in head.c

2001-07-21 Thread Zeev Suraski

In the implementation of setcookie(), there's a FIXME line reading:
/* FIXME: XXX: this is not binary data safe */

I don't see how this can be binary safe, as we're creating a header line, 
which cannot contain NULLs anyway.  I think this comment should be removed, 
but I want to see if anybody else has any thoughts about this...

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Latest CVS CGI (on linux) segfaults when using '-q' or '-f' on nonexistent file

2001-07-21 Thread Zeev Suraski

This should be fixed now.  Thanks for the report!

At 17:29 20/07/2001, Markus Fischer wrote:
(gdb) run -f file_doesnt_exist
Starting program: /home/mfischer/php4/bin/php -f file_doesnt_exist
Unknown(0) : Fatal error - Unable to open file_doesnt_exist

Program received signal SIGSEGV, Segmentation fault.
0x4015a11f in getc () from /lib/libc.so.6
(gdb) bt
#0  0x4015a11f in getc () from /lib/libc.so.6
#1  0x0806cf7d in main (argc=3, argv=0xb524) at cgi_main.c:727
#2  0x4010d38b in __libc_start_main () from /lib/libc.so.6

Same with '-q'.

- Markus

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12296: printer

2001-07-21 Thread averegf

From: [EMAIL PROTECTED]
Operating system: Windows 98
PHP version:  4.0.6
PHP Bug Type: PHP options/info functions
Bug description:  printer

I have to send to print a page from browser, but the function 
printer_open(); 

it is not known. 

it excuses my ingles. thanks to help me

ATTE:
   Ing. Verenice Gasca

-- 
Edit bug report at: http://bugs.php.net/?id=12296edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12296 Updated: printer

2001-07-21 Thread sbergmann

ID: 12296
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: PHP options/info functions
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

You need to either compile ext/printer or get it from www.php4win.de. Note: This only 
works on Windows.

Previous Comments:


[2001-07-21 11:07:32] [EMAIL PROTECTED]

I have to send to print a page from browser, but the function 
printer_open(); 

it is not known. 

it excuses my ingles. thanks to help me

ATTE:
   Ing. Verenice Gasca






Edit this bug report at http://bugs.php.net/?id=12296edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12297 Updated: printer

2001-07-21 Thread sbergmann

ID: 12297
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows 98
PHP Version: 4.0.6
New Comment:

You need to either compile ext/printer or get it from www.php4win.de. Note: This only 
works on Windows.

Previous Comments:


[2001-07-21 11:08:48] [EMAIL PROTECTED]

I have to send to print a page from browser, but the function printer_open(); it is 
not known. it excuses my ingles. thanks to help me.






Edit this bug report at http://bugs.php.net/?id=12297edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12298: transparent sid doesn't work with transparent gzip compression

2001-07-21 Thread bjoern

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.14
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  transparent sid doesn't work with transparent gzip compression

As already mentioned on PHP-DEV, transparent session-id propagation doesn't
work when transparent gzip output compression is enabled.
-- 
Edit bug report at: http://bugs.php.net/?id=12298edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] a FIXME in head.c

2001-07-21 Thread Rasmus Lerdorf

 In the implementation of setcookie(), there's a FIXME line reading:
 /* FIXME: XXX: this is not binary data safe */

 I don't see how this can be binary safe, as we're creating a header line,
 which cannot contain NULLs anyway.  I think this comment should be removed,
 but I want to see if anybody else has any thoughts about this...

Yes, I wondered about that too.

And just for kicks I looked up who wrote that comment:

Mon Mar 16 06:41:11 1998 UTC (40 months ago) by jaakko

That's a long time for a FIXME comment to survive!  ;)

See:
http://cvs.php.net/viewcvs.cgi/php3/functions/head.c.diff?r1=1.82r2=1.83

And as you can see, the comment actual made sense in that context, however
the code it was commenting on has been removed without the comment being
removed.  He was referring to the strlen(cookie-value) call there.

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 3.0 Bug Summary Report

2001-07-21 Thread php-dev

 PHP 3.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (543 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
9610 Bogus  Dead link
9820 Open   File upload with any input tag
10101 Bogus  apache + mysqld + php3   == libphp3.so incorrect symbol...
10457 Bogus  ALKHOBAR
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of buf isn't known
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
3033 Open   Fatal compile error on functions/ldap.c
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3677 Open   files not found
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
3151 Open   php.exe compile warnings because of arpa/inet.h
6942 Open   php sockets unusable with irix-OS
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Duplicate  DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace  dbmDelete return inverse value
6720 Open   persistent Warning: driver initialization failed on db_open db2 2.7.7
===[Documentation problem]
11155 Open   
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   nt-service problem
2414 Open   php3_vmailmgr.so refuses to load
2862 Open   LDAP in Win32 Bin dist is linked to MSVCRTD.DLL
3168 Open   cannot start apache 1.3.9 if mysql is compiled in, but can RESTART 
successfully
3292 Open   MySQL module causes DSO to fail.
3321 Open   Apache Complaining about undefined symbol: dlst_first
3659 Open   mod_php + apache w/mod_so hangs in sched_yield
3680 Open   Apache won't start after install php3
3752 Open   Apache configtest dumps core with DSO  versioning
3781 Open   Cannot load /libexec/libphp3.so
3861 Open   php as a dyn. mod.  configured with IBM db2 support prevents svr 
startup
9565 Open   php3_ldap.dll is compiled as DEBUG
===[IMAP related]=
2816 Open   Imap_open error when user_id length=3 char
2847 Open   imap_search - dates don't work
3040 Duplicate  imap_open
3236 Open   Email message 

[PHP-DEV] Bug #12299: Opening a new session truncates the html output

2001-07-21 Thread flatline

From: [EMAIL PROTECTED]
Operating system: Debian Potato 2.2.19
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  Opening a new session truncates the html output

CODE SNIPPET:

?
session_start();

echo '
html
head
/head
body
some text here
/body
/html
';

?

The output will be the following:
html
head
/head
body
some text here
/body
/


It truncates the last /html tag! When I reload the page, it displays
correctly. When I open a new browser (so a new session id must be created),
the problem is the same. 

When I close the session with session_destroy before the  output, then it
works fine.


CONFIGURE LINE:
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs'
'--with-regex=system' '--with-config-file-path=/etc/php4/apache'
'--disable-rpath' '--disable-debug' '--enable-memory-limit'
'--enable-calendar' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2'
'--enable-ctype' '--with-db2' '--with-ndbm' '--enable-exif'
'--enable-filepro' '--enable-ftp' '--with-gettext' '--with-mm'
'--enable-mbstring' '--enable-mbstr-enc-trans' '--with-pcre-regex=/usr'
'--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-yp'
'--with-zlib' '--without-pgsql' '--disable-static' '--with-layout=GNU'
'--with-gd=shared,/usr' '--with-jpeg-dir=shared,/usr'
'--with-png-dir=shared,/usr' '--with-mhash=shared,/usr'
'--with-mysql=shared,/usr'


ADDITIONAL SYSTEM DESCRIPTION:

APACHE 1.3.20
-- 
Edit bug report at: http://bugs.php.net/?id=12299edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: Bug #10664 Updated: php4.0.5 ISAPI dll gives procedure not found

2001-07-21 Thread vlm

Hi.
I forgot to supply a PWD in the first place.
And now I can not post a new comment.
Can you maybe insert a password in your DB and mail it to me, please?
Thanx, dD


- Original Message -
From: Bug Database [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 3:47 PM
Subject: Bug #10664 Updated: php4.0.5 ISAPI dll gives procedure not found


 ID: 10664
 User Update by: [EMAIL PROTECTED]
 Status: Open
 Bug Type: IIS related
 Operating system: Windows 2000 Advanced server
 PHP Version: 4.0.5
 Description: php4.0.5 ISAPI dll gives procedure not found

 Also, if you look in your event log, you will see this message:

 Event Type: Error
 Event Source: W3SVC
 Event Category: None
 Event ID: 14
 Date: 6/25/2001
 Time: 1:56:44 PM
 User: N/A
 Computer: D1WAR01
 Description:
 The HTTP Filter DLL C:\Inetpub\Scripts\PHP\sapi\php4isapi.dll failed to
load.  The data is the error.
 For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
 Data:
 : 7f 00 00 00   ...



[..]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-07-21 Thread CVS Account Request

Full name: Philip Olson
Email: [EMAIL PROTECTED]
ID:philip
Purpose:   Password reset request.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9498 Updated: quoted_printable_decode - Incorrect function result

2001-07-21 Thread kir

ID: 9498
Updated by: kir
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Assigned
Bug Type: Mail related
Operating System: Win NT 4.0
PHP Version: 4.0.2
Old Assigned To: 
Assigned To: kir


Previous Comments:


[2001-02-28 11:57:17] [EMAIL PROTECTED]

note:
in PHP4.0.3pl1 it work's correctly, is really a bug



[2001-02-28 10:41:10] [EMAIL PROTECTED]

if I have a RTF file encoded with quoted-printable (eg. mime mail generated by MS 
Outlook), the quoted_printable_decode() function do not decode it.
if I use imap_qprint(), is correctly decoded !!!





Edit this bug report at http://bugs.php.net/?id=9498edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12300: exec() family problems

2001-07-21 Thread marv

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.0.6
PHP Bug Type: Program Execution
Bug description:  exec() family problems

exec(), system(), etc. cause php to hang when called through the browser.
when executed from the command line, it works fine.

I'm running PHP4.06, PWS, Win98SE. I'm using the PHP binary downloaded from
php.net.

I have a batch file, test.bat which contains one line:
echo Hello

My PHP script is:

$cmd=test.bat;
echo Executing command: [$cmd]\n;
system($cmd,$value);
echo Return value is: $value\n;

When I run this from the command line, ie. php test.bat, it works as
expected. When I call the script from the browser, a command window opens
and closes quickly, I get no output in the browser and the browser keeps
trying to load the script. If I hit stop, the browser stops with nothing
retrieved at all. PHP is still listed in the task list when pressing
CTRL+ALT+DEL.

-- 
Edit bug report at: http://bugs.php.net/?id=12300edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12301: include() in included file should check included file's directory

2001-07-21 Thread marv

From: [EMAIL PROTECTED]
Operating system: Any
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  include() in included file should check included file's directory

When using include(), it should check the current file's directory.
Currently PHP start from the script's directory.

Say you have the following files:
scripts/main.php
scripts/admin/tools.php
scripts/include/process.inc
scripts/include/lib.inc

If process.inc wants to include lib.inc, you would need to know from where
it was included. If you started off from main.php, main.php would have
include('include/process.inc') and process.inc would have
include('include/lib.inc'). If you started off from tools.php, tools.php
would have include('../include/process.inc') and process.inc would have
include('../include/lib.inc').

Which is very silly, IMO. process.inc needs lib.inc, and i can make sure
they're together in the same directory, so i can simply use
include('lib.inc') in process.inc. why should i have to care what script
and in what directory included process.inc?

I can't believe this feature isn't there. I checked all over the place but
it seems it isn't. Am I the only one who uses more than one directory for
my scripts?

If this feature breaks some old scripts, you could have an option in the
config file to turn it on or off.


-- 
Edit bug report at: http://bugs.php.net/?id=12301edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12301 Updated: include() in included file should check included file's directory

2001-07-21 Thread cnewbill

ID: 12301
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.6
New Comment:

No you're not the only one who does this.

You just need to modify your php.ini include_path setting.

By default it is .:/usr/local/lib/php/, i.e. check the current directory then check 
/usr/local/lib/php/.

So you would want yours to be .:/usr/local/lib/php/:/path/to/scripts.  Then you 
could do this.

?php

include(main.php);
include(admin/tools.php);
include(include/process.inc);
include(include/lib.inc);

// rest of code here

?

-Chris


Previous Comments:


[2001-07-21 15:29:09] [EMAIL PROTECTED]

When using include(), it should check the current file's directory. Currently PHP 
start from the script's directory.

Say you have the following files:
scripts/main.php
scripts/admin/tools.php
scripts/include/process.inc
scripts/include/lib.inc

If process.inc wants to include lib.inc, you would need to know from where it was 
included. If you started off from main.php, main.php would have 
include('include/process.inc') and process.inc would have include('include/lib.inc'). 
If you started off from tools.php, tools.php would have 
include('../include/process.inc') and process.inc would have 
include('../include/lib.inc').

Which is very silly, IMO. process.inc needs lib.inc, and i can make sure they're 
together in the same directory, so i can simply use include('lib.inc') in process.inc. 
why should i have to care what script and in what directory included process.inc?

I can't believe this feature isn't there. I checked all over the place but it seems it 
isn't. Am I the only one who uses more than one directory for my scripts?

If this feature breaks some old scripts, you could have an option in the config file 
to turn it on or off.







Edit this bug report at http://bugs.php.net/?id=12301edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12301 Updated: include() in included file should check included file's directory

2001-07-21 Thread cnewbill

ID: 12301
Updated by: cnewbill
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.6
New Comment:

I guess I should clarify this.

The behavior is that when an include()/require() is issued it checks the include_path 
in the order specified.

So say my program is in /www and my scripts are in /www/scripts.  My include_path has 
been modified to include /www/scripts/.

if I do include(main.php) in /www/index.php , then php first checks the working 
directory which is /www, it sees I have no main.php here so it checks the next entry 
in include_path /usr/local/lib/php/...still no dice, finally it checks 
/www/scripts...voila it finds it and includes it without me having to know the path.

-Chris

Previous Comments:


[2001-07-21 15:57:26] [EMAIL PROTECTED]

No you're not the only one who does this.

You just need to modify your php.ini include_path setting.

By default it is .:/usr/local/lib/php/, i.e. check the current directory then check 
/usr/local/lib/php/.

So you would want yours to be .:/usr/local/lib/php/:/path/to/scripts.  Then you 
could do this.

?php

include(main.php);
include(admin/tools.php);
include(include/process.inc);
include(include/lib.inc);

// rest of code here

?

-Chris




[2001-07-21 15:29:09] [EMAIL PROTECTED]

When using include(), it should check the current file's directory. Currently PHP 
start from the script's directory.

Say you have the following files:
scripts/main.php
scripts/admin/tools.php
scripts/include/process.inc
scripts/include/lib.inc

If process.inc wants to include lib.inc, you would need to know from where it was 
included. If you started off from main.php, main.php would have 
include('include/process.inc') and process.inc would have include('include/lib.inc'). 
If you started off from tools.php, tools.php would have 
include('../include/process.inc') and process.inc would have 
include('../include/lib.inc').

Which is very silly, IMO. process.inc needs lib.inc, and i can make sure they're 
together in the same directory, so i can simply use include('lib.inc') in process.inc. 
why should i have to care what script and in what directory included process.inc?

I can't believe this feature isn't there. I checked all over the place but it seems it 
isn't. Am I the only one who uses more than one directory for my scripts?

If this feature breaks some old scripts, you could have an option in the config file 
to turn it on or off.







Edit this bug report at http://bugs.php.net/?id=12301edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] ext_skel and php_extname.c vs. extname.c

2001-07-21 Thread Stig S. Bakken

Jon Parise wrote:
 
 On Thu, Jul 19, 2001 at 05:50:42PM -0600, Joey Smith wrote:
 
  I had thought the decision was that php_extname.c was the correct way
  to name the .c file for an extension, so that we are less likely to
  conflict with any files from the package itself?
 
  ext_skel creates a .c file using the bare extname.
 
 I thought that convention only applied to the header files.

So did I, but practices seem to differ.  I find it very handy for
auto-completion that the header file name always starts with php_
(unless the extension is called P-something of course).

 - Stig

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12237 Updated: date(T) returns null

2001-07-21 Thread andy

ID: 12237
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Windows NT 4.0 Workstation (PWS)
PHP Version: 4.0.6
New Comment:

Works fine on Red Hat Linux 7.  Must be a windows/pws
problem.  Can anyone else with windows/pws test this?

Previous Comments:


[2001-07-18 17:01:34] [EMAIL PROTECTED]

// this should print EDT or whatever
// but it prints nothing.
echo date(T);





Edit this bug report at http://bugs.php.net/?id=12237edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Moving output.c from ext/standard to main/

2001-07-21 Thread Stig S. Bakken

Zeev Suraski wrote:
 
 It's been bugging me for over a year now, and I'm now trying to figure out
 the best way to do it.  output.c sits today in ext/standard, which is
 wrong, as it's really a part of the inner core of PHP, and not a set of
 functions.
 If I move the file in the CVS repository and fix the references, then
 everything would be fine, history would be retained, except checking out
 old CVS's will no longer work.
 If import the file into main/ and delete it from ext/standard, we lose the
 history for it, which is sucky.
 I'm thinking about moving the file in CVS, and in addition to fixing the
 HEAD branch, fix also the 4.0.6 branch, so that we at least can check out
 one version back.  What do you guys think?

If you mv the file on the server you'll break checkouts of older code,
won't you?  What about _copying_ the file on the server and then do a
normal cvs remove in ext/standard?  Then you'll have working checkouts
and history.

 - Stig

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11062 Updated: Sharing Violation Error Message

2001-07-21 Thread andy

ID: 11062
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Directory function related
Operating System: NT 4.0 SP6a
PHP Version: 4.0.6
New Comment:

Make sure Windows or any other app has this directory or any
files in it locked (using them.)

Previous Comments:


[2001-07-03 11:38:02] [EMAIL PROTECTED]

Yes, the purpose of the script is to display the contents of a directory and make them 
available via the IIS server.  Unfortunately, I need to make use of the NT security 
model, so switching to apache is not an option (or I would have, a long time ago).  Do 
you know if this IIS bug was fixed in IIS 5?  



[2001-06-28 19:02:46] [EMAIL PROTECTED]

Is there any chance that while testing this you have also caused IIS to serve any of 
the files in the directories up? There is an unpleasant problem with IIS whereby it 
holds files open for some time after serving them. This normally manifests itself by 
stopping you editing and saving out a html file you have just looked at via the web 
server, however it would also stop you renaming any parent directory of the file.



[2001-06-28 07:58:57] [EMAIL PROTECTED]

Yes it does.  :(   Does the folder need to have special permissions?  Right now I've 
got SYSTEM and CREATOR_OWNER with full controll, and a bunch of groups.



[2001-06-23 20:58:38] [EMAIL PROTECTED]

Does this happen with PHP 4.0.6 ?




[2001-06-04 01:27:47] [EMAIL PROTECTED]

In order to regain control over the directories, it is necessary to restart the entire 
IIS Admin Service.  Restarting the World Wide Web Publishing Service alone does 
not fix the problem.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11062


Edit this bug report at http://bugs.php.net/?id=11062edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12224 Updated: unsubscribe

2001-07-21 Thread andy

ID: 12224
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *General Issues
Operating System: 
PHP Version: 4.0.6
New Comment:

Can you tell me the subjects of some of the emails, please?
 If I know the subjects I can figure out what list you are
subscribed to.

If you got a Welcome message, this should tell you how to
unsubscribe.

Previous Comments:


[2001-07-18 04:35:33] [EMAIL PROTECTED]

Hello, 
I'm doing all to unsubscribe from your list but I'm still getting mails from you.
please unsubscribe me now.
my email: [EMAIL PROTECTED]

Thanks
Irit





Edit this bug report at http://bugs.php.net/?id=12224edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11582 Updated: php segfaults upon array operation

2001-07-21 Thread andy

ID: 11582
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.0.5
New Comment:

Does this happen with 4.0.6?

Previous Comments:


[2001-06-20 16:41:40] [EMAIL PROTECTED]

oops..




[2001-06-20 16:41:27] [EMAIL PROTECTED]

status - feedback




[2001-06-20 15:05:37] [EMAIL PROTECTED]

hi,

it took some time to isolate the problem, but here is the
testcase. the segfault is not triggered if PHP was compiled --enable-debug version, in 
which case it complains
that it Cannot use scalar value as an array.

?php
header(Content-type: text/plain);

$arr[data] = scalar;

for ($i=0;$i  200; $i++) {
  print $i.\n;
  // trying to use scalar value as an array
  $arr[data][entries][] = array();
}

?


i hope this helps.

regards,
  lukas




[2001-06-20 12:38:49] [EMAIL PROTECTED]

status - feedback




[2001-06-20 11:34:39] [EMAIL PROTECTED]

please send the shortest possible testcase that shows your problem!




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11582


Edit this bug report at http://bugs.php.net/?id=11582edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12224 Updated: unsubscribe

2001-07-21 Thread jimw

ID: 12224
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: 
PHP Version: 4.0.6
New Comment:

it was php-gtk. they're unsubscribed now.

Previous Comments:


[2001-07-21 18:46:05] [EMAIL PROTECTED]

Can you tell me the subjects of some of the emails, please?
 If I know the subjects I can figure out what list you are
subscribed to.

If you got a Welcome message, this should tell you how to
unsubscribe.



[2001-07-18 04:35:33] [EMAIL PROTECTED]

Hello, 
I'm doing all to unsubscribe from your list but I'm still getting mails from you.
please unsubscribe me now.
my email: [EMAIL PROTECTED]

Thanks
Irit





Edit this bug report at http://bugs.php.net/?id=12224edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12054 Updated: getcwd() returns empty string

2001-07-21 Thread andy

ID: 12054
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Directory function related
Operating System: Red Hat Linux 2.2.12-20
PHP Version: 4.0.6
New Comment:

I tried your script with RH Linux 7 and this worked fine
with apache and with the shell script you presented.

Previous Comments:


[2001-07-11 10:36:52] [EMAIL PROTECTED]

Just upgraded to 4.0.6 and getcwd() no longer works.

test script:

#!/usr/bin/php
?php
$curdir = getcwd();
print ( Current dir is $curdir\n );
?

Old:
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html

Current dir is /usr/local/nstats/stats/bin

New:
Extensions are not supported on this platform.
X-Powered-By: PHP/4.0.6
Content-type: text/html

Current dir is 

Configure info:
./configure \
--enable-track-vars \
--with-xml \
--enable-versioning \
--with-png-dir=/usr/local/png \
--with-zlib-dir=/usr/local/zlib \
--with-jpeg-dir=/usr/local/jpeg \
--with-freetype-dir=/usr/local/freetype \
--with-gd=/usr/local/gd-2.0.1 \
--with-gettext \
--with-socket \
--with-mysql=/usr/local/mysql-3.23.28-gamma-pc-linux-gnu-i686 
\
--with-sybase-ct=/usr/local/freetds \
--with-rrdtool

Versions:
jpeg-6b
freetype-2.0.4
zlib-1.1.3
libpng-1.0.12
gd-2.0.1
rrdtool-1.0.33 (linked to the above gd, png and zlib libs)
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 
release)
Red Hat 6.2
everything statically linked.








Edit this bug report at http://bugs.php.net/?id=12054edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12262 Updated: php.exe - Entry Point Not Found

2001-07-21 Thread mclerc

ID: 12262
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows 2000 Server, IIS5.0
PHP Version: 4.0.6
New Comment:

Mr. Driscoll

I was loading the 4.0.6 version without extensions, upgrading from 4.0.4 that also did 
not have extensions.  And I did make sure both DLLs checked out and they did, both 
were current to 4.0.6 and error still occurs.

Thank you


Previous Comments:


[2001-07-20 10:38:43] [EMAIL PROTECTED]

Apologies if you've tried this already but...

Load the two copies of php4ts.dll into a text editor 
(notepad wil do) and search for 4.0.6 just to make really 
sure.

If you are convinced beyond doubt that there are no old 
php modules (including old extention modules) lying 
around, then (question to Windows developers) is there a 
possibilty that this is something to do with the 
msvcrt.dll - or its W2K equivalent?




[2001-07-20 10:19:19] [EMAIL PROTECTED]

I have done this, I used 4.0.5 instead of .6 and it works fine.  PHP4TS.DLL
only exists in 2 places on my server, and both were current to the new PHP,
or else I wouldn't have reported this.




[2001-07-20 07:44:14] [EMAIL PROTECTED]

sounds like you haven't overwritten an old stale dll.
first stop your webserver, then overwrite everything with the new distribution and 
finally restart your webserver.



[2001-07-19 14:01:10] [EMAIL PROTECTED]

After installing PHP4.0.6 over the old PHP 4.0.4, I was getting CGI Incorrect Header 
errors from my php websites, so I tried to run PHP.EXE from the command line to see if 
that would give a specific error and it pops up an error window stating below:

php.exe - Entry Point Not Found
The procedure entry point php_output_startup could not be located in the dynamic link 
library php4ts.dll

php4ts.dll does exist in the same directory as PHP.EXE, and I have copied it to 
%systemroot%\system32.

I am running Windows 2000 Server SP2.





Edit this bug report at http://bugs.php.net/?id=12262edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8780 Updated: difference in fwrite with cgi/apachemodule

2001-07-21 Thread andy

ID: 8780
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Filesystem function related
Operating System: Windows NT/2000
PHP Version: 4.0.3pl1
New Comment:

What's the bug???  I don't see this as a bug...

Previous Comments:


[2001-01-18 08:20:51] [EMAIL PROTECTED]

If I use PHP as CGI with Apache 1.3.12, I must add chr(13).chr(10) to textfiles, when 
I write them with fwrite and I want some linefeed. If PHP is used as a Apache module, 
in textfiles there are double linefeed [one from PHP the other from chr(13).chr(10)].

Why is it different and will one or the other case be corrected?

Thanks, Rolf.





Edit this bug report at http://bugs.php.net/?id=8780edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Michael Glazer


- Original Message -
From: Jim Winstead [EMAIL PROTECTED]
To: Michael Glazer [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 6:37 PM
Subject: Re: PHP XMF


 you should take this up on the [EMAIL PROTECTED] mailing list.

 jim

 On Sat, Jul 21, 2001 at 04:00:44AM -0400, Michael Glazer wrote:
  Hi Jim
 
  My name is Michael Glazer I am an IA and the founder of
http://4arrow.com
 
  I am sorry to be emailing you. I found your email at news.php.net.
  I have been tirelessly looking for a way to contact the folks at php.net
to no avail.
 
  I have developed a thin layered gateway application using PHP and Apache
directives.
 
  The primary use of XPC (http://xpc.4arrow.com) (http://dev.4arrow.com)
is a CMF similar to http://cmf.zope.org
 
  I was hoping to open my development on php.net with possibly
http://cmf.php.net
 
  XPC can be used as a Intranet, Extranet, Web hosting, collaborative
communities and much more.
 
  It is simply a gateway that parses URIs sent to it and outputs the
appropriate data using standard HTTP requests.
 
  I see XPC as weblogs.com, blogger.com, phpnuke.org, and cmf.zope.org to
the Nth degree.
 
  XPC is not server software, not a module, or a plugin, it can be run in
any php enabled Apache web serving folder with no modifications. Therefore,
web hosted users can utilize XPC as well. Best of all XPC eliminates the
need for query strings.
 
  I am planning on publicly releasing the first alpha version on Tuesday
July 24th at http://dev.4arrow.com.
 
  Please let me know what your thoughts are for a potential open
development site such as http://cmf.php.net
 
  Thank you in advance
 
  Michael Glazer
  Information Architect
  www.4arrow.com
  [EMAIL PROTECTED]


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

Could you please format your message to something that is readable and
explain what exactly cmf.php.net would provide?

-Rasmus

On Sat, 21 Jul 2001, Michael Glazer wrote:


 - Original Message -
 From: Jim Winstead [EMAIL PROTECTED]
 To: Michael Glazer [EMAIL PROTECTED]
 Sent: Saturday, July 21, 2001 6:37 PM
 Subject: Re: PHP XMF


  you should take this up on the [EMAIL PROTECTED] mailing list.
 
  jim
 
  On Sat, Jul 21, 2001 at 04:00:44AM -0400, Michael Glazer wrote:
   Hi Jim
  
   My name is Michael Glazer I am an IA and the founder of
 http://4arrow.com
  
   I am sorry to be emailing you. I found your email at news.php.net.
   I have been tirelessly looking for a way to contact the folks at php.net
 to no avail.
  
   I have developed a thin layered gateway application using PHP and Apache
 directives.
  
   The primary use of XPC (http://xpc.4arrow.com) (http://dev.4arrow.com)
 is a CMF similar to http://cmf.zope.org
  
   I was hoping to open my development on php.net with possibly
 http://cmf.php.net
  
   XPC can be used as a Intranet, Extranet, Web hosting, collaborative
 communities and much more.
  
   It is simply a gateway that parses URIs sent to it and outputs the
 appropriate data using standard HTTP requests.
  
   I see XPC as weblogs.com, blogger.com, phpnuke.org, and cmf.zope.org to
 the Nth degree.
  
   XPC is not server software, not a module, or a plugin, it can be run in
 any php enabled Apache web serving folder with no modifications. Therefore,
 web hosted users can utilize XPC as well. Best of all XPC eliminates the
 need for query strings.
  
   I am planning on publicly releasing the first alpha version on Tuesday
 July 24th at http://dev.4arrow.com.
  
   Please let me know what your thoughts are for a potential open
 development site such as http://cmf.php.net
  
   Thank you in advance
  
   Michael Glazer
   Information Architect
   www.4arrow.com
   [EMAIL PROTECTED]





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12301 Updated: include() in included file should check included file's directory

2001-07-21 Thread marv

ID: 12301
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.6
New Comment:

Using include_path does not solve the problem. include_path works fine if my directory 
structure is rigid and not liable to change. In which case, I know where my scripts 
are going to be. Even if include_path is not there, I could simply specify the path in 
include() since I know exactly where it is.

My request is required in cases where 1) I do not know the full path 2) my directory 
structure is not rigid OR 3) I do not have access to php.ini (because my web provider 
does not allow me to access/modify it)

Consider that I want this to work without having to include() every file in the main 
script. main.php requires process.inc. process.inc requires lib.inc. but the coder for 
main.php does not know process.inc requires lib.inc, and so will not know to 
include(lib.inc) in main.php. the coder simply knows process.inc is required. the 
coder for process.inc must know where lib.inc is, but can only specify a location 
relative to process.inc (since the code might be installed anywhere).

Say that I created a library of php functions. I would want to tell a coder 'just 
include process.inc and of you go'. process.inc will include other files that are in 
the same directory as itself, or in subdirectories. a coder using my library might 
install it in several locations. say they have a current website, a development 
website, and an experimetal website. So you have
/www/website/scripts/process.inc
/www/devsite/scripts/process.inc
/www/expsite/scripts/process.inc

Do they have to include all paths in include_path? And every time they add a site, or 
a new install, they have to modify include_path? Why do I have to modify my 
development platform for every new project?

And what if the dependancies of process.inc change? why does the coder using my 
library have to know this and modify all their includes?

And yes, you might need three sepearate copies of process.inc and not be able to use 
one copy. There might be a configuration file that needs to be diffrent in each 
install. Or perhaps you are modifying certain files in each copy.

Also consider that C/C++ have an include directory, for the standard libraries, but 
the #include directive searches from the directory of the file that has the #include 
statement, not the topmost source file.

This is a very real problem at our company and we find its a limitation on php's 
ability for code encapsulation and re-usability.


Previous Comments:


[2001-07-21 16:04:25] [EMAIL PROTECTED]

I guess I should clarify this.

The behavior is that when an include()/require() is issued it checks the include_path 
in the order specified.

So say my program is in /www and my scripts are in /www/scripts.  My include_path has 
been modified to include /www/scripts/.

if I do include(main.php) in /www/index.php , then php first checks the working 
directory which is /www, it sees I have no main.php here so it checks the next entry 
in include_path /usr/local/lib/php/...still no dice, finally it checks 
/www/scripts...voila it finds it and includes it without me having to know the path.

-Chris



[2001-07-21 15:57:26] [EMAIL PROTECTED]

No you're not the only one who does this.

You just need to modify your php.ini include_path setting.

By default it is .:/usr/local/lib/php/, i.e. check the current directory then check 
/usr/local/lib/php/.

So you would want yours to be .:/usr/local/lib/php/:/path/to/scripts.  Then you 
could do this.

?php

include(main.php);
include(admin/tools.php);
include(include/process.inc);
include(include/lib.inc);

// rest of code here

?

-Chris




[2001-07-21 15:29:09] [EMAIL PROTECTED]

When using include(), it should check the current file's directory. Currently PHP 
start from the script's directory.

Say you have the following files:
scripts/main.php
scripts/admin/tools.php
scripts/include/process.inc
scripts/include/lib.inc

If process.inc wants to include lib.inc, you would need to know from where it was 
included. If you started off from main.php, main.php would have 
include('include/process.inc') and process.inc would have include('include/lib.inc'). 
If you started off from tools.php, tools.php would have 
include('../include/process.inc') and process.inc would have 
include('../include/lib.inc').

Which is very silly, IMO. process.inc needs lib.inc, and i can make sure they're 
together in the same directory, so i can simply use include('lib.inc') in process.inc. 
why should i have to care what script and in what directory included process.inc?

I can't believe this feature isn't 

[PHP-DEV] Bug #12138 Updated: Image broken

2001-07-21 Thread andy

ID: 12138
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Graphics related
Operating System: Sparc Solaris 8
PHP Version: 4.0.6
New Comment:

Are you saying that the image works fine when it is
requested by itself (test.php), but not when it is
referenced by a html page (test.html)?

Previous Comments:


[2001-07-13 07:07:04] [EMAIL PROTECTED]

test.php

?php
header (Content-type: image/png);
$im = @ImageCreate (50, 100)
or die (Cannot Initialize new GD image stream);
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5,  test, $text_color);
ImagePng ($im);
ImageDestroy($im);
?


test.html

html
headtitletest/title/head
body
Hellobrbr
img src=test.php
/body
/html

Configuration:

gd-1.8.4, apache-1.3.20, php-4.0.6

  ./configure\
--without-mysql\
--with-oci8 \
--with-oracle\
--with-imap\
--with-ldap\
--with-db3 \
--enable-sysvsem\
--enable-sysvshm\
--with-mm=/usr/local\
--enable-track-vars\
--enable-trans-sid\
--enable-shmop\
--with-gd \
--with-png-dir=/usr/local/lib \
--with-zlib-dir=/usr/local/lib \
--enable-inline-optimization \
--enable-bcmath \
--with-gettext \
--with-mcal=/usr/local/mcal \
--with-mcrypt \
--disable-debug \
--with-apxs=/usr/local/apache/bin/apxs

Desc:
When the Image (test.php) is referenced by a html file (test.html) it is shown as 
broken in the browser window.

When calling test.php directly the Image is shown correctly, but by shift-reloading 
the page (test.php) the image is broken again (a normal reload shows the image).

It did not occur with php-4.0.5





Edit this bug report at http://bugs.php.net/?id=12138edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8664 Updated: Impossible to use ImageColorTransparent under certain conditions

2001-07-21 Thread andy

ID: 8664
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: GD related
Operating System: Linux
PHP Version: 4.0.1pl2
New Comment:

Try using ImageColorExact or ImageColorClosest

The manual pages are below

http://php.net/manual/en/function.imagecolorexact.php
http://php.net/manual/en/function.imagecolorclosest.php


Previous Comments:


[2001-01-11 17:10:08] [EMAIL PROTECTED]

By limiting the use of ImageColorTransparent to working on colors
returned by ImageColorAllocate, the library prevents one from
modifying pre-existing images.  For example, suppose an existing
image has a transparent color set. Now, we load the image using
ImageCreateFromGIF. We proceed to add a text blurb, and then
issue ImageGif.  The transparency is removed, and there is no
way to set it, because there is no way to map an existing color
index in the palette to an ImageColor object(?) so that it can
be passed in to ImageColorTransparent.

Ideally, ImageColorTransparent should have been made to
work with color indexes the way the native gd routines work.
But, to avoid breaking code, I'd recommend adding a new method
called ImageColorTransparentByIndex which accepted a color
index as the second parameter instead of a color object returned
by ImageColorAllocate.





Edit this bug report at http://bugs.php.net/?id=8664edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8664 Updated: Impossible to use ImageColorTransparent under certain conditions

2001-07-21 Thread andy

ID: 8664
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: GD related
Operating System: Linux
PHP Version: 4.0.1pl2
New Comment:

Try using ImageColorExact or ImageColorClosest

The manual pages are below

http://php.net/manual/en/function.imagecolorexact.php
http://php.net/manual/en/function.imagecolorclosest.php


Previous Comments:


[2001-07-21 20:45:17] [EMAIL PROTECTED]

Try using ImageColorExact or ImageColorClosest

The manual pages are below

http://php.net/manual/en/function.imagecolorexact.php
http://php.net/manual/en/function.imagecolorclosest.php




[2001-01-11 17:10:08] [EMAIL PROTECTED]

By limiting the use of ImageColorTransparent to working on colors
returned by ImageColorAllocate, the library prevents one from
modifying pre-existing images.  For example, suppose an existing
image has a transparent color set. Now, we load the image using
ImageCreateFromGIF. We proceed to add a text blurb, and then
issue ImageGif.  The transparency is removed, and there is no
way to set it, because there is no way to map an existing color
index in the palette to an ImageColor object(?) so that it can
be passed in to ImageColorTransparent.

Ideally, ImageColorTransparent should have been made to
work with color indexes the way the native gd routines work.
But, to avoid breaking code, I'd recommend adding a new method
called ImageColorTransparentByIndex which accepted a color
index as the second parameter instead of a color object returned
by ImageColorAllocate.





Edit this bug report at http://bugs.php.net/?id=8664edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11813 Updated: ImageGammaCorrect no longer works

2001-07-21 Thread andy

ID: 11813
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
Operating System: Win NT 4.0
PHP Version: 4.0.6
New Comment:

Try setting the error_reporting level so that the script
shows EVERYTHING.  This may or may not help.

Previous Comments:


[2001-06-30 19:20:05] [EMAIL PROTECTED]

A script that worked in PHP 4.0.4 no longer works in PHP 4.0.6 (with the php_gd.dll 
bundled with the Win32 binaries). 

Here's a snippet:
$srcImgName = SWD2.jpg;
$dstImgName = gam_ . $srcImgName;
$srcImage = ImageCreateFromJPEG( $srcImgName );
ImageGammaCorrect( $srcImage, 1.8, 2.2 );
ImageJPEG( $srcImage, $dstImgName );

No errors are produced, and the new image is created but it is identical to the 
original -- no gamma correction has occurred.







Edit this bug report at http://bugs.php.net/?id=11813edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11976 Updated: image_copy_resized does not work properly

2001-07-21 Thread andy

ID: 11976
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: windows 98 SE
PHP Version: 4.0.6
New Comment:

Works fine for me (I am using Linux.)  Try removing the
header function (or set it to text/html) and see if there
are any errors/warnings that are corrupting the image.

Previous Comments:


[2001-07-09 10:04:13] [EMAIL PROTECTED]

I used this function in  a script with PHP 4.0.5. It works very well. I installed PHP 
4.0.6 and the script doesn't work anymore?
I found that it was this function who didn't work well.

Sorry about my English.

See my script:
?
 Header(Content-type: image/png);
 $x=400;
 $y=400;
 $data=array (3, 1, 7, 2, 5, 4, 6);
 $im = imagecreate($x,$y);
 $black = ImageColorAllocate($im, 0,0,0);
 $blue = ImageColorAllocate($im, 0,36,135);
 $white = ImageColorAllocate($im, 255,255,255);
 ImageFilledRectangle($im,0,0,$x,$y,$white);
 imageline($im,0,50,$x,50,$black);
 imageline($im,$x-50,0,$x-50,$y,$black);
 for($i=0;$isizeof($data);$i++)
 {
 ImageFilledRectangle($im,$i*50+15,51,$i*50+40,51+$data[$i]*30,$blue);
 }
 $image=imagecreate(500,500);
 imagecopyresized($image,$im,0,0,0,0,400,400,400,400);
 Imagepng($image);
?





Edit this bug report at http://bugs.php.net/?id=11976edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11994 Updated: imagettfbbox returns null

2001-07-21 Thread andy

ID: 11994
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: WIN98
PHP Version: 4.0.6
New Comment:

Check your $font variable it will translate into
\windows\fonts\CACVALIA.ttf which last time I checked is
not a valid location for a font, either on windows or linux.
 Also try setting error_reporting to a high number to see
ALL of the notices, errors, warnings, etc...




Previous Comments:


[2001-07-09 20:19:28] [EMAIL PROTECTED]

imagettfbbox fails to return coordinates under distribution for win32 for PHP Version 
4.0.6 using distribution binaries.  Unzipping PHP Version 4.0.4pl1 over 4.0.6 files 
and the example works again same config used for both.

here is sample script used to test

?
   Header(Content-Type: image/png);
   $im = ImageCreateFrompng('C:\windows\backgrnd.png');
   $str = Hello World;
   $font = \\windows\\fonts\\CACVALIA.ttf;
//   print $font;
   $bbox = imagettfbbox(40,0,$font, $str);
// print $bbox;
   $black = ImageColorAllocate($im,128,128,128);
//   print $bbox[0],$bbox[1],$bbox[2],$bbox[3],$bbox[4];
   $start_x = ImageSX($im)/2 - (($bbox[0] + $bbox[2] + $bbox[4] + $bbox[6]) / 4);
   $start_y = ImageSY($im)/2 - (($bbox[1] + $bbox[3] + $bbox[5] + $bbox[7]) / 4); 
   $white = ImageColorAllocate($im,255,255,255);
   $red = ImageColorAllocate($im,255,0,0);
   ImageLine($im,0,0,200,200,$red);
   $gray = ImageColorAllocate($im,196,196,196);
   ImageTTFText($im, 40, 0, $start_x+3, $start_y-3, $black, $font, $str);
   ImageTTFText($im, 40, 0, $start_x,$start_y, $gray, $font, $str);
//   ImageColorTransparent($im, $black);
   Imagepng($im);
   ImageDestroy($im);
?





Edit this bug report at http://bugs.php.net/?id=11994edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12200 Updated: getimagesize() JPG Bug

2001-07-21 Thread andy

ID: 12200
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: Win 2000
PHP Version: 4.0.6
New Comment:

Please include a short sample script so I can test this.

Previous Comments:


[2001-07-17 06:58:05] [EMAIL PROTECTED]

GD library doesn't work properly when you call getimagesize() for jpeg image!It 
doesn't return proper width and height of image (usually returns -1 and -1)





Edit this bug report at http://bugs.php.net/?id=12200edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12200 Updated: getimagesize() JPG Bug

2001-07-21 Thread andy

ID: 12200
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Feedback
Old Bug Type: GD related
Bug Type: GetImageSize related
Operating System: Win 2000
PHP Version: 4.0.6
New Comment:

reclassified

Previous Comments:


[2001-07-21 20:55:42] [EMAIL PROTECTED]

Please include a short sample script so I can test this.



[2001-07-17 06:58:05] [EMAIL PROTECTED]

GD library doesn't work properly when you call getimagesize() for jpeg image!It 
doesn't return proper width and height of image (usually returns -1 and -1)





Edit this bug report at http://bugs.php.net/?id=12200edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7058 Updated: checkdnsrr bug

2001-07-21 Thread andy

ID: 7058
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Network related
Operating System: Linux 2.2.14
PHP Version: 4.0.0
New Comment:

does this happen in the current version (4.0.6)

Previous Comments:


[2000-10-06 16:11:32] [EMAIL PROTECTED]

checkdnsrr seems to be buggy.  For example, using 'checkdnsrr(mail.austasia.net, 
MX)' returns false, whereas nslookup on the same machine shows a valid MX record.  
This does not happen with all addresses -- just some. 





Edit this bug report at http://bugs.php.net/?id=7058edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8856 Updated: gethostbyname returns hostname instead of adress

2001-07-21 Thread andy

ID: 8856
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Network related
Operating System: Linux 2.2.17
PHP Version: 4.0.4pl1
New Comment:

Works fine for me with the latest version (4.0.6)

Previous Comments:


[2001-03-10 20:21:46] [EMAIL PROTECTED]

For at least some months, gethostbyname() in sockets.c has
been replaced by gethostbyname() in ext/standard/dns.c
which does

memcpy(in.s_addr, *(hp-h_addr_list), sizeof(in.s_addr));


Could you try the latest CVS? Could you test both
gethostbyname() and gethostbynamel() in PHP? They do it
differently. I think both should work.



[2001-03-10 17:13:23] [EMAIL PROTECTED]

It sounds like a DNS problem to me. 
It would be wise if you check that out too.

I though about this too at first, but the right information is in both cases stored in 
the host_struct-h_addr_list.
But the information is only correct if you memcpy it to a.s_addr, instead of 
typecasting it.




[2001-03-10 16:30:21] [EMAIL PROTECTED]

It sounds like a DNS problem to me. It would be wise if you check that out too.



[2001-03-10 16:12:27] [EMAIL PROTECTED]

Works for me just fine with latest CVS. Please try the 
latest CVS snapshot from http://snaps.php.net/

--Jani




[2001-01-23 12:28:11] [EMAIL PROTECTED]

The gethostbyname doesn't seem to work on some of the systems I use. The problem only 
occurs on some machines, others work fine. The problem only occurs on 4.0x, but not on 
3.0x on the same machine.
All machines use the same build of php4.

For example:
PHP
   echo (gethostbyname (sql-1.vuurwerk.nl));
?

Result:
sql-1.vuurwerk.nl

The bug? also affects functions like mysql_connect.
I am unable to connect to a sql server unless I replace the hostname with an ip 
adress.


I've traced the problem back to sockets.c, line 817:
a.s_addr = (int) (*(host_struct-h_addr_list[0]));


If I replace the code above with the equivalent code used in php3 the problem is 
solved:
memcpy (a.s_addr, *(host_struct-h_addr_list), sizeof (a.s_addr));


If you need more information please let me know.

Niels Leenheer
[EMAIL PROTECTED]





Edit this bug report at http://bugs.php.net/?id=8856edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Michael Glazer

Hi Rasmus

I am not sure why you are not being able to view the dev site.

Why should you pick me over the other CMS's is not my decision, obviously,
it is yours.

The fact that you pointed out more than one CMF is my point exactly. There
needs to be one standard PHP CMF that is object oriented. There isn't twenty
CMF's on Zope. Instead there is one CMF and twenty products that developers
build for the CMF that can be dropped into it seamlessly.

That is exactly what my point of what cmf.php.net would provide to PHP
developers. A centralized standardized PHP CMF that can easily be built
upon. When I say built upon I do not mean add ons I mean an entirely new
CMS based on the XPC CMF.

Frameworks are independent (different than) from CMSs (Content Management
Systems). A CMS is a product of a CMF. So is a Web Portal, Intranet,
Extranet, or a web hosting application.

Having large numbers of disjointed CMF projects does not impress me. If
anything it frustrates me as a developer interested in building PHP
applications. That is exactly why I built XPC.

As a corporate IA in NYC I have worked on and with many large commercial CMF
software products. Such as ATG by dynamo, Vignette, TeamSite by Interwoven
and the Zeo server from Zope.

All I can say is that all of the CMS systems you noted aren't that
impressive compared to the application servers I have stated above.

Below are the problems with current PHP applications that I have worked on
in XPC to solve.

The zealous reliance on MySQL for data storage. XPC has an option to use
static databases (XML) for content data storage.
One of the biggest problems is the use of Query strings in PHP products.
Large systems like Midgard need root server access.
Most of the noted applications (products) are stand alone. They cannot be
integrated into each other easily.

The point of having one cmf.php.net is the same reason why there is one
cmf.zope.org to centralize and standardize an abstracted open platform that
can easily be used, manipulated and built upon. That is something PHP does
not have. PHP is very disjointed and all over the place. I think the
frustration of many PHP users and developers is the lack of centralized
software building based on PHP.

I hope you understand what my point for cmf.php.net is now.

Regards,

Michael

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Michael Glazer [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 8:35 PM
Subject: Re: [PHP-DEV] Fw: PHP XMF


  Is my grammar the problem or the email format (it is set to plain text
with
  Western European (ISO) encoding in outlook express)?

 Everything was quoted after 's and your line lengths were well above the
 normal 72 characters.

  You can see a working example of the XPC CMF at http://dev.4arrow.com

 None of the links there seem to do anything.  They just link back to
 dev.4arrow.com or more precisely
 http://free-eservices.com/inc/js/sites/free-eservices.com/site.js
 if I click on http://free-eservices.com

  cmf.php.net would provide a object oriented content management framework
  that is very similar to http://cmf.zope.org

 There are probably a dozen CMF systems for PHP.  Why should yours be
 cmf.php.net?  My tendency has always to avoid favouring any one project
 over any others.

  The cmf.php.net would provide a pre-built framework that can be
dropped
  into any PHP enabled Apache web server that can be used for easy portal
  building, collaborative communities and the like.

 Right, sort of like:

 http://www.midgard-project.org
 http://phpnuke.org
 http://www.codepoet.de
 http://mysource.squiz.net
 http://pecos.screwdriver.net
 http://phpreactor.org
 http://php-j00k.w30wnzj00.com/
 http://www.pslash.com
 http://mcyra.homeip.net/homepage/phpcms/
 http://phpwebsite.appstate.edu
 http://phpweblog.org
 http://www.hklc.com/midgard_manual
 http://www.miro.com.au
 http://www.dotvoid.com/firesite.php
 http://www.muze.nl/software/ariadne/
 http://faqforge.serialhacker.net
 http://www.fazlamesai.net/basit/eng/
 http://sourceforge.net/projects/darkportal/
 http://drop.org/module.php?mod=drupal
 http://pcrochat.online.fr/webus/programs/easysite/
 http://www.xmlhead.com/index.php/xmlhead_eutychus
 http://www.thetuckshop.com/spincms/

 Every single one of those projects could be dropped into cmf.php.net and
 with a bit of tweaking do what you are talking about.  What makes yours
 special?

  Using the framework eventually other products can be dropped into the
same
  folder, be turned on or off, and given very specific properties via the
web
  interface just like in Zope.

 Sure, at least a couple of the above projects do the exact same thing.
 Have a look at Midgard.

  Features include:
  ACL group user access.
  Reuse of abstracted code.
  Multiple file formats.
  No query strings.
  Client and server requests (like XML-RPC).
  Unlimited domains with unique content running off of the same cmf
instance
  (IP address in specific web serving folder).
 
  Please 

[PHP-DEV] Bug #12302: timezone,struct statfs,linking

2001-07-21 Thread marcus . boerger

From: [EMAIL PROTECTED]
Operating system: cygwin
PHP version:  4.0.6
PHP Bug Type: *Compile Issues
Bug description:  timezone,struct statfs,linking

I am trying to install php with gd,postgres,... to cygwin.
+timezone must be explicitly converted to long by typecast in
openssl/openssl.c 
in line 782 replace it with
gmadjust = -(thetime.tm_isdst ? (long)timezone - 3600 : (long)timezone +
3600);

same in standard/datetime.c (multiple occurences of same problem)

+ struct statfs not defined
included file sys/vfs.h in configure mechanism...

include following block at line 49 in statndard/filestat.h
#if defined(HAVE_SYS_VFS_H)
# include sys/vfs.h
#endif
--block end

+ leaving problem of creating the .so library
what ever i do there is a problem :-(
when working with original scripts the .a/.lai files are generated but make
install fails
-- 
Edit bug report at: http://bugs.php.net/?id=12302edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8754 Updated: gethostbyname() fails

2001-07-21 Thread andy

ID: 8754
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Network related
Operating System: Linux 2.2.16 (RH7)
PHP Version: 4.0.4pl1
New Comment:

Please make sure that you're DNS server is setup correctly
and you have access to it and the internet.  Try running
netconfig as root from a prompt.  Also, try running
linuxconf and make sure the order in which hostnames are
setup is correct (i recommend hosts,dns)

Also, try upgrading to the latest version of PHP.

Previous Comments:


[2001-01-17 03:53:54] [EMAIL PROTECTED]

When trying to resolv the ip address of a hostname given in /etc/hosts, 
gethostbyname() works fine. It does NOT work when trying to resolv an ip address which 
must be looked up via the DNS server though. In the latter case, 
gethostbyname($hostname) always returns $hostname, i.e. it
behaves like the hostname does not exist. However, doing a command line nslookup, the 
hostname is found, so it DOES exist.

The problem occurs with version 4.0.4pl1 (compiled on the target system) as well as 
with version 4.0.1pl2 that comes with RedHat 7.0. I'm using kernel version 2.2.16 and 
a vanilla (i.e. non-updated) RedHat 7.0.

Thanks in advance...






Edit this bug report at http://bugs.php.net/?id=8754edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11731 Updated: PHP_URL_FOPEN only doesn't work

2001-07-21 Thread andy

ID: 11731
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Network related
Bug Type: HTTP related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

reclassified

Previous Comments:


[2001-07-21 21:10:07] [EMAIL PROTECTED]

I have reproduced this bug in the exact form as he described
it.  Somebody needs to fix this one.



[2001-07-02 07:10:28] [EMAIL PROTECTED]

oh sorry I'am a error with my message, test this code :

?
$url = www.yahoo.com;
$link = fopen(http://$url;, r);
echo Link ($url): $linkBR;

$url2 = www.voyage.com;
$link2 = fopen(http://$url2;, r);
echo Link2 ($url2): $link2BR;
?

And link2 is only empty... 



[2001-06-27 13:26:52] [EMAIL PROTECTED]

Your example script works just fine for me.
Which linux distribution is this? RH? Suse?
Do you get any error messages into logs?




[2001-06-27 05:56:51] [EMAIL PROTECTED]

?
$url = www.yahoo.com;
$link = fopen(http://$url;, r);
echo Link ($url): $linkBR;

$url2 = www.yahoo.com;
$link2 = fopen(http://$url2;, r);
echo Link2 ($url2): $link2BR;
?

Yields:
Link (www.yahoo.com):  ($link is empty)
Link2 (www.voyage.com): ($link2 is empty)

version:
PHP Version 4.0.6RC3

Configure:

'../configure' '--prefix=/usr' 
'--with-apxs=/usr/bin/apxs' 
'--with-regex=system'
'--with-config-file-path=/etc/php4/apache' 
'--disable-rpath' '--with-layout=GNU'
'--enable-memory-limit' 
'--enable-calendar' 
'--enable-sysvsem' 
'--enable-sysvshm'
'--enable-track-vars' 
'--enable-trans-sid' 
'--disable-debug' 
'--disable-static'
'--enable-bcmath' 
'--with-bz2' 
'--enable-ctype' 
'--with-curl=shared,/usr' 
'--with-db2'
'--with-ndbm' 
'--with-dom=shared,/usr' 
'--enable-exif' 
'--enable-filepro' 
'--enable-ftp'
'--with-gettext' 
'--with-gd=shared,/usr' 
'--with-jpeg-dir=shared,/usr'
'--with-xpm-dir=shared,/usr/X11R6' 
'--with-png-dir=shared,/usr' 
'--with-imap=shared,/usr'
'--with-ldap=shared,/usr' 
'--with-mcal=shared,/usr' 
'--with-mm' 
'--with-mhash=shared,/usr'
'--with-mysql=shared,/usr' 
'--with-pcre-regex=/usr' 
'--without-pgsql'
'--with-sablot=shared,/usr' 
'--enable-shmop' 
'--with-snmp=shared' 
'--enable-sockets'
'--with-sybase-ct=shared,/usr' 
'--with-ttf=shared,/usr' 
'--with-t1lib=shared,/usr'
'--enable-wddx' 
'--with-xml=/usr' 
'--with-expat-dir=/usr' 
'--enable-yp' 
'--with-zlib'






Edit this bug report at http://bugs.php.net/?id=11731edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7058 Updated: checkdnsrr bug

2001-07-21 Thread pour

ID: 7058
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Network related
Operating System: Linux 2.2.14
PHP Version: 4.0.0
New Comment:

Sorry, I don't know. I upgraded to 4.0.6 but it's slow as a dog, it won't run my web 
site.  PHP gets caught in some infinite loop.

Funny, this bug has been around since the official 4.0.0 (I am still having to use a 
March snapshot).

If anyone is interested I will help trying to debug it.  However, given the amazingly 
large number of macros which makes PHP code unreadable to all but a very few, please 
don't ask me to send in a patch -- you make code unreadable, there are consequences 
;-).  But I am willing to help however I can otherwise.

Ciao,

Dre

Previous Comments:


[2001-07-21 20:59:06] [EMAIL PROTECTED]

does this happen in the current version (4.0.6)



[2000-10-06 16:11:32] [EMAIL PROTECTED]

checkdnsrr seems to be buggy.  For example, using 'checkdnsrr(mail.austasia.net, 
MX)' returns false, whereas nslookup on the same machine shows a valid MX record.  
This does not happen with all addresses -- just some. 





Edit this bug report at http://bugs.php.net/?id=7058edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 Having large numbers of disjointed CMF projects does not impress me. If
 anything it frustrates me as a developer interested in building PHP
 applications. That is exactly why I built XPC.

Well, your system isn't exactly impresive either as it doesn't work with
Netscape (didn't you test it?) and a non Host-header GET request results
in this:

bFatal error/b:  Failed opening required
'/home/foxxie/public_html/inc/cfg/sites/_config.php'
(include_path='.:/usr/local/lib/php') in
b/home/foxxie/public_html/inc/xpc.php/b on line b29/bbr

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #7058 Updated: checkdnsrr bug

2001-07-21 Thread andy

ID: 7058
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Network related
Operating System: Linux 2.2.14
PHP Version: 4.0.0
New Comment:

I have reproduced this bug, and smoebody needs to fix this
one.  This is a real bug.

Previous Comments:


[2001-07-21 21:11:59] [EMAIL PROTECTED]

Sorry, I don't know. I upgraded to 4.0.6 but it's slow as a dog, it won't run my web 
site.  PHP gets caught in some infinite loop.

Funny, this bug has been around since the official 4.0.0 (I am still having to use a 
March snapshot).

If anyone is interested I will help trying to debug it.  However, given the amazingly 
large number of macros which makes PHP code unreadable to all but a very few, please 
don't ask me to send in a patch -- you make code unreadable, there are consequences 
;-).  But I am willing to help however I can otherwise.

Ciao,

Dre



[2001-07-21 20:59:06] [EMAIL PROTECTED]

does this happen in the current version (4.0.6)



[2000-10-06 16:11:32] [EMAIL PROTECTED]

checkdnsrr seems to be buggy.  For example, using 'checkdnsrr(mail.austasia.net, 
MX)' returns false, whereas nslookup on the same machine shows a valid MX record.  
This does not happen with all addresses -- just some. 





Edit this bug report at http://bugs.php.net/?id=7058edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #5026 Updated: ftp_size and transfer mode

2001-07-21 Thread andy

ID: 5026
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: FTP related
Operating System: Linux 2.2
PHP Version: 4.0
New Comment:

This is an old bug and needs to be closed.

Previous Comments:


[2001-02-10 14:20:40] [EMAIL PROTECTED]

refiled as bug against 4.0.



[2000-06-14 11:40:27] [EMAIL PROTECTED]

I am using the ftp_size command to connect to a NcFTPd server.  NcFTPd does not 
support the size command in ascii mode. Information is at :

http://www.ncftpd.com/ncftpd/doc/faq/func.html#size_ascii

Is there any way that this could be changed to binary mode, ie insert about line 602 
of function/ftp.c the following: 

if (!ftp_type(ftp, FTPTYPE_IMAGE))
return -1;

Or for consistancy of the API have an optional mode parameter to this function.

Thanks for the newly added ftp support and thank you for your assistance.





Edit this bug report at http://bugs.php.net/?id=5026edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8874 Updated: ftp_nlist and rawlist not working

2001-07-21 Thread andy

ID: 8874
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: FTP related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.0.4
New Comment:

Please submit a short script for me the analyze.  This will
also clarify your bug a little bit.

Previous Comments:


[2001-01-23 22:23:49] [EMAIL PROTECTED]

The ftp_nlist and ftp_rawlist functions failed to work for me.  I am using PHP.EXE 
v4.0.4 from a Windows 2000 machine connecting to a Free BSD box running the following 
FTP server:

Our.ftp.server FTP server (Version wu-2.6.1(1) Mon Jul 3 03:07:01 EDT 2000)

Both ftp_nlist and ftp_rawlist return a single blank string () into the result 
array.






Edit this bug report at http://bugs.php.net/?id=8874edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8999 Updated: difference ftp_fget() cgi and module

2001-07-21 Thread andy

ID: 8999
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: FTP related
Operating System: Windows
PHP Version: 4.0.4pl1
New Comment:

If it works as a CGI, I say just go back to the CGI version.

But, if you don't then answer these questions.

-Does it still happen in the latest version of PHP?
-Are there any error messages (either on the page or logs)

Previous Comments:


[2001-01-30 07:16:07] [EMAIL PROTECTED]

Until now I was using PHP4 in CGI-Mode. Now I want to change to Apache Module. So I 
made the nessecary changes in httpd.conf and rebotted the Windows 2000 server.

Since PHP is running as an Apache Module, the function ftp_fget() doesn't work 
correctly anymore.

I read a jpg from a FTP Server and display it with the img tag. In Module Mode the 
file is transferred and the width and height is correct, but the content is wrong 
(wrong colors in the completely wrong places). When PHP is running in cgi mode, 
everything is correct.

Thanks for any help, Rolf.

Code Sample:

class Foto_class
{

  var $fotoname;

  function Foto_class( $verwender )
  {
global $const_ftp_host, $const_ftp_user, $const_ftp_passwd, $const_ftp_dir;
$select_file = foto.jpg;
$ftp = ftp_connect( $const_ftp_host );
if ( $ftp )
{
  ftp_login( $ftp, $const_ftp_user, urldecode( $const_ftp_passwd ) );
}
if ( $const_ftp_dir ==  )
{
  $const_ftp_dir = FTP_DIRROOT;
}
$const_ftp_dir = $const_ftp_dir . FTP_DIRROOT . $verwender;
if ( ( ! $ftp ) || ( ! @ftp_chdir( $ftp, $const_ftp_dir ) ) )
{
  @ftp_quit( $ftp );
}
else
{
  srand( ( double ) microtime() * 100 );
  $randval = rand();
  $tmpfile = $select_file . . . $randval;
  $showfile = $this-filename( $tmpfile );
  $fp = fopen( $showfile, w );
  if ( ! @ftp_fget( $ftp, $fp, $select_file, FTP_BINARY ) )
  {
ftp_quit( $ftp );
  }
  else
  {
ftp_quit( $ftp );
$this-fotoname = $showfile;
  }
  @fclose( $fp );
}
  }

  function filename($f_name)
  {
$dir = ./temp/sess_.session_id();
if (!file_exists($dir)) mkdir($dir,0700);
return $dir./.$f_name;
  }

  function out()
  {
return $this-fotoname;
  }

}






Edit this bug report at http://bugs.php.net/?id=8999edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11000 Updated: ftp_connect(...) produces ftpbuf 0 error

2001-07-21 Thread andy

ID: 11000
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: FTP related
Operating System: NT 4.0
PHP Version: 4.0.4pl1
New Comment:

Are you saying that 127.0.0.1 only works when you are
connected to the internet, but localhost works anytime?

Previous Comments:


[2001-05-21 22:30:13] [EMAIL PROTECTED]

Now the third answer for [EMAIL PROTECTED] (Hi Jani, I saw your question unfortunately 
just after I sent my last report):

I used the ftp-server WAR-FTPD 1.67-05 (freeware, downloadable from 
http://www.jgaa.com) and tried it localy installed on my NT4.0 Worsstation with an 
external NT4.0 Intranet-Webserver (Apache with PHP 4.04).At home I used a Windows 2000 
Workstation with local running Apache and PHP 4.0.4 first, 4.0.5 after a meanwhile 
update.

The original error-message on all configurations was:
Warning: Unable to find ftpbuf 0 in e:\eigene dateien\php\liegenschaften\upload.php4 
on line 10

Some new information:
To my surprise this error does not occur at home, when I am connected to Internet. 
After dialing in the script runs also with 127.0.0.1 without any warnings, after 
shutting down the Internet-connection only $ftp_server = localhost or 
$ftp_server=#DNS_name_of_server# is accteptd.
This is also the reason for my second workaround as described before, this is no 
one, because '127.0.0.1' is only accepted when internet-connection is open.

Hope, this will help you!
bye... kni



[2001-05-21 21:15:19] [EMAIL PROTECTED]

Send this bug-message this morning, got two answers myself this evening:
Obviously php does not understand ftp-server-adresses in form of 127.0.0.1 or 
somehow, but when I used localhost or the name of the server defined in the 
Apache-Konfiguration the script below ran without any error-message. 
Another workaround: using '127.0.0.1' ran also without problems!?!
kni



[2001-05-21 16:45:19] [EMAIL PROTECTED]

Have you tried with some public ftp-server?
Does it work then? And what is the full error message?

--Jani




[2001-05-21 15:39:36] [EMAIL PROTECTED]

I installed the PHP4 software (actual Windows binary 4.04pl1) with the actual 
Apache-Server on a NT 4.0 server. The FTP-Server I try to contact runs localy on my 
NT4.0 PC.
The following script
?php
$ftp_user = username;
$ftp_pass = password;
$ftp_server = 127.0.0.1;
$conn_id = ftp_connect($ftp_server);
echo $conn_id;
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);
?
causes Warning: Unable to find ftpbuf 0 in .
$conn_id is null, it seems, that there is no connection.
I found some similar error-messages in the php-FAQ's, but no answer.
bye...






Edit this bug report at http://bugs.php.net/?id=11000edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11025 Updated: ftp_connect() does not work with IP address

2001-07-21 Thread andy

ID: 11025
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: FTP related
Operating System: Windows NT4 Server
PHP Version: 4.0.5
New Comment:

Whoa!  This is exactly the OPPOSITE of what I expected.
Usually in something like this, the IP works, and the name
doesn't.  I have no clue what would cause that.  Can anyone
duplicate this?

Previous Comments:


[2001-05-22 13:34:53] [EMAIL PROTECTED]

Setup:
Windows NT4 Server with Apache 39 and PHP 4.0.5 as downloaded (big package) from 
PHP.NET

Situation:
phpInfo() says FTP is enabled.
ftp_connect('192.168.0.55') does not give connection handle whereas an ftp client on 
the same machine works perfectly. Tried all kinds of quotes, no success.

Solution:
Entered a line in local hosts lookup file to replace the IP with a literal name. 
Replaced the faulty line with
ftp_connect(theName)
and got the connection right away.





Edit this bug report at http://bugs.php.net/?id=11025edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Michael Glazer

Hi

I was guessing that was the reason when you first said the JavaScript link.

Why would I test it with Netscape? I wouldn't. Waste of time to be honest.
The president of Netscape told me that their Netscape browser doesn't work.
I believe him and the number limited of users who actually use Backwards
compatible browsers.

I'm a web developer not a QA specialist.

If I was to take my time doing QA I don't think I would be successful in
developing the Web.

Development is usually a forward approach, called innovation. To innovate is
to extend beyond.

If I was to look behind I wouldn't move forward as quickly. The rate of
innovation is only as quick as those who make it happen.

Anyhow, I don't code backwards only forward. Non complaint browsers are not
something I spend my time thinking about.

regards,

Michael

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Michael Glazer [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 9:16 PM
Subject: Re: [PHP-DEV] Fw: PHP XMF


  Having large numbers of disjointed CMF projects does not impress me. If
  anything it frustrates me as a developer interested in building PHP
  applications. That is exactly why I built XPC.

 Well, your system isn't exactly impresive either as it doesn't work with
 Netscape (didn't you test it?) and a non Host-header GET request results
 in this:

 bFatal error/b:  Failed opening required
 '/home/foxxie/public_html/inc/cfg/sites/_config.php'
 (include_path='.:/usr/local/lib/php') in
 b/home/foxxie/public_html/inc/xpc.php/b on line b29/bbr

 -Rasmus



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #9445 Updated: error message when using fopen or file functions

2001-07-21 Thread andy

ID: 9445
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: HTTP related
Operating System: FreeBSD 4.2
PHP Version: 4.0.4pl1
New Comment:

The problem is probably caused by the REALLY long line.  Try
upgrading to the current version.  If that still doesn't
work, re-open.

Previous Comments:


[2001-02-25 15:18:42] [EMAIL PROTECTED]

The source for that html page is all on one line. Approx. 19,000 characters. I can 
fopen/file(), without any problems, html pages which have newline breaks throughout.



[2001-02-25 15:15:28] [EMAIL PROTECTED]

This is the error message I get:

Warning: fopen(http://www.citywire.co.uk/,r;) - Message too long in 
/usr/home/jon/webs/blahblah/htdocs/pull/citywire.php on line 87

Here is the script:

$filename = http://www.citywire.co.uk/latestnews/default.asp;;
$fd = fopen ($filename, r);

This is my ISP's setup:

FreeBSD 4.2
./configure' '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' 
'--with-system-regex' '--with-config-file-path=/usr/local/etc' '--disable-debug' 
'--enable-track-vars' '--without-gd' '--disable-pear' '--without-mysql' 
'--with-gd=/usr/local' '--with-ttf=/usr/local' '--with-zlib' 
'--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-imap=/usr/local' 
'--with-mysql=/usr/local' '--with-xml=/usr/local' '--enable-ftp' 
'--with-gettext=/usr/local' '--with-ming' '--prefix=/usr/local' 'i386--freebsd4.2'

I don't have access to php.ini unfortunately.





Edit this bug report at http://bugs.php.net/?id=9445edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10033 Updated: Function file does not work with remote files

2001-07-21 Thread andy

ID: 10033
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: HTTP related
Operating System: aix 4.3.3
PHP Version: 4.0.4pl1
New Comment:

See if this works (this and EXACTLY this)

?php
$carjunk=file(http://www.php.net/;);
for ($i=0;$icount($carjunk);$i++){
echo $carjunk[$i];
}
?

If this doesn't work, make sure you DNS/Internet Server is
running correctly.

Previous Comments:


[2001-03-29 15:34:55] [EMAIL PROTECTED]


Hi Jani,

Thank you for your suggestion.

I have just tried the lates version php4-latest from http://snaps.php.net on my AIX 
4.3.3 box, I got the same 
error when using function 'file': bad file number. 

Raymond




[2001-03-29 11:29:38] [EMAIL PROTECTED]

Could you please try the latest CVS snapshot from http://snaps.php.net/ ?

--Jani




[2001-03-27 18:00:39] [EMAIL PROTECTED]

script:

?php
 $jnk= file (http://www.php.net;);
?

Error: bad file number

?php
 $jnk = file (myfile);
 echo works fine;
?

Options compilated with PHP:

CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure 
--with-mysql=/usr/local/mysql --with-gd --enable-track-vars 
--with-apache=/usr/local/apache_1.3.12

Notes: I tried to use different compilers such as gcc, cc or xlC_r,  I got the same 
error about file function (bad file number). With the same option of 
compilateion, the script works in LINUX.






Edit this bug report at http://bugs.php.net/?id=10033edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10800 Updated: File uploads take ~70 times longer than downloading files on Apache/PHP.

2001-07-21 Thread andy

ID: 10800
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Operating System: NT 2000
PHP Version: 4.0.5
New Comment:

Could you please include the script that accepts the form
input and uploads the file (the ACTION param of the form.)

-Andy

Previous Comments:


[2001-05-10 17:51:00] [EMAIL PROTECTED]

I logged this prior to PHP 4.0.5 and was told to do it again if it still occurs. 
Please help:

ID: 9294 
Updated by: andi 
Reported By: [EMAIL PROTECTED] 
Old-Status: Open 
Status: Closed 
Bug Type: Performance problem 
PHP Version: 4.0.2 
Assigned To:  
Comments: 
 
Please try PHP 4.0.4pl1 or 4.0.5 which is due out tomorrow and open a new bug report 
if this still happens. 
 
Previous Comments: 
--- 
 
[2001-02-16 03:59:04] [EMAIL PROTECTED] 
Sorry - I'm also using code like this to do the upload: 
 
FORM ENCTYPE=multipart/form-data ACTION=_URL_ METHOD=POST 
INPUT TYPE=hidden name=MAX_FILE_SIZE value=2 
Send this file: INPUT NAME=userfile TYPE=file 
INPUT TYPE=submit VALUE=Send File 
/FORM 
 
--- 
 
[2001-02-16 03:57:16] [EMAIL PROTECTED] 
When performing a file upload, PHP runs the CPU to 100% and takes 3.5-4 minutes on 
a Pentium III 850MHz CPU to upload a 10MB file when downloading the same file on 
Apache/PHP only takes 3 seconds on the same host and client. It appears the file 
is being parsed when being uploaded. Is there an option to tell PHP to upload the 
data and nothing else? Otherwise, it is roughly 70 times slower to upload a file 
than to download one. 
 
I'm using Nusphere's CD when installing the software. 
 





Edit this bug report at http://bugs.php.net/?id=10800edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11058 Updated: php_network_getaddresses: getaddrinfo failed

2001-07-21 Thread andy

ID: 11058
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Operating System: OpenBSD 2.6
PHP Version: 4.0.5
New Comment:

Please check that your nameserver is running and setup
correctly.  Check the same with your internet server.

Previous Comments:


[2001-05-23 11:58:00] [EMAIL PROTECTED]

I've seen this issue posted here a few times, and I think my problem is similar to Bug 
id #7880.

fopen(), fsockopen(), and file() will not work with URL or IP address parameters. 
include() has the same issue. I believe it has something to do with getaddrinfo.

Before upgrading to PHP4, I was running 3.0.16 and all of these functions were working 
perfectly with URL parameters. 

My configure script looks like this:

./configure  --with-apache=/usr/temp/apache_1.3.19 --with-mysql=/usr/local 
--enable-track-vars --with-xml --with-openssl=/usr/local/ssl

My php.ini DOES contain the line allow_url_fopen = On

The fopen() script looks like this:

$fd = fopen( http://www.php.net/;, r );
if( !$fd )
{
echo Cannot open URL;
} else {
while ( !feof( $fd ) ) {
$buffer = fgets( $fd, 4096 );
echo $buffer;
}
fclose ( $fd );
}

and produces this output:

Warning: php_network_getaddresses: getaddrinfo failed: name or service is not known in 
/var/www/patrickhaney.com/www/weather/test.php on line 24

Warning: fopen(http://www.php.net/,r;) - Bad file descriptor in 
/var/www/patrickhaney.com/www/weather/test.php on line 24
Cannot open URL 

and yes, I can resolve php.net to 208.247.106.187. Using the IP address in place of 
the hostname produces the same output.

If I use the fsockopen() function with this script:

fsockopen(http://www.php.net/;, 80, $errno, $errstr, 30);
if(!$fp) {
echo Error: $errstr ($errno)br\n;
} else {
fputs($fp,GET / HTTP/1.0\n\n);
while(!feof($fp)) {
echo fgets($fp,128);
}
fclose($fp);
}

I get this output:

Error: (0)







Edit this bug report at http://bugs.php.net/?id=11058edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 Development is usually a forward approach, called innovation. To innovate is
 to extend beyond.

 If I was to look behind I wouldn't move forward as quickly. The rate of
 innovation is only as quick as those who make it happen.

 Anyhow, I don't code backwards only forward. Non complaint browsers are not
 something I spend my time thinking about.

Ok, then you have made our decision quite easy.

Thanks for your time.

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12303: apache segfaults when using imp

2001-07-21 Thread misko

From: [EMAIL PROTECTED]
Operating system: slackware linux
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  apache segfaults when using imp

I've installed horde/imp. I've also recompiled php with imap support,
everything withou any problem.
But when I try to logon to IMP, i get no response from server (or it seems
to be loading, but times out after a while).
Apache error_log is full of these messages:

[Sun Jul 22 03:35:55 2001] [debug] apache_ssl.c(379): Random input
/dev/urandom(
1024) - 1024
[Sun Jul 22 03:35:57 2001] [debug] apache_ssl.c(1926): CIPHER is RC4-MD5
[Sun Jul 22 03:35:58 2001] [debug] buff.c(295): read returned 331 rwstate=1
stat
e=3 rstate=240 cren=0 aren=0 accept=4
[Sun Jul 22 03:35:58 2001] [error] [client 172.170.246.174] File does not
exist:
 /usr/local/apache/bat.sk/docs/horde/imp/docs/
[Sun Jul 22 03:51:46 2001] [notice] child pid 3420 exit signal Segmentation
faul
t (11)
[Sun Jul 22 03:51:47 2001] [notice] child pid 3424 exit signal Segmentation
faul
t (11)
[Sun Jul 22 03:54:05 2001] [notice] child pid 3452 exit signal Segmentation
faul
t (11)
[Sun Jul 22 03:56:49 2001] [info] [client 172.170.246.174] Read POST
information
 timed out
[Sun Jul 22 03:57:23 2001] [info] [client 172.170.246.174] Read POST
information
 timed out
[Sun Jul 22 03:57:24 2001] [notice] child pid 3461 exit signal Segmentation
faul
t (11)
[Sun Jul 22 03:59:07 2001] [info] [client 172.170.246.174] Read POST
information
 timed out


If you have any further questions, do not hesitate to contact me via e-mail
or icq 35271513.

-- 
Edit bug report at: http://bugs.php.net/?id=12303edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11684 Updated: Header() causes PHP to hang

2001-07-21 Thread andy

ID: 11684
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Operating System: Windows 2000/IIS4
PHP Version: 4.0.5
New Comment:

A cause may be that you are echoing foobar before you call
the header() function.  Try switching the order of these
functions.

Previous Comments:


[2001-07-17 12:06:51] [EMAIL PROTECTED]

Yes - I thought I corrected that when I first submitted the bug. Guess not. Anyway, I 
-am- using the correct header calls - it works correctly on my home machine, but not 
my work machine. The header call doesn't always fail, but in certain script, it will 
always fail.

It's probably just a local config problem.



[2001-07-17 11:55:01] [EMAIL PROTECTED]

BTW: header(http://foo.com/bar.html;) does not make a valid HTTP header. Didn't you 
mean something like: header(Location: http://foo.com/bar.html;)?



[2001-07-16 11:26:02] [EMAIL PROTECTED]

Double checked my config, yes, it's IIS 5. It may just be a combonation of factors on 
my end - it is IIS after all. Anyway, no big deal, just thought someone might know 
something about it.



[2001-07-16 07:47:51] [EMAIL PROTECTED]

Is anybody else able to reproduce this?  I'm not.

BTW, I assume you're using IIS 5...





[2001-06-25 22:58:17] [EMAIL PROTECTED]

?
ob_start();
echo foobar;
header(http://foo.com/bar.html;);
ob_end_flush();
?

Win2k/IIS4/CGI mode/Standard setup, standard modules + image modules

calls to the header() function cause that instance of PHP to hang (infinite loop?).
Timeout occurs 4 or 5 times longer than max_execution_time allows. Can continue to run 
scripts in
a seperate browser session. Executable memory footprint is 4-5 MB.

I have not been able to reproduce this on a Win98 machine with an identical PHP
environment.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11684


Edit this bug report at http://bugs.php.net/?id=11684edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #6200 Updated: fputs doesn't send, do not fflush after fgets.

2001-07-21 Thread andy

ID: 6200
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Sockets related
Operating System: Linux 2.2.14
PHP Version: 4.0.1pl2
New Comment:

Please upgrade to the latest version and try the script
again.  Re-open if problem still exists.

Previous Comments:


[2001-01-30 05:00:48] [EMAIL PROTECTED]

reclassify




[2000-08-17 04:42:03] [EMAIL PROTECTED]

I have to communicate with a perl daemon that gives me an hash when I connect
the port. After that I have to complete the data with this hash an send it in the
same connection back to the daemon.

What I have todo is a fgets for the first string and after sending the comleted data
with an fputs. The daemons never receive my data's after the fputs.

I tried the newest snap to use the fflush. But this didn't solve the problem.




[2000-08-16 14:10:33] [EMAIL PROTECTED]

that's a nice piece of code, but totally useless. COuld you clarify it bit more?



[2000-08-16 14:02:57] [EMAIL PROTECTED]

$fd = fsockopen( $server, $port, $errno, $errstr );
if( ! $fd ) {
   print( Couldn't connect to $server, errno: $errno, errstr: $errstrbr\n );
   exit;
}

set_socket_blocking( $fd, false );
$ret = '';
while( ! feof( $fd ) )
{
   $ret .= fgets( $fd, 128 );
}

if( trim( $ret )  '' ) {
   $key = strip_crlf( $ret );
} else {
   print( Couldn't get keybr\n );
   exit;
}
print( got key: ---$key---br\n );
$hash = md5( $passwd.$key );
$tmp = $serviceid:$username:$hash;
fputs( $fd, $tmp\n, strlen( $tmp ) + 1 );
fflush( $fd );

$ret = '';
while( ! feof( $fd ) )
{
   $r = fgets( $fd, 128 );
   print( - . $r . - );
   $ret .= $r;
}
print( received id: $retbr\n );

fclose( $fd );






Edit this bug report at http://bugs.php.net/?id=6200edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #6778 Updated: fsockopen: timeout does not work when nameserver unreachable

2001-07-21 Thread andy

ID: 6778
Updated by: andy
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Sockets related
Operating System: Debian 2.2
PHP Version: 4.0.1pl2
New Comment:

Please upgrade to the latest version of PHP.  Re-open if
still exists.

Previous Comments:


[2000-09-16 16:20:46] [EMAIL PROTECTED]

When doing a plain
fsockopen (www.anyhost.com,$port,$errno,$errstr,$timeout) ...
and the nameserver for this host does not respond, is unreachable or at least 
extremely slow (host www.anyhost.com produces 'A record not found'), fsockopen won't 
return after $timeout (3secs for example)!
It hangs for at least 100-120 s.





Edit this bug report at http://bugs.php.net/?id=6778edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #6778 Updated: fsockopen: timeout does not work when nameserver unreachable

2001-07-21 Thread andy

ID: 6778
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Sockets related
Operating System: Debian 2.2
PHP Version: 4.0.1pl2
New Comment:

Please upgrade to the latest version of PHP.  Re-open if
still exists.

Previous Comments:


[2001-07-21 21:55:50] [EMAIL PROTECTED]

Please upgrade to the latest version of PHP.  Re-open if
still exists.



[2000-09-16 16:20:46] [EMAIL PROTECTED]

When doing a plain
fsockopen (www.anyhost.com,$port,$errno,$errstr,$timeout) ...
and the nameserver for this host does not respond, is unreachable or at least 
extremely slow (host www.anyhost.com produces 'A record not found'), fsockopen won't 
return after $timeout (3secs for example)!
It hangs for at least 100-120 s.





Edit this bug report at http://bugs.php.net/?id=6778edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] [PEAR-PATCH] XMLRPC Pear Patch

2001-07-21 Thread Matt Allen

Hi All,

Attached is a small patch tp pear/XML/RPC.php.

It fixes 2 things:
1. There was a print statement left in the client class
2. xml_rpc_encode had new XML_RPC_VAL instead of new XML_RPC_VALUE.

Cheerio,
Matta
-- 
Matt Allen
Technical Director
Investigation Marketplace
0413 777 771
[EMAIL PROTECTED]


Index: RPC.php
===
RCS file: /repository/php4/pear/XML/RPC.php,v
retrieving revision 1.10
diff -u -r1.10 RPC.php
--- RPC.php 13 Jul 2001 17:45:43 -  1.10
+++ RPC.php 22 Jul 2001 01:52:47 -
@@ -509,7 +509,7 @@
 strlen($msg-payload) . \r\n\r\n .
 $msg-payload;
 
-print($op);
+//print($op);
 
 if (!fputs($fp, $op, strlen($op))) {
 $this-errstr=Write error;
@@ -1092,7 +1092,7 @@
global $XML_RPC_Struct;
 
$type = gettype($php_val);
-   $XML_RPC_val = new XML_RPC_val;
+   $XML_RPC_val = new XML_RPC_value;
 
switch($type) {
   case array:



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DEV] Bug #10702 Updated: levenshtein doesn't handle odd arguments well

2001-07-21 Thread andy

ID: 10702
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Strings related
Operating System: Win2k
PHP Version: 4.0.5
New Comment:

Please see the related documentation.

http://php.net/manual/en/function.levenshtein.php


Previous Comments:


[2001-05-07 09:06:47] [EMAIL PROTECTED]

Hello Hartmut,

levenshtein ('foot','fot','0','0','1');
 - and -
levenshtein ('foot','fot','0','1','1');

return the following error:

Warning:  levenshtein(): argument string(s) too long in 
f:/xitami/pub/php_er/mysql/test.php on line 3

--zak





Edit this bug report at http://bugs.php.net/?id=10702edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10702 Updated: levenshtein doesn't handle odd arguments well

2001-07-21 Thread andy

ID: 10702
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Strings related
Operating System: Win2k
PHP Version: 4.0.5
New Comment:

Please see the related documentation.

http://php.net/manual/en/function.levenshtein.php


Previous Comments:


[2001-07-21 21:59:37] [EMAIL PROTECTED]

Please see the related documentation.

http://php.net/manual/en/function.levenshtein.php




[2001-05-07 09:06:47] [EMAIL PROTECTED]

Hello Hartmut,

levenshtein ('foot','fot','0','0','1');
 - and -
levenshtein ('foot','fot','0','1','1');

return the following error:

Warning:  levenshtein(): argument string(s) too long in 
f:/xitami/pub/php_er/mysql/test.php on line 3

--zak





Edit this bug report at http://bugs.php.net/?id=10702edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Michael Glazer

Hi Rasmus

I wan to thank you for making your quick decision.

I wasn't sure if I would pursue my time with PHP.

I needed to see if there was a future with PHP or if I should move to
directly to Zope and C#.

Thank you for making that decision easy so I didn't have to waste my time.

Thanks again

Michael

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Michael Glazer [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 21, 2001 9:50 PM
Subject: Re: [PHP-DEV] Fw: PHP XMF


  Development is usually a forward approach, called innovation. To
innovate is
  to extend beyond.
 
  If I was to look behind I wouldn't move forward as quickly. The rate of
  innovation is only as quick as those who make it happen.
 
  Anyhow, I don't code backwards only forward. Non complaint browsers are
not
  something I spend my time thinking about.

 Ok, then you have made our decision quite easy.

 Thanks for your time.

 -Rasmus



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 I wan to thank you for making your quick decision.

Well, there is no point wasting your time.  If we were going to push a
single content management framework as the standard PHP framework which in
itself it quite unlikely, then we would pick one of the established ones
written by people with a history in the PHP community and an understanding
of that community.

Content-management is outside the scope of the PHP project.  It may fit
within the scope of the PEAR project at some point.

And you cannot alienate most non-Windows users by flatly stating that you
won't support Netcape.  How can you position something as a generic
framework if 10-15% of all web users are not eligible to use it?

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #8874 Updated: ftp_nlist and rawlist not working

2001-07-21 Thread steve

ID: 8874
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: FTP related
Operating System: Windows 2000 Advanced Server
PHP Version: 4.0.4
New Comment:

Thanks for responding.  I no longer have access to the FreeBSD FTP server that I was 
connecting to, so it is no longer an issue (for me).  My script is attached below.   
If you do see an issue with the code, I am still interested in your response.

?
$bDebug = 1;

$aDomain = array (
   xyz.com, z
   );

if ($bDebug)
  echo Number in array = . count ($aDomain) . BR;

for ( $i=0; $i  count ($aDomain) ; )
  {
  
  if ( $bDebug )
echo Openning \ . $aDomain[$i] . \...BR;

  $nFTP = ftp_connect ( $aDomain[$i] );

  if ( $nFTP == 0 )
{
echo Failed to open $aDomain[$i]. Aborting...BR;
exit();
}

  $nResult = ftp_login ( $nFTP, $aDomain[$i+1], password );
  if ( $nResult == 0 )
{
echo Failed to login to $aDomain[$i]. Aborting...BR;
exit();
}
  else
echo Login to $aDomain[$i] succeeded.BR;

  if ( $bDebug)
echo BRftp_pwd= . ftp_pwd ( $nFTP ) . BR.

  $nResult = ftp_chdir ( $nFTP, logs);
  if ( $nResult == 0)
{
echo ftp_chdir failed.  Aborting...BR;
exit();
}

  if ( $bDebug)
echo BRftp_pwd= . ftp_pwd ( $nFTP ) . BR.

  $aFiles = Array( Oct100.log.gz,
   Nov100.log.gz,
   Dec100.log.gz,
   mtd.log);

  // $aFiles = ftp_rawlist ( $nFTP, /mnt/web/guide/accumeddata/logs/*.gz);
  // echo rawlist =  . count ( $aFileList ) . BR;
  // $aFiles = ftp_nlist ( $nFTP, *.gz);

  if ( $bDebug )
{
echo count(aFiles)= . count ($aFiles ) . BR;
for ( $j=0; $j = count($aFiles); $j++ )
  echo $j=\$aFiles[$j]\BR; 
}

  // Get all the Monthly archives (*.GZ)
  for ( $j=0; $j  count($aFiles); $j++ )
{

$sLocalFile = $aDomain[$i] . - . $aFiles[$j];
$sLocalFile = str_replace ( /, -, $sLocalFile );
$sRemoteFile = $aFiles[$j];

if ( $bDebug)
  {
  echo sLocalFile=\$sLocalFile\BR;
  echo sRemoteFile=\$sRemoteFile\BR;
  }

$nResult = ftp_get ( $nFTP, $sLocalFile, $sRemoteFile, FTP_BINARY );

if ( $nResult == 0)   
  {
  echo ftp_get failed.  Aborting...;
  exit();
  }
}

  // Get the current month also.
  $nResult = ftp_get ( $nFTP, $sLocalFile, mtd.log, FTP_BINARY );

  if ( $nResult == 0)   
{
echo ftp_get of mtd.log failed.  Aborting...;
exit();
}

  $nResult = ftp_quit ( $nFTP );
  if ( $nResult == 0 )   
{
echo ftp_quit failed.  Aborting...;
exit();
}

  $i = $i + 2;
  }


?

Previous Comments:


[2001-07-21 21:27:45] [EMAIL PROTECTED]

Please submit a short script for me the analyze.  This will
also clarify your bug a little bit.



[2001-01-23 22:23:49] [EMAIL PROTECTED]

The ftp_nlist and ftp_rawlist functions failed to work for me.  I am using PHP.EXE 
v4.0.4 from a Windows 2000 machine connecting to a Free BSD box running the following 
FTP server:

Our.ftp.server FTP server (Version wu-2.6.1(1) Mon Jul 3 03:07:01 EDT 2000)

Both ftp_nlist and ftp_rawlist return a single blank string () into the result 
array.






Edit this bug report at http://bugs.php.net/?id=8874edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Andi Gutmans

At 07:36 PM 7/21/2001 -0700, Rasmus Lerdorf wrote:
  I wan to thank you for making your quick decision.

Well, there is no point wasting your time.  If we were going to push a
single content management framework as the standard PHP framework which in
itself it quite unlikely, then we would pick one of the established ones
written by people with a history in the PHP community and an understanding
of that community.

Content-management is outside the scope of the PHP project.  It may fit
within the scope of the PEAR project at some point.

And you cannot alienate most non-Windows users by flatly stating that you
won't support Netcape.  How can you position something as a generic
framework if 10-15% of all web users are not eligible to use it?

Rasmus,

Why would the fact that Michael isn't interested in supporting Netscape by 
himself stop this from becoming a PHP community project? I think the whole 
idea of making this a php.net/PEAR project would be that others from the 
community would help improve it and it would become what people want it to 
become.
I actually think he has a point that we should strive to create one good 
framework for PHP. This is very much like PEAR trying to give people good 
framework/class solutions.
Why are you being so completely against without letting the rest of php-dev 
 pear-dev discuss it? Ok, then you have made our decision quite easy.. 
Who is our?
Anyway, I'm not saying that this PHP XMF needs to necessarily become the 
basis but I think it'd be a good idea to pitch this to the PEAR guys and 
see what they think about it (cc'ed them). I'm sure that if the pear guys 
would take such a project under their hood it would work with Netscape 
within a few weeks. Working or not working with Netscape is not a reason 
for not taking something as a starting baseline IMO.

Andi


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 I actually think he has a point that we should strive to create one good
 framework for PHP. This is very much like PEAR trying to give people good
 framework/class solutions.

If you had read my message you would have seen that I suggested it may fit
within PEAR.  He was asking for cmf.php.net though which I just don't see
happening.

And frankly, looking at the quality of his site compared to other content
management frameworks out there, I don't see his being at the top of the
heap.  That doesn't mean it couldn't be one day.  But if you are seriously
suggesting saying yes at this point and setting up cmf.php.net for him
and basically framing his system as *the* PHP content management system,
then please say so.

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10702 Updated: levenshtein doesn't handle odd arguments well

2001-07-21 Thread zak

ID: 10702
Updated by: zak
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Strings related
Operating System: Win2k
PHP Version: 4.0.5


Previous Comments:


[2001-07-21 21:59:37] [EMAIL PROTECTED]

Please see the related documentation.

http://php.net/manual/en/function.levenshtein.php




[2001-05-07 09:06:47] [EMAIL PROTECTED]

Hello Hartmut,

levenshtein ('foot','fot','0','0','1');
 - and -
levenshtein ('foot','fot','0','1','1');

return the following error:

Warning:  levenshtein(): argument string(s) too long in 
f:/xitami/pub/php_er/mysql/test.php on line 3

--zak





Edit this bug report at http://bugs.php.net/?id=10702edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Andi Gutmans

At 10:10 PM 7/21/2001 -0700, Rasmus Lerdorf wrote:
  I actually think he has a point that we should strive to create one good
  framework for PHP. This is very much like PEAR trying to give people good
  framework/class solutions.

If you had read my message you would have seen that I suggested it may fit
within PEAR.  He was asking for cmf.php.net though which I just don't see
happening.

And frankly, looking at the quality of his site compared to other content
management frameworks out there, I don't see his being at the top of the
heap.  That doesn't mean it couldn't be one day.  But if you are seriously
suggesting saying yes at this point and setting up cmf.php.net for him
and basically framing his system as *the* PHP content management system,
then please say so.

I don't think we need to say no before the PEAR guys take a look at it 
and maybe discuss it in more detail with the author. I just didn't 
understand the rush of you saying no without waiting for others to 
respond and discussing it in more details. We might come to the conclusion 
that it's a lousy idea but I prefer coming to that conclusion hearing other 
opinions too. We might come to a conclusion that if a zillion things are 
changed it might be nice to have. Or the discussion might spawn a new Pear 
framework.

Andi


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 I don't think we need to say no before the PEAR guys take a look at it
 and maybe discuss it in more detail with the author. I just didn't
 understand the rush of you saying no without waiting for others to
 respond and discussing it in more details. We might come to the conclusion
 that it's a lousy idea but I prefer coming to that conclusion hearing other
 opinions too. We might come to a conclusion that if a zillion things are
 changed it might be nice to have. Or the discussion might spawn a new Pear
 framework.

If it was remotely competitive with something like Midgard I would tend to
agree.  But it is just so far behind.  But sure, if the PEAR folks can be
convinced, great.

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Andi Gutmans

At 10:31 PM 7/21/2001 -0700, Rasmus Lerdorf wrote:
  I don't think we need to say no before the PEAR guys take a look at it
  and maybe discuss it in more detail with the author. I just didn't
  understand the rush of you saying no without waiting for others to
  respond and discussing it in more details. We might come to the conclusion
  that it's a lousy idea but I prefer coming to that conclusion hearing other
  opinions too. We might come to a conclusion that if a zillion things are
  changed it might be nice to have. Or the discussion might spawn a new Pear
  framework.

If it was remotely competitive with something like Midgard I would tend to
agree.  But it is just so far behind.  But sure, if the PEAR folks can be
convinced, great.

I don't want to convince anyone :) I have no personal interest in this. I 
just thought it was odd that I wake up and whilst reading my EMails the 
issue was settled already w/o anyone responding.
I just prefer having more people give a no so that we can give a real 
final no.
Anyway, let's just see if someone in php-dev/pear thinks it's interesting. 
If not, we should leave it as your no.

Andi


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Michael Glazer

I didn't mean to start any trouble.

I may have seem a little heated, but it felt like a very quick negative
response towards my idea.

I have no personal agenda or gripes. I didn't mean to put down your MidGard
project, I am sure it probably fits the bill.

Whether there is a cmf.php.net domain or another site makes no difference to
me.

I just have some CMF ideas (from my experience with other CMF software
products) that I wanted to share and collaborate to bring PHP into this form
of development.

Being an IA I obviously have my own perspectives and points of view I would
like to contribute and collaborate.

That's really it.

I want to collaborate with PHP developers to build a solid CMF on pure PHP
that can easily be equal to or better than the CMF by Zope
(http://cmf.zope.org).

PS the PHP CMF standard (my suggestion) does not have to be XPC as is. I
have built and designed a conceptual framework. What code is used to
implement these ideas do not have to necessarily be mine.

The point I am trying to make is that there are options, many options and if
there are developers who like this idea please let me know.

PPS if you missed the idea (CMF conceptual framework) please visit
http://www.4arrow.com/users/my/html/sections.php/op/listarticles/secid/4

Michael

- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: Rasmus Lerdorf [EMAIL PROTECTED]
Cc: Michael Glazer [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, July 22, 2001 1:26 AM
Subject: Re: [PHP-DEV] Fw: PHP XMF


 At 10:10 PM 7/21/2001 -0700, Rasmus Lerdorf wrote:
   I actually think he has a point that we should strive to create one
good
   framework for PHP. This is very much like PEAR trying to give people
good
   framework/class solutions.
 
 If you had read my message you would have seen that I suggested it may
fit
 within PEAR.  He was asking for cmf.php.net though which I just don't see
 happening.
 
 And frankly, looking at the quality of his site compared to other content
 management frameworks out there, I don't see his being at the top of the
 heap.  That doesn't mean it couldn't be one day.  But if you are
seriously
 suggesting saying yes at this point and setting up cmf.php.net for him
 and basically framing his system as *the* PHP content management system,
 then please say so.

 I don't think we need to say no before the PEAR guys take a look at it
 and maybe discuss it in more detail with the author. I just didn't
 understand the rush of you saying no without waiting for others to
 respond and discussing it in more details. We might come to the conclusion
 that it's a lousy idea but I prefer coming to that conclusion hearing
other
 opinions too. We might come to a conclusion that if a zillion things are
 changed it might be nice to have. Or the discussion might spawn a new Pear
 framework.

 Andi



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Fw: PHP XMF

2001-07-21 Thread Rasmus Lerdorf

 I don't want to convince anyone :) I have no personal interest in this. I
 just thought it was odd that I wake up and whilst reading my EMails the
 issue was settled already w/o anyone responding.

It seemed like an obvious one.  The demo URL he gave didn't work.  When I
dug up a browser it worked with (Opera) and poked around I learned this
thing isn't an open source project so cmf.php.net would be a big fat
advertisement for 4arrow.com where you can go to buy an XPC license or get
a private consultation and needs assesment.  And one of its big claim to
fames is that it eliminates ugly query strings.  ie. they discoverd
$PATH_INFO and perhaps even ForceType,

And the published API for the thing is:

  Arguments
  -
  The arguments that XPC employ are arguments that are sent via standard
  HTTP URI REQUESTs of enviromental variable values.

  $domain =
  $xpc_url =
  $sitepath =
  $siteroot =
  $file =
  $ext =
  $access =
  $fmt =
  $pagetpl =
  $pagekeys =
  $pagedesc =

  Methods
  ---
  The methods that XPC employ are passive aggresive methds of enviromental
  variable manipulation.

  Methods include:
  currentDomain() =
  currentPage() =
  pageTpl() =
  pageStatus() =
  pageAccess() =
  pageFormat() =
  pageMeta() =

That's the sum total of the API documentation.  Here comes the
installation docs:

  XPC Manual setup and Installation
  -
  XPC can be either manually installed or setup vis a vis the 4Arrow setup
  browser install. The 4Arrow setup browser installer can be done locally
  or remotely without any need to manually edit any files.

There are a few more pages describing various stuff and no code to
download!

Compare that to the excellent documentation available for Midgard at
http://www.midgard-project.org/req/midgard-1.4/
or as a PDF: http://www.midgard-project.org/manual_dwnld/manual.pdf.gz

The architecture of XPC may very well be sound.  But we have no way of
knowing this since the code is not available and the available
documentation is useless.  And the parts we can see seem shaky.
Basically all the symptoms of a very young project.  I probably dismissed
Michael a tad abruptly, but I was annoyed at him posting a private reply
to a public list (not that I said anything private in my message, just the
etiquette of it) and his silly reasoning for not supporting Netscape (CEO
of Netscape told him it didn't work) and then after poking around to see
what the hell XPC was, learning that there was nothing there except an
apparently proprietary product which was poorly documented.  Considering
this, having him ask for cmf.php.net seemed absurd to me.

My advice to Michael and 4arrow would be to try to build a community
around this project by first putting the code out there for the community
to play with, and second, spending a lot of time documenting and
presenting the architecture in a concise manner.  Without these two steps
you can't possibly expect to win the support of

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]