Re: [PHP-DEV] URL for segfaults

2002-11-21 Thread Vergoz Michael
Hi !

Did you have some stranges URL request in access_log ?

Michael-


- Original Message - 
From: Steven Roussey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 21, 2002 5:39 PM
Subject: [PHP-DEV] URL for segfaults


 Does anyone have an idea on how to track down segfaults from a
 production Apache 1.3.27/PHP 4.2.3 server? If I could just figure out
 the URL for the page that died, it would go a very long way...
 
 My Apache error_log file is filled with this stuff and it is hurting the
 server's performance:
 
 [Thu Nov 21 08:10:11 2002] [notice] child pid 12850 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:17 2002] [notice] child pid 12908 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:18 2002] [notice] child pid 12593 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:18 2002] [notice] child pid 12525 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:19 2002] [notice] child pid 12815 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:19 2002] [notice] child pid 12518 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:19 2002] [notice] child pid 12454 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:20 2002] [notice] child pid 12600 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:21 2002] [notice] child pid 12645 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:22 2002] [notice] child pid 12569 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:25 2002] [notice] child pid 13051 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:25 2002] [notice] child pid 12633 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:28 2002] [notice] child pid 12714 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:31 2002] [notice] child pid 12461 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:37 2002] [notice] child pid 12658 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:39 2002] [notice] child pid 12565 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:42 2002] [notice] child pid 12524 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:43 2002] [notice] child pid 12922 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:49 2002] [notice] child pid 12875 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:52 2002] [notice] child pid 12508 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:58 2002] [notice] child pid 12656 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:59 2002] [notice] child pid 13076 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:59 2002] [notice] child pid 12826 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:10:59 2002] [notice] child pid 12659 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:01 2002] [notice] child pid 12812 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:03 2002] [notice] child pid 12982 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:03 2002] [notice] child pid 12780 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:03 2002] [notice] child pid 12740 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:03 2002] [notice] child pid 12540 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:04 2002] [notice] child pid 12778 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:04 2002] [notice] child pid 12603 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:10 2002] [notice] child pid 13079 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:11 2002] [notice] child pid 13080 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:12 2002] [notice] child pid 12823 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:13 2002] [notice] child pid 12712 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:13 2002] [notice] child pid 12455 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:14 2002] [notice] child pid 12701 exit signal
 Segmentation fault (11)
 [Thu Nov 21 08:11:23 2002] [notice] child pid 12672 exit signal
 Segmentation fault (11)
 
 Sincerely,
 Steven Roussey
 http://Network54.com/ 
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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




Re: [PHP-DEV] Segfaults in Zend

2002-10-07 Thread Vergoz Michael \(SYSDOOR\)

hmmm yeah, that is the question !

- Original Message -
From: Zeev Suraski [EMAIL PROTECTED]
To: Jan Schneider [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 5:29 PM
Subject: Re: [PHP-DEV] Segfaults in Zend


 What are you doing in order to get it to crash?

 At 18:20 07/10/2002, Jan Schneider wrote:
 Hi,
 
 I currently get following segfaults:
 
 httpd logs:
 
 [Mon Oct  7 17:17:45 2002] [notice] child pid 19460 exit signal
 Segmentation fault (11)
 FATAL:  emalloc():  Unable to allocate 1515870812 bytes
 
 I can understand him well ;-)
 
 BT:
 
 Program received signal SIGSEGV, Segmentation fault.
 0x400d1ab1 in __kill () from /lib/libc.so.6
 (gdb) bt
 #0  0x400d1ab1 in __kill () from /lib/libc.so.6
 #1  0x4049945c in _emalloc () at /root/cvs/cvsphp/Zend/zend_alloc.c:560
 #2  0x404aad27 in concat_function ()
 at /root/cvs/cvsphp/Zend/zend_operators.c:507
 #3  0x404bfda5 in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963
 #4  0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963
 #5  0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963
 #6  0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963
 #7  0x404c4fb6 in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963
 #8  0x404af654 in zend_execute_scripts () at
/root/cvs/cvsphp/Zend/zend.c:377
 #9  0x40473ce5 in php_execute_script () at
/root/cvs/cvsphp/main/main.c:1455
 #10 0x404c8110 in apache_php_module_main ()
 at /root/cvs/cvsphp/sapi/apache/sapi_apache.c:65
 #11 0x404c9138 in send_php (r=0x816f7a8, display_source_mode=0,
 filename=0x81715a8
/usr/local/httpd/htdocs/headhorde/imp/folders.php)
 at /root/cvs/cvsphp/sapi/apache/mod_php4.c:564
 #12 0x404c91c3 in send_parsed_php (r=0x816f7a8)
 at /root/cvs/cvsphp/sapi/apache/mod_php4.c:579
 #13 0x8055250 in ap_invoke_handler ()
 #14 0x806791c in ap_some_auth_required ()
 #15 0x8067993 in ap_process_request ()
 #16 0x805fde7 in ap_child_terminate ()
 #17 0x805ff95 in ap_child_terminate ()
 #18 0x80600d6 in ap_child_terminate ()
 #19 0x80606e8 in ap_child_terminate ()
 #20 0x8060f55 in main ()
 #21 0x400cba8e in __libc_start_main () at
../sysdeps/generic/libc-start.c:93
 
 
 
 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php


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




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




Re: [PHP-DEV] Segfaults in Zend

2002-10-07 Thread Vergoz Michael \(SYSDOOR\)

hmm,

I think that this functionS is not free before the exit, and it take a
segfault.
Or perhaps the returned value are not free, and now it can be dengerous
!?@#! ?

Michael

- Original Message -
From: Jan Schneider [EMAIL PROTECTED]
To: Zeev Suraski [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 07, 2002 6:28 PM
Subject: Re: [PHP-DEV] Segfaults in Zend


 Zeev Suraski wrote:

  Try reducing IMP to the smallest possible script that still reproduces
  the problem (crashes).  That will give us something to go on. Chances
  are it's not a crash in the engine.

 This one's really strange and I'm afraid not very helpful.

 PHP segfaults while returning from a function call. If I exit the script
 before that call all is well. After the call I get the segfault.
 If I exit the script inside the function call directly _before_ the
 function returns all is well again. This not a very complicated function
 (a static method to be exact) and just returns a not very long string by
 value.




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




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




Re: [PHP-DEV] [PATCH] 64 bit PHP (long vs int problems)

2002-09-26 Thread Vergoz Michael \(SYSDOOR\)

Hi,

I has explain that problem in 1 week ago, and what they said to me is Your
not on the good list
c.f: We are on PHP-_DEV_ isn't it ?

and, well i'v the sames problem of you plus we can use a long integer in
PHP.

Best Regards,
Vergoz Michael

- Original Message -
From: Jason Greene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 5:52 AM
Subject: [PHP-DEV] [PATCH] 64 bit PHP (long vs int problems)


 Hello all,

 After attempting to compile php on solaris as a 64 bit executable, and
 resolving the attempt to link libcrack (32bit lib), I was greated with a
 nice Bus Error.

 Upon examining the source, it looks like their are alot of areas where
 longs and ints are used interchangeably. This is not good since a 64 bit
 solaris executable has 64 bit longs, and 32 bit ints.

 I have thrown together an initial patch that fixes this, but it does
 make make some changes that should be thought about. (such as using a
 long instead of an int for memmory limit and size counting) However,
 Overall it should not make too big a difference. (especially on the
 primarily targetted platforms whose ints and longs are the same)

 I did not check anything but the core extensions, so those will need to
 be looked at next.

 If no one throws any major objects, I will put together a better version
 of this patch and commit it upon completion.

 Thanks,

 --
 Jason Greene [EMAIL PROTECTED]







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


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




Re: [PHP-DEV] [PATCH] 64 bit PHP (long vs int problems) (fault)

2002-09-26 Thread Vergoz Michael \(SYSDOOR\)

 Hi,

 I has explain that problem in 1 week ago, and what they said to me is
Your
 not on the good list
 c.f: We are on PHP-_DEV_ isn't it ?

 and, well i'v the sames problem of you plus we can use a long integer in
 PHP.

Sorry, we can not use.


 Best Regards,
 Vergoz Michael

 - Original Message -
 From: Jason Greene [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 5:52 AM
 Subject: [PHP-DEV] [PATCH] 64 bit PHP (long vs int problems)


  Hello all,
 
  After attempting to compile php on solaris as a 64 bit executable, and
  resolving the attempt to link libcrack (32bit lib), I was greated with a
  nice Bus Error.
 
  Upon examining the source, it looks like their are alot of areas where
  longs and ints are used interchangeably. This is not good since a 64 bit
  solaris executable has 64 bit longs, and 32 bit ints.
 
  I have thrown together an initial patch that fixes this, but it does
  make make some changes that should be thought about. (such as using a
  long instead of an int for memmory limit and size counting) However,
  Overall it should not make too big a difference. (especially on the
  primarily targetted platforms whose ints and longs are the same)
 
  I did not check anything but the core extensions, so those will need to
  be looked at next.
 
  If no one throws any major objects, I will put together a better version
  of this patch and commit it upon completion.
 
  Thanks,
 
  --
  Jason Greene [EMAIL PROTECTED]
 


 --
--
 


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


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




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




[PHP-DEV] question type

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)

hi list,

does PHP support _s64 type ?

michael



[PHP-DEV] paradoxal function

2002-09-19 Thread Vergoz Michael (SYSDOOR)

hi list,

intval return a int (_s32) and the function 'convert_to_long_base' can 
save the 'zval' as _s64.
Well intval can't return a '_s64' type.


Vergoz Michael


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




[PHP-DEV] and so... there is a security problem.

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)

Hi list,

i think that you have to return a _s64 per default, cuz for exemple i'm using some 
identification coded on _s64 if i jump 21 474 836 47, intval() will return to me a 
wrong number (normal) but i _can't_ know if that that number is a valid _s64 (_s64) 
and there can have some big security problems

Exemple:

$id = intval($_GET['id']);
$query = 
SELECT
\proute\
FORM 
\polom\
WHERE
id = $id
;

Best regards,
Vergoz Michael
SYSDOOR



Re: [PHP-DEV] and so... there is a security problem.

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)

Only that you have to explain me ?
goto to another list ..
pff

- Original Message -
From: [EMAIL PROTECTED]
To: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 12:48 PM
Subject: Re: [PHP-DEV] and so... there is a security problem.


 Hey,

 this is the wrong list for these kinds of questions, try the
 [EMAIL PROTECTED] mailinglist instead.

 Derick

 On Thu, 19 Sep 2002, Vergoz Michael (SYSDOOR) wrote:

  Hi list,
 
  i think that you have to return a _s64 per default, cuz for exemple i'm
using some identification coded on _s64 if i jump 21 474 836 47, intval()
will return to me a wrong number (normal) but i _can't_ know if that that
number is a valid _s64 (_s64) and there can have some big security problems
 
  Exemple:
 
  $id = intval($_GET['id']);
  $query = 
  SELECT
  \proute\
  FORM
  \polom\
  WHERE
  id = $id
  ;
 
  Best regards,
  Vergoz Michael
  SYSDOOR
 

 --
-
  Derick Rethans   http://derickrethans.nl/
  JDI Media Solutions
 -[ [EMAIL PROTECTED]: Databases are for
Assholes ]-


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




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




Re: [PHP-DEV] and so... there is a security problem.

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)

(quelle bande de connard)

- Original Message - 
From: Dan Hardiker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 12:51 PM
Subject: Re: [PHP-DEV] and so... there is a security problem.


  Only that you have to explain me ?
  goto to another list ..
  pff
 
 As has been explained over and over, this list is about the development
 and extension of PHP itself (majorly dealing with the underlying C code).
 Its not about how to secure, alter, ammend, bug fix your PHP code.
 php-general@ is setup for that purpose, and you will find many more PHP
 coders that will help you with your problem.
 
 If you want to know what time a train leaves, you ask the driver /
 station. You dont ask the people who build trains. ;)
 
 
 -- 
 Dan Hardiker [[EMAIL PROTECTED]]
 ADAM Software  Systems Engineer
 First Creative Ltd
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


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




Re: [PHP-DEV] question type

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)

WHAT ?!
I never refering to typedef anyway !!
_s64 are nothing in common with typedef !

_s64 is a double words :

linux/types.h:113:typedef   __s64   int64_t;

descript@fabienne:/usr/include$ grep -rn s64 * | wc -l
 85
descript@fabienne:/usr/include$


Well, i think that you have to learn C hmmm...

--
Sorry for my nerviousity today.

Vergoz Michael

- Original Message -
From: Hartmut Holzgraefe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, September 19, 2002 3:06 PM
Subject: Re: [PHP-DEV] question type


  Vergoz Michael (SYSDOOR) wrote:
  does PHP support _s64 type ?

 there is no such thing as a _s64 type in C,
 what you are refering to is a typedef to
 a native C type of that size ...

 [EMAIL PROTECTED] wrote:
  No, PHP has only:
 
  null
  bool (true or false)
  string
  integer (signed, 32 bits)
  array
  object

 well, actualy it also has float
 where PHP float maps to C double
 abd PHP integer maps to C long

 the actual bit sizes depend on whatever the C compiler
 used for compiling PHP uses as long and double

 32bits signed for long and 64bits IEEE Format for
 double are the usual values, but long may also
 be 64bits signed on true 64bit CPUs


 --
 Six Offene Systeme GmbH http://www.six.de/
 i.A. Hartmut Holzgraefe
 Email: [EMAIL PROTECTED]
 Tel.:  +49-711-99091-77


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




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




Re: [PHP-DEV] Segfault in 4.2.3RC2

2002-09-04 Thread Vergoz Michael \(SYSDOOR\)

me too..
- Original Message -
From: [EMAIL PROTECTED]
To: Martin Jansen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002 9:37 PM
Subject: Re: [PHP-DEV] Segfault in 4.2.3RC2


 On Wed, 4 Sep 2002, Martin Jansen wrote:

  The script to reproduce the segfault can be found at
  http://www.martinjansen.com/php/segfault-4.2.3RC2.txt. If you need
  more information (backtrace etc.), just ask.

 That link gives a four oh four to me...

 Derick

 --
-
  Did I help you?   http://www.derickrethans.nl/link.php?url=giftlist
  Frequent ranting: http://www.derickrethans.nl/
 --
-
  PHP: Scripting the Web - [EMAIL PROTECTED]
 All your branches are belong to me!
 SRM: Script Running Machine - www.vl-srm.net
 --
-


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


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




Re: [PHP-DEV] Funny message

2002-06-04 Thread Vergoz Michael

hmf

- Original Message -
From: Kristian Koehntopp [EMAIL PROTECTED]
To: Rasmus Lerdorf [EMAIL PROTECTED]; Michael Stolovitzsky
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 10:00 AM
Subject: Re: [PHP-DEV] Funny message


  On Tue, 4 Jun 2002, Michael Stolovitzsky wrote:
   Parse error:  parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM
   in [...]
  
   With all due respect to Hebrew humour, am I the only one who
   thinks that the above line is confusing to non-Israeli? ;)

  Hey, I am a transplanted Canadian Danish Latin Eskimo living
  in California and even I know that this obviously means
  double-colon...

 Still the error message sucks, even if you substitute any other
 token in place of the double colon. There is no context given
 (listing the line in question and placing a ^ below the current
 position would be of great help), and sometimes there are even
 general parse errors messages, no reason given at all.

 This seems to need a bit of work, I believe.

 Kristian


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


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




Re: [PHP-DEV] Getting a remote IP address

2002-06-01 Thread Vergoz Michael

please to not ask this question on this list.

print($REMOTE_ADDR);

Regards,
Vergoz Michael

- Original Message - 
From: Hugo Gallo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 9:30 PM
Subject: [PHP-DEV] Getting a remote IP address


 How do I get a clients IP address displayed on my PHP page?
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php


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




Re: [PHP-DEV] Getting a remote IP address

2002-06-01 Thread Vergoz Michael

exactly.

- Original Message - 
From: Hans Spath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Hugo Gallo [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 10:36 PM
Subject: Re: [PHP-DEV] Getting a remote IP address


 At 01.06.2002 21:44 +0200, Vergoz Michael wrote:
 please to not ask this question on this list.
 
 print($REMOTE_ADDR);
 
 Bad idea, won't work with register_globals=off.
 
 Instead do it this way:
 
 echo $_SERVER['REMOTE_ADDR'];
 or
 echo $HTTP_SERVER_VARS['REMOTE_ADDR'];
 
 regards,
 Hans Spath
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php


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




[PHP-DEV] Libnet for PHP

2002-06-01 Thread Vergoz Michael

Hi list,

i would like to make a libnet (raw socket) interface for php.

any ideas/suggests ?

c.f: http://www.phrack.org/show.php?p=55a=6

regards 
Vergoz Michael



Re: [PHP-DEV] CVS Account Request: nicos

2002-05-24 Thread Vergoz Michael

Hello nicos, could you stop lie please, you are not a developer of ircu or
hybrid.
And well, your connection is not dedicaced.

best regards,
Vergoz Michael

- Original Message -
From: CHAILLAN Nicolas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 24, 2002 7:46 PM
Subject: [PHP-DEV] CVS Account Request: nicos


 I own a company, I am a personal coder, I shall help you with every patch
you want me to, I'm already a coder for ircu and hybrid. I also can host you
a mirror from France on an OC 3 from my company.
 I also can help you with translating, french and italian

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


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




[PHP-DEV] ImageTTFText stupid implementation.

2002-04-14 Thread Vergoz Michael (SYSDOOR)



Hello list,

The function ImageTTFText do a anti-aliasing 
automaticaly. Is stupid, cuz, for exemple i using a 'pixel typografi' and i 
don't need the anti-aliasing. 
Perhaps any function can stop the anti-aliasing for 
this function or perhaps i'm stupid ;)

Regards,Vergoz Michaelhttp://www.sysdoor.com[EMAIL PROTECTED]


Re: [PHP-DEV] ImageTTFText stupid implementation.

2002-04-14 Thread Vergoz Michael (SYSDOOR)

heh i'm okay, but how to change the font color right now ???

Cordialement,
Vergoz Michael
http://www.sysdoor.com
[EMAIL PROTECTED]
- Original Message -
From: Markus Fischer [EMAIL PROTECTED]
To: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, April 14, 2002 2:57 PM
Subject: Re: [PHP-DEV] ImageTTFText stupid implementation.


 RTFM:

 From: http://www.php.net/manual/en/function.imagettftext.php

 Col is the color index. Using the negative of a color index
 has the effect of turning off antialiasing.


 So, yes, you're the stupid one. Next time ask on php-general@


 ;-)

 On Sun, Apr 14, 2002 at 02:45:39PM +0200, Vergoz Michael (SYSDOOR) wrote :
  Hello list,
 
  The function ImageTTFText do a anti-aliasing automaticaly. Is stupid,
cuz, for exemple i using a 'pixel typografi' and i don't need the
anti-aliasing.
  Perhaps any function can stop the anti-aliasing for this function or
perhaps i'm stupid ;)
 
  Regards,
  Vergoz Michael
  http://www.sysdoor.com
  [EMAIL PROTECTED]

 --
 Please always Cc to me when replying to me on the lists.
 GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
 Mind if I MFH ? What QA did you do on it? the usual? ah... none :)



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




[PHP-DEV] [Fwd: posix_uname another bug @^|[@#\@^#~@{[?]

2002-03-24 Thread Vergoz Michael (SYSDOOR)



---BeginMessage---

refere include file : sys/utsname.h !
You can see if the macro __USE_GNU is set the char returned are 
'domainname' else the char are '__domainname' #@\[~\
You know this function can do a apache segfault ?!
Becarful cuz domainename doesn't exist on freebsd !

there is the current (PHP-4.2.0RC1) code on : ext/posix/posix.c

/* {{{ proto array posix_uname(void)
   Get system name (POSIX.1, 4.4.1) */
PHP_FUNCTION(posix_uname)
{
struct utsname u;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ) == FAILURE)
return;

if (uname(u)  0) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}

if (array_init(return_value) == FAILURE) {
// TODO: Should we issue a warning here so we don't have ambiguity
// with the above return value ?
RETURN_FALSE;
}

add_assoc_string(return_value, sysname,  u.sysname,  1);
add_assoc_string(return_value, nodename, u.nodename, 1);
add_assoc_string(return_value, release,  u.release,  1);
add_assoc_string(return_value, version,  u.version,  1);
add_assoc_string(return_value, machine,  u.machine,  1);
#ifdef _GNU_SOURCE/* i'm okay */
add_assoc_string(return_value, domainname, u.domainname, 1); /* - 
{|^@#\|^[#\ */
#endif
}
/* }}} */

/*Fixed 
code--*/

/* {{{ proto array posix_uname(void)
   Get system name (POSIX.1, 4.4.1) */
PHP_FUNCTION(posix_uname)
{
struct utsname u;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ) == FAILURE)
return;

if (uname(u)  0) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}

if (array_init(return_value) == FAILURE) {
// TODO: Should we issue a warning here so we don't have ambiguity
// with the above return value ?
RETURN_FALSE;
}

add_assoc_string(return_value, sysname,  u.sysname,  1);
add_assoc_string(return_value, nodename, u.nodename, 1);
add_assoc_string(return_value, release,  u.release,  1);
add_assoc_string(return_value, version,  u.version,  1);
add_assoc_string(return_value, machine,  u.machine,  1);
#ifdef _GNU_SOURCE
#ifdef __USE_GNU
add_assoc_string(return_value, domainname, u.domainname, 1);
#else
add_assoc_string(return_value, domainname, u.__domainname, 1);
#endif
#endif
}
/* }}} */



---End Message---

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


[PHP-DEV] [Fwd: pg_exec function can be optimized]

2002-03-24 Thread Vergoz Michael (SYSDOOR)



---BeginMessage---




all the time you use pg_exec you have to put the result of this function
into a 'PGresult *' and after the execution you have clear the pointer.
In big trafic your apache can take more memory. We can save more 1k per query
!!!
there is the current code of pg_exec

(L.714, file : ext/pgsql.c)

PHP_FUNCTION(pg_exec)
{
 zval **query, **pgsql_link = NULL;
 int id = -1;
 PGconn *pgsql;
 PGresult *pgsql_result;
 ExecStatusType status;
 pgsql_result_handle *pg_result;
[...]
  convert_to_string_ex(query);
  pgsql_result = PQexec(pgsql, Z_STRVAL_PP(query)); /* - well
with have free that buffer */

  if (pgsql_result) {
  status = PQresultStatus(pgsql_result);
  } else {
  status = (ExecStatusType) PQstatus(pgsql);
  }
[...]
 switch (status) {
 case PGRES_EMPTY_QUERY:
 case PGRES_BAD_RESPONSE:
 case PGRES_NONFATAL_ERROR:
 case PGRES_FATAL_ERROR:
 php_error(E_WARNING, "PostgreSQL query failed: %s", PQerrorMessage(pgsql));
 RETURN_FALSE;
 break;
 case PGRES_COMMAND_OK: /* well the query has be excuted, and the
pg_result is in memory, but we don't need it */
 default:
[...]

/*--Fixed code-*/

/* {{{ proto int pg_exec([int connection,] string query) 
 Execute a query */ 
PHP_FUNCTION(pg_exec)
{
 zval **query, **pgsql_link = NULL;
 int id = -1;
 PGconn *pgsql;
 PGresult *pgsql_result;
 ExecStatusType status;
 pgsql_result_handle *pg_result;

 switch(ZEND_NUM_ARGS()) {
 case 1:
 if (zend_get_parameters_ex(1, query)==FAILURE) {
 RETURN_FALSE;
 }
 id = PGG(default_link); 
 CHECK_DEFAULT_LINK(id); 
 break; 
 case 2:
 if (zend_get_parameters_ex(2, pgsql_link, query)==FAILURE)
{
 RETURN_FALSE;
 }
 break;
 default:
 WRONG_PARAM_COUNT;
 break;
 }

 ZEND_FETCH_RESOURCE2(pgsql, PGconn *, pgsql_link, id, "PostgreSQL link",
le_link, le_plink);

 convert_to_string_ex(query);
 pgsql_result = PQexec(pgsql, Z_STRVAL_PP(query));

 if (pgsql_result) {
 status = PQresultStatus(pgsql_result);
 } else {
 status = (ExecStatusType) PQstatus(pgsql);
 }
 switch (status) { 
 case PGRES_EMPTY_QUERY: 
 case PGRES_BAD_RESPONSE: 
 case PGRES_NONFATAL_ERROR: 
 case PGRES_FATAL_ERROR:
 php_error(E_WARNING, "PostgreSQL query failed: %s", PQerrorMessage(pgsql));
 RETURN_FALSE;
 break;
 case PGRES_COMMAND_OK:
 PQclear(pgsql_result); /* vacum the current execution and
save 1k ! :) */
 /* successful command that did not return rows */
 default:
 if (pgsql_result) {
 pg_result = (pgsql_result_handle *) emalloc(sizeof(pgsql_result_handle));
 pg_result-conn = pgsql;
 pg_result-result = pgsql_result;
 pg_result-row = -1;
 ZEND_REGISTER_RESOURCE(return_value, pg_result, le_result);
 /*
 return_value-value.lval = zend_list_insert(pg_result,le_result);
 return_value-type = IS_LONG;
 */
 } else {
 RETURN_FALSE;
 }
 break;
 }
}
/* }}} */



---End Message---

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


Re: [PHP-DEV] [Fwd: posix_uname another bug @^|[@#\@^#~@{[?]

2002-03-24 Thread Vergoz Michael (SYSDOOR)

have you reveiv the pgsql.c optimization code ?
(is nothing to fix le utsname ;))

another question : how to become a php developer ?

- Original Message -
From: Markus Fischer [EMAIL PROTECTED]
To: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 24, 2002 12:51 PM
Subject: Re: [PHP-DEV] [Fwd: posix_uname another bug @^|[@#\@^#~@{[?]


 Why do you think apache gets a segfault?
sorry not segfault but compilation problem ;)

 The only thing is the the 'domainname' key is missing from
 the hash although it should display the content of
 __domainname (on non-bsd systems)

 I'm willing to fix it if someone comes up with a proper patch
 that also honors BSD. It's not very critical I think (until I
 miss the obvious).

 - Markus

 On Sun, Mar 24, 2002 at 12:16:41PM +0100, Vergoz Michael (SYSDOOR) wrote :
 

  Date: Sun, 24 Mar 2002 12:03:42 +0100
  From: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED]
  Subject: posix_uname another bug @^|[@#\@^#~@{[?
  User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8)
Gecko/20020214
  To: php-qa [EMAIL PROTECTED]
  From - Sun Mar 24 12:03:43 2002
  X-Mozilla-Status2: 
 
  refere include file : sys/utsname.h !
  You can see if the macro __USE_GNU is set the char returned are
  'domainname' else the char are '__domainname' #@\[@~\
  You know this function can do a apache segfault ?!
  Becarful cuz domainename doesn't exist on freebsd !
 
  there is the current (PHP-4.2.0RC1) code on : ext/posix/posix.c
 
  /* {{{ proto array posix_uname(void)
Get system name (POSIX.1, 4.4.1) */
  PHP_FUNCTION(posix_uname)
  {
 struct utsname u;
 
 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ) == FAILURE)
 return;
 
 if (uname(u)  0) {
 POSIX_G(last_error) = errno;
 RETURN_FALSE;
 }
 
 if (array_init(return_value) == FAILURE) {
 // TODO: Should we issue a warning here so we don't have
ambiguity
 // with the above return value ?
 RETURN_FALSE;
 }
 
 add_assoc_string(return_value, sysname,  u.sysname,  1);
 add_assoc_string(return_value, nodename, u.nodename, 1);
 add_assoc_string(return_value, release,  u.release,  1);
 add_assoc_string(return_value, version,  u.version,  1);
 add_assoc_string(return_value, machine,  u.machine,  1);
  #ifdef _GNU_SOURCE/* i'm okay */
 add_assoc_string(return_value, domainname, u.domainname, 1); /* -
  {|^@#\|^[#\ */
  #endif
  }
  /* }}} */
 
  /*Fixed
  code--*/
 
  /* {{{ proto array posix_uname(void)
Get system name (POSIX.1, 4.4.1) */
  PHP_FUNCTION(posix_uname)
  {
 struct utsname u;
 
 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ) == FAILURE)
 return;
 
 if (uname(u)  0) {
 POSIX_G(last_error) = errno;
 RETURN_FALSE;
 }
 
 if (array_init(return_value) == FAILURE) {
 // TODO: Should we issue a warning here so we don't have
ambiguity
 // with the above return value ?
 RETURN_FALSE;
 }
 
 add_assoc_string(return_value, sysname,  u.sysname,  1);
 add_assoc_string(return_value, nodename, u.nodename, 1);
 add_assoc_string(return_value, release,  u.release,  1);
 add_assoc_string(return_value, version,  u.version,  1);
 add_assoc_string(return_value, machine,  u.machine,  1);
  #ifdef _GNU_SOURCE
 #ifdef __USE_GNU
 add_assoc_string(return_value, domainname, u.domainname, 1);
 #else
 add_assoc_string(return_value, domainname, u.__domainname, 1);
 #endif
  #endif
  }
  /* }}} */
 
 

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

 --
 Please always Cc to me when replying to me on the lists.
 GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc



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




[PHP-DEV] Optimization

2002-03-24 Thread Vergoz Michael (SYSDOOR)



Currently i'm going to optimize only posix function 
i'v see some pointer can be optimized ;)
working on : ext/posix

Cordialement,Vergoz MichaelDirecteur 
généralhttp://www.sysdoor.com[EMAIL PROTECTED]


[PHP-DEV] CVS Account Request: descript

2002-03-24 Thread Vergoz Michael

Well, i would like work for php only to optimize all external/internal function.

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




[PHP-DEV] question

2002-03-24 Thread Vergoz Michael (SYSDOOR)

look this code :

char  buffer[MAXPATHLEN];
char *p;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, ) == FAILURE)
return;

if((p = VCWD_GETCWD(buffer, MAXPATHLEN)) == NULL) {
POSIX_G(last_error) = errno;
RETURN_FALSE;
}

RETURN_STRING(buffer, 1);

in this code the char pointer 'p' is really needed ?

michael


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