[PHP-DEV] problems on building php_win32 release binaries

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

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

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

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

Here is the log of VStudio

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

[PHP-DEV] Re: problems on building php_win32 release binaries

2003-02-03 Thread Ernani Joppert Pontes Martins
Thanks Moshe

It helped a lot... I couldn't realize that these infos could be found at php
manual since it is for developers.

Cheers,

Ernani


"Moshe Doron" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> http://www.php.net/manual/en/install.windows.php
> follow the steps releted to win32build. anyway u always can use cygwin
building the source.
>
> moshe
> --
>
>
> "Ernani Joppert Pontes Martins" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi Fellows,
> >
> > I was trying to build a win32 version of the CVS Snapshots and I got
some
> > problems on its build.
> >
> > Anyways I wish to help with a odbc bug that in not solved yet and I
can't
> > understant why some files in the project is missing...
> >
> > The Snapshot version I got was php4-STABLE-200302021430.tar.gz
> >
> > Here is the log of VStudio
> >
> > Configuration: TSRM - Win32
> > Release_TS
> > Compiling...
> > TSRM.c
> > tsrm_strtok_r.c
> > tsrm_virtual_cwd.c
> > tsrm_win32.c
> > Creating library...
> > Configuration: Zend - Win32
> > Release_inline
> > Compiling...
> > zend.c
> > zend_alloc.c
> > zend_API.c
> > zend_builtin_functions.c
> > zend_compile.c
> > zend_constants.c
> > zend_execute.c
> > zend_execute_API.c
> > C:\Documents and
> > Settings\Administrador\Desktop\php4_source\Zend\zend_execute_API.c(362)
:
> > warning C4018: '==' : signed/unsigned mismatch
> > zend_extensions.c
> > zend_hash.c
> > zend_highlight.c
> > zend_indent.c
> > zend_ini.c
> > zend_ini_parser.c
> > zend_ini_scanner.c
> > zend_language_parser.c
> > zend_language_scanner.c
> > C:\Documents and
> >
Settings\Administrador\Desktop\php4_source\Zend\zend_language_scanner.c(5558
> > ) : warning C4273: 'isatty' : inconsistent dll linkage.  dllexport
assumed.
> > zend_list.c
> > zend_llist.c
> > zend_multibyte.c
> > Generating Code...
> > Compiling...
> > zend_opcode.c
> > zend_operators.c
> > zend_ptr_stack.c
> > zend_qsort.c
> > zend_sprintf.c
> > zend_stack.c
> > zend_variables.c
> > Generating Code...
> > Creating library...
> > Configuration: libmysql - Win32
> > Release_inline
> > Compiling...
> > array.c
> > bchange.c
> > bmove.c
> > bmove_upp.c
> > charset.c
> > ctype.c
> > dbug.c
> > default.c
> > dll.c
> > errmsg.c
> > errors.c
> > get_password.c
> > int2str.c
> > is_prefix.c
> > libmysql.c
> > C:\Documents and
> >
Settings\Administrador\Desktop\php4_source\ext\mysql\libmysql\libmysql.c(923
> > ) : warning C4018: '>' : signed/unsigned mismatch
> > C:\Documents and
> >
Settings\Administrador\Desktop\php4_source\ext\mysql\libmysql\libmysql.c(982
> > ) : warning C4018: '>' : signed/unsigned mismatch
> > list.c
> > longlong2str.c
> > mf_casecnv.c
> > mf_dirname.c
> > mf_fn_ext.c
> > mf_format.c
> > mf_loadpath.c
> > mf_pack.c
> > mf_path.c
> > mf_unixpath.c
> > mf_wcomp.c
> > mulalloc.c
> > my_alloc.c
> > my_compress.c
> > my_create.c
> > my_delete.c
> > my_div.c
> > my_error.c
> > my_fopen.c
> > my_getwd.c
> > my_init.c
> > my_lib.c
> > my_malloc.c
> > my_messnc.c
> > my_net.c
> > my_once.c
> > my_open.c
> > my_pthread.c
> > my_read.c
> > my_realloc.c
> > my_static.c
> > my_tempnam.c
> > my_thr_init.c
> > my_wincond.c
> > my_winthread.c
> > my_write.c
> > net.c
> > password.c
> > safemalloc.c
> > str2int.c
> > strcend.c
> > strcont.c
> > strend.c
> > strfill.c
> > string.c
> > strinstr.c
> > strmake.c
> > strmov.c
> > strnmov.c
> > strtoll.c
> > strtoull.c
> > strxmov.c
> > thr_mutex.c
> > typelib.c
> > violite.c
> > Creating library...
> > Configuration: php4dll - Win32
> > Release_inline
> > Compiling...
> > aggregation.c
> > css.c
> > cyr_convert.c
> > fopen_wrappers.c
> > C:\Documents and
> > Settings\Administrador\Desktop\php4_source\main\php_network.h(28) :
fatal
> > error C1083: Cannot open include file: &#x

[PHP-DEV] Bug #21279 Karma request (Windows Bug)

2003-02-05 Thread Ernani Joppert Pontes Martins
Hi Rasmus,

A Few months ago I was willing to help in bug fixes and bcompiler
development

I solved the bug #21279 and now I need karma to commit my changes there

I debbuged the file with the help of Manuel Lemos and I found the bug.

Here is the diff:

1615:  // Z_STRVAL_P(tmp) = empty_string;
1616:  ZVAL_NULL(tmp);

1626:  // Z_STRVAL_P(tmp) = empty_string;
1627:  ZVAL_NULL(tmp);

TIA and HTH,

Ernani



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




Re: [PHP-DEV] Bug #21279 Karma request (Windows Bug)

2003-02-05 Thread Ernani Joppert Pontes Martins

OK, I will change the Style of the comments

But that's not the point.

The point is that I need CVS Karma to commit it and I don't have.

When I get it then I will make the unified diff and send to the list...

TIA,

Ernani





"Joseph Tate" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You need to use "C" style /*comments*/.
>
> Also, send a unified diff.  Do this by running cvs diff -u  modified>.
>
> Joseph
>
> > -Original Message-
> > From: Ernani Joppert Pontes Martins [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 05, 2003 10:05 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-DEV] Bug #21279 Karma request (Windows Bug)
> >
> >
> > Hi Rasmus,
> >
> > A Few months ago I was willing to help in bug fixes and bcompiler
> > development
> >
> > I solved the bug #21279 and now I need karma to commit my changes there
> >
> > I debbuged the file with the help of Manuel Lemos and I found the bug.
> >
> > Here is the diff:
> >
> > 1615:  // Z_STRVAL_P(tmp) = empty_string;
> > 1616:  ZVAL_NULL(tmp);
> >
> > 1626:  // Z_STRVAL_P(tmp) = empty_string;
> > 1627:  ZVAL_NULL(tmp);
> >
> > TIA and HTH,
> >
> > Ernani
> >
> >
> >
> > --
> > 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] Bug #21279 Karma request (Windows Bug)

2003-02-05 Thread Ernani Joppert Pontes Martins

Here is the compliant diff of the existing version

Index: php_odbc.c
===
RCS file: /repository/php4/ext/odbc/php_odbc.c,v
retrieving revision 1.153
diff -u -r1.153 php_odbc.c
--- php_odbc.c 24 Jan 2003 22:40:38 - 1.153
+++ php_odbc.c 6 Feb 2003 05:22:49 -
@@ -1589,7 +1589,7 @@
 if (rc == SQL_SUCCESS_WITH_INFO) {
  Z_STRLEN_P(tmp) = result->longreadlen;
 } else if (result->values[i].vallen == SQL_NULL_DATA) {
- Z_STRVAL_P(tmp) = IS_NULL;
+ ZVAL_NULL(tmp);
  break;
 } else {
  Z_STRLEN_P(tmp) = result->values[i].vallen;
@@ -1599,7 +1599,7 @@

default:
 if (result->values[i].vallen == SQL_NULL_DATA) {
- Z_STRVAL_P(tmp) = IS_NULL;
+ ZVAL_NULL(tmp);
  break;
 }
 Z_STRLEN_P(tmp) = result->values[i].vallen;





"Ernani Joppert Pontes Martins" <[EMAIL PROTECTED]> escreveu na
mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> OK, I will change the Style of the comments
>
> But that's not the point.
>
> The point is that I need CVS Karma to commit it and I don't have.
>
> When I get it then I will make the unified diff and send to the list...
>
> TIA,
>
> Ernani
>
>
>
>
>
> "Joseph Tate" <[EMAIL PROTECTED]> escreveu na mensagem
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You need to use "C" style /*comments*/.
> >
> > Also, send a unified diff.  Do this by running cvs diff -u  > modified>.
> >
> > Joseph
> >
> > > -Original Message-
> > > From: Ernani Joppert Pontes Martins
[mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 05, 2003 10:05 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-DEV] Bug #21279 Karma request (Windows Bug)
> > >
> > >
> > > Hi Rasmus,
> > >
> > > A Few months ago I was willing to help in bug fixes and bcompiler
> > > development
> > >
> > > I solved the bug #21279 and now I need karma to commit my changes
there
> > >
> > > I debbuged the file with the help of Manuel Lemos and I found the bug.
> > >
> > > Here is the diff:
> > >
> > > 1615:  // Z_STRVAL_P(tmp) = empty_string;
> > > 1616:  ZVAL_NULL(tmp);
> > >
> > > 1626:  // Z_STRVAL_P(tmp) = empty_string;
> > > 1627:  ZVAL_NULL(tmp);
> > >
> > > TIA and HTH,
> > >
> > > Ernani
> > >
> > >
> > >
> > > --
> > > 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] Re: Record Paging sqlServer/odbc

2002-09-18 Thread Ernani Joppert Pontes Martins

SQL Server does not support LIMIT.

[]'s

Ernani

"Lerp" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all, I have a small php app where I'd like to incorporate page throughs
> of records, say 10 at a time.
>
> I'm using sqlServer and have run into a problem using the LIMIT statement
> within my query.
>
> SQL Code:
>
> $sqls = "SELECT consultantid, firstname, lastname, city, country,
category,
> yearsexp FROM CONSULTANT ORDER BY consultantid DESC LIMIT $var1, $var2" ;
>
>
> So how the heck do I get around this problem since I've discovered that
the
> LIMIT statement will not work with sqlServer??? :)
> I've heard of people using the TOP keyword and doing it that way, but I am
> unable to locate a similar example.
>
> Thx a bunch :) Joe
>
> p.s. Sorry for the cross-post, seemed like the other server wasn't working
> properly
>
>
>
>
>



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




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

2002-10-01 Thread Ernani Joppert Pontes Martins


Take a look at this topic at

http://br.groups.yahoo.com/group/traducao-php/

We have made some arrangements to improve more productivity regarding
this topic there.

Cheers,

Ernani

"Carolina Ribeiro Da Silva" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to help in translating documentation and whatever needs to be
translated to portuguese. My husband is a between many things a web
developer, software arquitect, etc and I'm a web designer. We are always
willing to help.



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




[PHP-DEV] Sugestion: Most common errors....(Session Management)

2002-10-02 Thread Ernani Joppert Pontes Martins

I have a sugestion..

Like some of "a lot" of designers want to use ASP scripts on server side

I have had a lot of critics about session handling on PHP.

Yes I know that you can't send headers to the browser when you've already
sent some other stuffs, but ASP users have strange feeling that this is
weird.

They are not able to understand this procedure, and this way give them some
bad feelings about using PHP.

Can't we implement some procedure that checks if Cookies and session
commands were specified in the wrong way and automatically fix this for the
ASP wrong programmers?

If we found some cookies and session parameters on the entire script, can
php intend to send this values to the browser w/o send that warning message
?

This procedure should minimize most common problems to bring PHP as the most
Strong server side scripting language used in the entire internet.

I am not a ASP fan, I had this problems while I was trying to bring more
people to PHP and quit to implement Microsoft ASP solutions.

Cheers,

Ernani




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




[PHP-DEV] Re: Sugestion: Most common errors....(Session Management)

2002-10-02 Thread Ernani Joppert Pontes Martins

Another idea is to provide to more newbie users a PHP Administrator like in
Coldfusion Administrator.

This will also let the remote user change some php directives.

[]'s

Ernani


"Ernani Joppert Pontes Martins" <[EMAIL PROTECTED]> escreveu na
mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a sugestion..
>
> Like some of "a lot" of designers want to use ASP scripts on server
side
>
> I have had a lot of critics about session handling on PHP.
>
> Yes I know that you can't send headers to the browser when you've already
> sent some other stuffs, but ASP users have strange feeling that this is
> weird.
>
> They are not able to understand this procedure, and this way give them
some
> bad feelings about using PHP.
>
> Can't we implement some procedure that checks if Cookies and session
> commands were specified in the wrong way and automatically fix this for
the
> ASP wrong programmers?
>
> If we found some cookies and session parameters on the entire script, can
> php intend to send this values to the browser w/o send that warning
message
> ?
>
> This procedure should minimize most common problems to bring PHP as the
most
> Strong server side scripting language used in the entire internet.
>
> I am not a ASP fan, I had this problems while I was trying to bring more
> people to PHP and quit to implement Microsoft ASP solutions.
>
> Cheers,
>
> Ernani
>
>
>



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




Re: [PHP-DEV] Sugestion: Most common errors....(Session Management)

2002-10-02 Thread Ernani Joppert Pontes Martins

Hi Gareth,

I do not know about performance impacts

Lke I've said, that is just an idea for ASP guys to see the PHP Power.

If it impacts on performance, let them know

But this will be problem of them, just let them know that if send this
session when it is already sent, the performance will get lower.

Just my 2 cents.

Best Regards,

Ernani


"Gareth Ardron" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 05:06 02/10/2002 -0300, you wrote:
>
> >Yes I know that you can't send headers to the browser when you've already
> >sent some other stuffs, but ASP users have strange feeling that this is
> >weird.
>
> php.ini : Output buffering = On
> what is wrong with this?
>
> >Can't we implement some procedure that checks if Cookies and session
> >commands were specified in the wrong way and automatically fix this for
the
> >ASP wrong programmers?
>
> the overhead on this would be *huge*. You're talking about parsing a
> script, editing it and then re-parsing it.
> The only way which this could be done without impacting on performance
> would be to enable it only when ASP style open/close tags were used, but
> even then, this'll have an effect on speed for some users.
>
> >This procedure should minimize most common problems to bring PHP as the
most
> >Strong server side scripting language used in the entire internet.
>
> I'm still failing to see what's bad/wrong about turning on output
buffering.
>
> >I am not a ASP fan, I had this problems while I was trying to bring more
> >people to PHP and quit to implement Microsoft ASP solutions.
>
> try doing image manipulation in asp, then you'll have a fairly solid
reason ;)
>



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




Re: [PHP-DEV] Sugestion: Most common errors....(Session Management)

2002-10-02 Thread Ernani Joppert Pontes Martins

That's right.

I did not RTFM.
I did not knew about this php.ini directive.
Like I've said, I was used to understand php procedure to handle sessions.

But some of ASP programmers was / is not...

Sorry to bring some lose of time.

[]'s

Ernani



"Dj Anubis" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Le Mercredi 2 Octobre 2002 10:06, Ernani Joppert Pontes Martins a écrit :

> Yes I know that you can't send headers to the browser when you've already
> sent some other stuffs, but ASP users have strange feeling that this is
> weird.

That's not a PHP problem, but deals with headers and page standardization.
ASP
users should deal with standards.

> Can't we implement some procedure that checks if Cookies and session
> commands were specified in the wrong way and automatically fix this for
the
> ASP wrong programmers?
>
> If we found some cookies and session parameters on the entire script, can
> php intend to send this values to the browser w/o send that warning
message
> ?

Sounds like you did not RTFM (Read This Fine Manual) in PHP docs. If you
want
those cookies and other header stuff be transparently manipulated, you can:
1) Enable output buffering in PHP.INI
2) Use direct output buffering functions as discussed in Output Control
Functions in PHP manual.

When using output buffering, the whole body is buffered and cached while
headers are set. This is the straight answer to your problem.
But, when you don't want to buffer the page, you have to deal by yourself
with
headers, as no buffering is sending right away whatever is printed to the
browser.

> This procedure should minimize most common problems to bring PHP as the
> most Strong server side scripting language used in the entire internet.
>
> I am not a ASP fan, I had this problems while I was trying to bring more
> people to PHP and quit to implement Microsoft ASP solutions.

As stated above, this procedure exists, and is there for quite some time
now.
Maybe the biggest problem is developpers not wanting RTFM and imagining PHP
should be ASP and have the same syntax, the same bugs and [add whatever you
want]. This is quite the wrong way of thinking, exactly as if you asked C to
be syntaxically equivalent to Basic.

DJ Anubis.





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




Re: [PHP-DEV] How to debug?

2002-10-12 Thread Ernani Joppert Pontes Martins

That was pretty weird, like those magics of David Blaine

But It was working before I made a change on it...
So then I decided to see what was wrong...

I found the error in a for loop, I was stripslashing the database strings...

That caused the php to segfault, so then I've commented it out and It worked
back again...that is weird because it was processing 10 rows of 5 cols...

HIH,

Ernani


"Yasuo Ohgaki" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ernani Joppert Pontes Martins wrote:
> > Thanks Yasuo...
> >
> > Does the cvs version is provided in rpm format too?
> >
>
> No. You need to build it from source. (There may be people
> creating RPM, but I just don't know)
>
> --
> Yasuo Ohgaki
>
> > []'s
> >
> > Ernani
> >
> > "Yasuo Ohgaki" <[EMAIL PROTECTED]> escreveu na mensagem
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>Generally speaking,
> >>we need _short_ & _complete_ script for this.
> >>
> >>However, try CVS version. We don't fix bugs other than
> >>CVS version now.
> >>
> >>--
> >>Yasuo Ohgaki
> >>
>



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




Re: [PHP-DEV] How to debug?

2002-10-12 Thread Ernani Joppert Pontes Martins

I was having a problem like this in one simple script
It generates segfault by executing from shell, from apache it don't stop
processing and locks up the machine, when it reaches the max_execution time,
then it breaks.

The gdb backtrace is here:
#0  0x403d6646 in chunk_free (ar_ptr=0x4048a300, p=0xc2bafd8) at
malloc.c:3242
#1  0x403d63f4 in __libc_free (mem=0xc2bafe0) at malloc.c:3154
#2  0x0812ab80 in shutdown_memory_manager ()
#3  0x0806de39 in php_request_shutdown ()
#4  0x0806caa3 in main ()
#5  0x40371657 in __libc_start_main (main=0x806bee0 , argc=2,
ubp_av=0xbfffdd64, init=0x80690c8 <_init>, fini=0x8171560 <_fini>,
rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbfffdd5c)
at ../sysdeps/generic/libc-start.c:129

What can I do about it ?

My php version is 4.1.2 at Redhat linux 7.1

TIA,

Ernani

"Markus Fischer" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Fri, Oct 11, 2002 at 03:22:21PM +0100, David Reid wrote :
> > Can I run the tests under gdb to try and see if I can get a better
> > backtrace? I'm still seeing the segafluts in the session tests...
>
> Does http://bugs.php.net/bugs-generating-backtrace.php help you?
>
> --
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
>  Derick, while ($xml) $ass->get_new_ideas();
> <[James]> Markus: IE on_user_fart()
> -- People doesn't seem to like the new XHTML2 specs :) --



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




Re: [PHP-DEV] How to debug?

2002-10-13 Thread Ernani Joppert Pontes Martins


Thanks Yasuo...

Does the cvs version is provided in rpm format too?

[]'s

Ernani

"Yasuo Ohgaki" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Generally speaking,
> we need _short_ & _complete_ script for this.
>
> However, try CVS version. We don't fix bugs other than
> CVS version now.
>
> --
> Yasuo Ohgaki
>
> Ernani Joppert Pontes Martins wrote:
> > I was having a problem like this in one simple script
> > It generates segfault by executing from shell, from apache it don't stop
> > processing and locks up the machine, when it reaches the max_execution
time,
> > then it breaks.
> >
> > The gdb backtrace is here:
> > #0  0x403d6646 in chunk_free (ar_ptr=0x4048a300, p=0xc2bafd8) at
> > malloc.c:3242
> > #1  0x403d63f4 in __libc_free (mem=0xc2bafe0) at malloc.c:3154
> > #2  0x0812ab80 in shutdown_memory_manager ()
> > #3  0x0806de39 in php_request_shutdown ()
> > #4  0x0806caa3 in main ()
> > #5  0x40371657 in __libc_start_main (main=0x806bee0 , argc=2,
> > ubp_av=0xbfffdd64, init=0x80690c8 <_init>, fini=0x8171560 <_fini>,
> > rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbfffdd5c)
> > at ../sysdeps/generic/libc-start.c:129
> >
> > What can I do about it ?
> >
> > My php version is 4.1.2 at Redhat linux 7.1
> >
> > TIA,
> >
> > Ernani
> >
> > "Markus Fischer" <[EMAIL PROTECTED]> escreveu na mensagem
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >>On Fri, Oct 11, 2002 at 03:22:21PM +0100, David Reid wrote :
> >>
> >>>Can I run the tests under gdb to try and see if I can get a better
> >>>backtrace? I'm still seeing the segafluts in the session tests...
> >>
> >>Does http://bugs.php.net/bugs-generating-backtrace.php help you?
> >>
> >>--
> >>GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> >> Derick, while ($xml) $ass->get_new_ideas();
> >><[James]> Markus: IE on_user_fart()
> >>-- People doesn't seem to like the new XHTML2 specs :) --
> >
> >
> >
>



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




[PHP-DEV] Re: uploads with php

2002-10-14 Thread Ernani Joppert Pontes Martins

Hi Ana Paula,

This list is only intended for php development... in another thread just
post to php-general list ok?

But I can help you about this question now.

Have you RTFineManual?

Take a look at POST_MAX_SIZE or UPLOAD_MAX_FILESIZE directive
of your php.ini file.

There you will be able to configure your php to work with upload stuff.

HTH,

Ernani Joppert Pontes Martins

and in anoth


"Ana Paula Sabelli" <[EMAIL PROTECTED]> escreveu na mensagem
002701c27096$d40e2fa0$010a@www2">news:002701c27096$d40e2fa0$010a@www2...
Hi,
I have Linux Redhat 6.2, Apache 1.3.26 and PHP 4.2.3, and I have problems
with
files upload. When I make an upload; the php,  upload the file to the
directory /var/tmp, but a little piece of it.
I have checked the php.in and I have all ok there.
I have posted this problem to many forums and lists, and nobody could tell
me nothing.
What happens with chunked encoding, does php supports it? How php manage a
file upload?

Please help me, I can´t resolve this problem.

TIA

Ana Paula




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




[PHP-DEV] Karma for php4 and bcompiler

2002-10-29 Thread Ernani Joppert Pontes Martins
Hi there, with not so much time to dedicate to php improvements and bug
fixes I want to have karma to help fix some bugs/improvements into php and
into bcompiler for win32 that is my speciallity.

I've already did a compile with windows but now I need to add some more
functionalities.

Alan Knowles already said to me to keep in touch.

Thanks,

Ernani



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




Re: [PHP-DEV] Karma for php4 and bcompiler

2002-10-29 Thread Ernani Joppert Pontes Martins
Ok Rasmus,

My cvs account in use is ernani

ernani_joppert is not in use anymore.

Thanks in Advance

"Rasmus Lerdorf" <[EMAIL PROTECTED]> escreveu na mensagem
news:Pine.LNX.4.44.021029080.4053-10@;www.lerdorf.com...
> I'll add the pear karma once I figure out which of his 2 cvs accounts he
> uses.
>
> On Wed, 30 Oct 2002, Alan Knowles wrote:
>
> > Ernani helped out with bcompiler - so karma on that is ok.
> >
> > I think for php4 you will have to send patches to php-dev for the time
> > being.  until they get used to you :)
> >
> > Regards
> > Alan
> >
> > Ernani Joppert Pontes Martins wrote:
> >
> > >Hi there, with not so much time to dedicate to php improvements and bug
> > >fixes I want to have karma to help fix some bugs/improvements into php
and
> > >into bcompiler for win32 that is my speciallity.
> > >
> > >I've already did a compile with windows but now I need to add some more
> > >functionalities.
> > >
> > >Alan Knowles already said to me to keep in touch.
> > >
> > >Thanks,
> > >
> > >Ernani
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> > 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] CVS Account Request: ernani_joppert

2002-03-21 Thread Ernani Joppert Pontes Martins

I want to help the translation of php manual to the portuguese language.

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