php-general Digest 10 Sep 2010 01:33:21 -0000 Issue 6932

2010-09-09 Thread php-general-digest-help

php-general Digest 10 Sep 2010 01:33:21 - Issue 6932

Topics (messages 307902 through 307911):

Show text without converting to html
307902 by: Jack
307903 by: Marc Guay
307904 by: Andrew Ballard
307905 by: Richard Quadling
307906 by: Jack
307907 by: Jack
307909 by: Andrew Ballard
307910 by: Tommy Pham

Re: Filestat.c erorrs when building php-5.3.3 on solaris
307908 by: STANFIELD, VICKI CTR DFAS

Zend framework
307911 by: chris h

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
Hello All,


I have some code which converts to some html to ascii characters.  This
basically obfuscates the html code, but shows it correctly on an page.


I am trying to show the results of the obfuscation ( works correctly because
it displays the html value ), but I want to then show the obfuscated html
code so they can copy it.

An example is I want to show them this below:

a
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
0115;#115;?subject=cc=bcc=body= style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a

 

Which was created by the code, but I apparently can't seem to echo it and
get it to display like above.. It converts it to html no matter what I do.

 

 

Thanks!

Jack

 


---End Message---
---BeginMessage---
 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.

Have you tried the pre HTML tag? (http://www.w3schools.com/TAGS/tag_pre.asp)

Putting inside a textarea might also work for you...


-- 
Marc Guay
MobilizeMe
mobilizeme.com
---End Message---
---BeginMessage---
On Thu, Sep 9, 2010 at 9:52 AM, Jack jacklistm...@gmail.com wrote:

 Hello All,


 I have some code which converts to some html to ascii characters.  This
 basically obfuscates the html code, but shows it correctly on an page.


 I am trying to show the results of the obfuscation ( works correctly because
 it displays the html value ), but I want to then show the obfuscated html
 code so they can copy it.

 An example is I want to show them this below:

 a
 href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
 0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
 0115;#115;?subject=cc=bcc=body= style= class=
 id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
 46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a



 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.


This should do it:

?php

$var = 'a 
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a';


echo  htmlspecialchars($var);

?

The obfuscation doesn't buy you much, though.

?php

var_dump(html_entity_decode($var, ENT_QUOTES, 'utf-8'));

?
string(106) a
href=mailto:y...@email.address?subject=cc=bcc=body=; style=
class= id=y...@email.address/a

The only people for whom the value will be obscure will be the humans
who actually try to read the HTML source code itself. Neither web
browsers nor harvesting scripts won't have any trouble reading it.

Andrew
---End Message---
---BeginMessage---
On 9 September 2010 14:52, Jack jacklistm...@gmail.com wrote:
 Hello All,
 I have some code which converts to some html to ascii characters.  This
 basically obfuscates the html code, but shows it correctly on an page.
 I am trying to show the results of the obfuscation ( works correctly because
 it displays the html value ), but I want to then show the obfuscated html
 code so they can copy it.
 An example is I want to show them this below:
 a
 href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
 0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
 0115;#115;?subject=cc=bcc=body= style= class=
 id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
 46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a
 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.
 Thanks!
 Jack

htmlentities() is your friend here.

?php
$text = 'a 
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=

RE: [PHP] Broken pipes, time outs, PHP, and mail

2010-09-09 Thread Bob McConnell
From: Dave M G

 There is one other possibility. According to the RFCs, the standard
line
 ending for email is CRLF. Make sure your system is sending both
 characters after each line. There is a slim chance the server is
cutting
 you off after some number of bytes if you are only sending a LF.
 
 This is actually a possiblity. I think I might be only using LF.
 
 Some of the text being sent in the emails is entered via a form on a
web 
 page. Is it possible to enforce CRLF on that text?

You would have to scan the text when you process the form and replace
any bare LF you find with CRLF. The string sequence for that would be
\r\n. It shouldn't be too difficult to come up with a regular
expression to find any LF not preceded by a CR and replace it.

Also, check your mail library to make sure it defines $EOL correctly as
well. I reported that as a bug in PHPMailer a while back. If it is
correct, it may actually fix the bare LF's for you.

Bob McConnell

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



[PHP] Show text without converting to html

2010-09-09 Thread Jack
Hello All,


I have some code which converts to some html to ascii characters.  This
basically obfuscates the html code, but shows it correctly on an page.


I am trying to show the results of the obfuscation ( works correctly because
it displays the html value ), but I want to then show the obfuscated html
code so they can copy it.

An example is I want to show them this below:

a
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
0115;#115;?subject=cc=bcc=body= style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a

 

Which was created by the code, but I apparently can't seem to echo it and
get it to display like above.. It converts it to html no matter what I do.

 

 

Thanks!

Jack

 



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



Re: [PHP] Show text without converting to html

2010-09-09 Thread Marc Guay
 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.

Have you tried the pre HTML tag? (http://www.w3schools.com/TAGS/tag_pre.asp)

Putting inside a textarea might also work for you...


-- 
Marc Guay
MobilizeMe
mobilizeme.com

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



Re: [PHP] Show text without converting to html

2010-09-09 Thread Andrew Ballard
On Thu, Sep 9, 2010 at 9:52 AM, Jack jacklistm...@gmail.com wrote:

 Hello All,


 I have some code which converts to some html to ascii characters.  This
 basically obfuscates the html code, but shows it correctly on an page.


 I am trying to show the results of the obfuscation ( works correctly because
 it displays the html value ), but I want to then show the obfuscated html
 code so they can copy it.

 An example is I want to show them this below:

 a
 href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
 0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
 0115;#115;?subject=cc=bcc=body= style= class=
 id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
 46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a



 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.


This should do it:

?php

$var = 'a 
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a';


echo  htmlspecialchars($var);

?

The obfuscation doesn't buy you much, though.

?php

var_dump(html_entity_decode($var, ENT_QUOTES, 'utf-8'));

?
string(106) a
href=mailto:y...@email.address?subject=cc=bcc=body=; style=
class= id=y...@email.address/a

The only people for whom the value will be obscure will be the humans
who actually try to read the HTML source code itself. Neither web
browsers nor harvesting scripts won't have any trouble reading it.

Andrew

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



Re: [PHP] Show text without converting to html

2010-09-09 Thread Richard Quadling
On 9 September 2010 14:52, Jack jacklistm...@gmail.com wrote:
 Hello All,
 I have some code which converts to some html to ascii characters.  This
 basically obfuscates the html code, but shows it correctly on an page.
 I am trying to show the results of the obfuscation ( works correctly because
 it displays the html value ), but I want to then show the obfuscated html
 code so they can copy it.
 An example is I want to show them this below:
 a
 href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x4
 0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#00
 0115;#115;?subject=cc=bcc=body= style= class=
 id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#000
 46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a
 Which was created by the code, but I apparently can't seem to echo it and
 get it to display like above.. It converts it to html no matter what I do.
 Thanks!
 Jack

htmlentities() is your friend here.

?php
$text = 'a 
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a';
echo $text, htmlentities($text);
?

outputs ...

y...@email.addressa
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a
-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

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



RE: [PHP] Show text without converting to html

2010-09-09 Thread Jack
-Original Message-
From: Andrew Ballard [mailto:aball...@gmail.com] 


The only people for whom the value will be obscure will be the humans who 
actually try to read the HTML source code itself. Neither web browsers nor 
harvesting scripts won't have any trouble reading it.

Andrew


Andrew,

One other note, if the link doesn't say mailto: a harvester will have to decode 
the entire page in order to find the mailto, do you think that’s happening.  
This could be one of those things where you help against a percentage of 
harvesters, and not others.

J


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



RE: [PHP] Show text without converting to html

2010-09-09 Thread Jack
-Original Message-
From: Andrew Ballard [mailto:aball...@gmail.com] 
Sent: Thursday, September 09, 2010 10:13 AM
To: Jack
Cc: PHP
Subject: Re: [PHP] Show text without converting to html

On Thu, Sep 9, 2010 at 9:52 AM, Jack jacklistm...@gmail.com wrote:

 Hello All,


 I have some code which converts to some html to ascii characters.  
 This basically obfuscates the html code, but shows it correctly on an page.


 I am trying to show the results of the obfuscation ( works correctly 
 because it displays the html value ), but I want to then show the 
 obfuscated html code so they can copy it.

 An example is I want to show them this below:

 a
 href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#11
 4;#x4
 0;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#00010
 1;#00 0115;#115;?subject=cc=bcc=body= style= class=
 id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c
 ;#000 46;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a



 Which was created by the code, but I apparently can't seem to echo it 
 and get it to display like above.. It converts it to html no matter what I do.


This should do it:

?php

$var = 'a 
href=#x6d;#x61;#x69;#108;#x74;#111;#x3a;#x79;#x6f;#117;#114;#x40;#101;#x6d;#00097;#x69;#x6c;#x2e;#97;#x64;#x64;#x72;#000101;#000115;#115;?subject=cc=bcc=body=
style= class=
id=#x79;#000111;#x75;#000114;#x40;#x65;#x6d;#97;#105;#x6c;#00046;#x61;#x64;#x64;#000114;#x65;#000115;#x73;/a';


echo  htmlspecialchars($var);

?

The obfuscation doesn't buy you much, though.

?php

var_dump(html_entity_decode($var, ENT_QUOTES, 'utf-8'));

?
string(106) a
href=mailto:y...@email.address?subject=cc=bcc=body=; style=
class= id=y...@email.address/a

The only people for whom the value will be obscure will be the humans who 
actually try to read the HTML source code itself. Neither web browsers nor 
harvesting scripts won't have any trouble reading it.

Andrew


Hi Andrew,

I thought this was suppose to help against many of the havesting scripts?


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



RE: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-09 Thread STANFIELD, VICKI CTR DFAS
Ok, I tried removing the --disable-posix and adding --with-tsrm-pthreads
to the configure options. 
The resulting configure looks like this:

CC='/usr/local/bin/gcc' \
'./configure' \
'--prefix=/app/php533' \
'--enable-shared' \
'--with-tsrm-pthreads' \
'--with-gnu-ld' \
'--with-apxs2=/app/apache2216/bin/apxs' \
'--with-zlib' \
'--with-zlib-dir=/usr/lib' \
'--with-png-dir=/usr/include/libpng' \
'--with-openssl=/shared_ro/openssl_098' \
'--with-oci8=/shared_ro/users.oracle/11.1.0'

Now I get this:

/users/0/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getgrnam':
/users/0/php-5.3.3/ext/posix/posix.c:1017: error: too many arguments
to function `getgrnam_r'
/users/0/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getgrgid':
/users/0/php-5.3.3/ext/posix/posix.c:1067: error: too many arguments
to function `getgrgid_r'
/users/0/php-5.3.3/ext/posix/posix.c:1067: warning: assignment makes
integer from pointer without a cast
/users/0/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getpwnam':
/users/0/php-5.3.3/ext/posix/posix.c:1136: error: too many arguments
to function `getpwnam_r'
/users/0/php-5.3.3/ext/posix/posix.c: In function
`zif_posix_getpwuid':
/users/0/php-5.3.3/ext/posix/posix.c:1184: error: too many arguments
to function `getpwuid_r'
/users/0/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes
integer from pointer without a cast
gmake: *** [ext/posix/posix.lo] Error 1

Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or
configure.in somewhere? Can you point me in the right direction?

  -Vicki Stanfield, RHCE, CISSP

-Original Message-
From: Tom Rogers [mailto:trog...@kwikin.com] 
Sent: Wednesday, September 08, 2010 10:06 PM
To: Tom Rogers
Cc: php-general@lists.php.net
Subject: Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

Hi,

Thursday, September 9, 2010, 11:31:06 AM, you wrote:
TR Hi,

TR Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD I am trying to build php-5.3.3 and getting the following error: 

SVCD /users/0/php-5.3.3/TSRM -I/users/0/php-5.3.3/Zend
SVCD -I/usr/local/include -g -O2 -DZTS   -c
SVCD /users/0/php-5.3.3/ext/standard/filestat.c -o
SVCD ext/standard/filestat.lo 
SVCD /users/0/php-5.3.3/ext/standard/filestat.c: In function
SVCD `php_do_chgrp':
SVCD /users/0/php-5.3.3/ext/standard/filestat.c:416: error: too
many
SVCD arguments to function `getgrnam_r'
SVCD /users/0/php-5.3.3/ext/standard/filestat.c: In function
SVCD `php_do_chown':
SVCD /users/0/php-5.3.3/ext/standard/filestat.c:517: error: too
many
SVCD arguments to function `getpwnam_r'
SVCD make: *** [ext/standard/filestat.lo] Error 1

SVCD I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD And used the following configure command:

SVCD ./configure --prefix=/app/php533
--with-apxs2=/app/apache2215/bin/apxs
SVCD --with-zlib --with-zlib-dir=/usr/lib
SVCD --with-png-dir=/usr/include/libpng
SVCD --with-openssl=/shared_ro/openssl_098
SVCD --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD I am using gmake 3.80. Can anyone give me a hint as to what I am
doing
SVCD wrong in this build?

SVCD   -Vicki Stanfield, RHCE, CISSP


TR From   the   error  message  it  would  seem  the  operating
system's
TR getpwnam_r() function is not POSIX compatible.
TR What system are you compiling on?

TR -- 
TR regards,
TR Tom



It  would  seem  you  need to add -D_POSIX_PTHREAD_SEMANTICS to the cc
flags to get the right function.

-- 
regards,
Tom


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



Re: [PHP] Show text without converting to html

2010-09-09 Thread Andrew Ballard
On Thu, Sep 9, 2010 at 11:39 AM, Jack jacklistm...@gmail.com wrote:
 -Original Message-
 From: Andrew Ballard [mailto:aball...@gmail.com]


 The only people for whom the value will be obscure will be the humans who 
 actually try to read the HTML source code itself. Neither web browsers nor 
 harvesting scripts won't have any trouble reading it.

 Andrew


 Andrew,

 One other note, if the link doesn't say mailto: a harvester will have to 
 decode the entire page in order to find the mailto, do you think that’s 
 happening.  This could be one of those things where you help against a 
 percentage of harvesters, and not others.

 J

It will protect against a (possibly large?) percentage of those that
are looking for the lowest hanging fruit. I have a few reasons that
feed my doubts about its effectiveness:

- The most common answer you find when you search for e-mail
obfuscation is something similar to what you've shown, whether it uses
HTML character entities, numeric entities, or a combination of the
two.

- The overhead to convert frankly isn't that high. I realize that in
the case of a harvester you are multiplying that overhead by the sheer
volume of content being processed, but given the speed of processors I
don't think that matters much anymore.

- There are simple ways to minimize the overhead. For example, a
script does not have to decode an entire page; it only has to look for
anchor tags and decode the contents of the href attribute of each tag
found.


Combine these and I don't think this obfuscation technique adds enough
cost to be much of a barrier. Of course, this is just my opinion.
Those who write harvesters might be lazier than I give them credit.


Andrew

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



RE: [PHP] Show text without converting to html

2010-09-09 Thread Tommy Pham
 -Original Message-
 From: Andrew Ballard [mailto:aball...@gmail.com]
 Sent: Thursday, September 09, 2010 11:22 AM
 To: Jack
 Cc: PHP
 Subject: Re: [PHP] Show text without converting to html
 

snip /

 
 It will protect against a (possibly large?) percentage of those that are
 looking for the lowest hanging fruit. I have a few reasons that feed my
 doubts about its effectiveness:
 
 - The most common answer you find when you search for e-mail
 obfuscation is something similar to what you've shown, whether it uses
 HTML character entities, numeric entities, or a combination of the two.
 
 - The overhead to convert frankly isn't that high. I realize that in the case 
 of
 a harvester you are multiplying that overhead by the sheer volume of
 content being processed, but given the speed of processors I don't think
 that matters much anymore.
 
 - There are simple ways to minimize the overhead. For example, a script
 does not have to decode an entire page; it only has to look for anchor tags
 and decode the contents of the href attribute of each tag found.
 
 
 Combine these and I don't think this obfuscation technique adds enough
 cost to be much of a barrier. Of course, this is just my opinion.
 Those who write harvesters might be lazier than I give them credit.
 
 
 Andrew
 

I think it all depends on the value of the crop(s) to be harvested..  ;)

As for performance, even the speed of the processors are much faster today 
than before, it will affect performance depending on # of hits.  In addition, 
the bandwidth consumption will increase considerably on a heavy traffic site 
with all the extra characters for obfuscation, especially if you're on a capped 
hosting service.  If you have something you want to safeguard, IMO, use 
authentication.  Or you could try to create a monitoring mechanism to detect 
any unwanted behavior and deny the request(s).

Regards,
Tommy


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



[PHP] Zend framework

2010-09-09 Thread chris h
Hello all,

I'm starting a new project and I'm thinking about building it on Zend
framework and possibly Zend server.  I've only used the framework slightly
and I've never really used Zend server.  That being said I hear that the
framework is pretty decent to work with.  I want something that is strict
and uses OOP  MVC well, and I hear it does; though I also have the
impression that it's slow and bloated...

Anyways, I was curious if any of you have some general advice / good things
/ horror stories on the Zend framework?


Thanks,
Chris.


Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-09 Thread Tom Rogers
Hi,

Friday, September 10, 2010, 2:49:36 AM, you wrote:
SVCD Ok, I tried removing the --disable-posix and adding --with-tsrm-pthreads
SVCD to the configure options. 
SVCD The resulting configure looks like this:

SVCD CC='/usr/local/bin/gcc' \
SVCD './configure' \
SVCD '--prefix=/app/php533' \
SVCD '--enable-shared' \
SVCD '--with-tsrm-pthreads' \
SVCD '--with-gnu-ld' \
SVCD '--with-apxs2=/app/apache2216/bin/apxs' \
SVCD '--with-zlib' \
SVCD '--with-zlib-dir=/usr/lib' \
SVCD '--with-png-dir=/usr/include/libpng' \
SVCD '--with-openssl=/shared_ro/openssl_098' \
SVCD '--with-oci8=/shared_ro/users.oracle/11.1.0'

SVCD Now I get this:

SVCD /users/0/php-5.3.3/ext/posix/posix.c: In function
SVCD `zif_posix_getgrnam':
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1017: error: too many arguments
SVCD to function `getgrnam_r'
SVCD /users/0/php-5.3.3/ext/posix/posix.c: In function
SVCD `zif_posix_getgrgid':
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1067: error: too many arguments
SVCD to function `getgrgid_r'
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1067: warning: assignment makes
SVCD integer from pointer without a cast
SVCD /users/0/php-5.3.3/ext/posix/posix.c: In function
SVCD `zif_posix_getpwnam':
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1136: error: too many arguments
SVCD to function `getpwnam_r'
SVCD /users/0/php-5.3.3/ext/posix/posix.c: In function
SVCD `zif_posix_getpwuid':
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1184: error: too many arguments
SVCD to function `getpwuid_r'
SVCD /users/0/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes
SVCD integer from pointer without a cast
SVCD gmake: *** [ext/posix/posix.lo] Error 1

SVCD Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or
SVCD configure.in somewhere? Can you point me in the right direction?

SVCD   -Vicki Stanfield, RHCE, CISSP

SVCD -Original Message-
SVCD From: Tom Rogers [mailto:trog...@kwikin.com] 
SVCD Sent: Wednesday, September 08, 2010 10:06 PM
SVCD To: Tom Rogers
SVCD Cc: php-general@lists.php.net
SVCD Subject: Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

SVCD Hi,

SVCD Thursday, September 9, 2010, 11:31:06 AM, you wrote:
TR Hi,

TR Thursday, September 9, 2010, 2:07:50 AM, you wrote:
SVCD I am trying to build php-5.3.3 and getting the following error: 

SVCD /users/0/php-5.3.3/TSRM -I/users/0/php-5.3.3/Zend
SVCD -I/usr/local/include -g -O2 -DZTS   -c
SVCD /users/0/php-5.3.3/ext/standard/filestat.c -o
SVCD ext/standard/filestat.lo 
SVCD /users/0/php-5.3.3/ext/standard/filestat.c: In function
SVCD `php_do_chgrp':
SVCD /users/0/php-5.3.3/ext/standard/filestat.c:416: error: too
SVCD many
SVCD arguments to function `getgrnam_r'
SVCD /users/0/php-5.3.3/ext/standard/filestat.c: In function
SVCD `php_do_chown':
SVCD /users/0/php-5.3.3/ext/standard/filestat.c:517: error: too
SVCD many
SVCD arguments to function `getpwnam_r'
SVCD make: *** [ext/standard/filestat.lo] Error 1

SVCD I have set my ORACLE_HOME, my PATH, and my LD_LIBRARY_PATH
SVCD And used the following configure command:

SVCD ./configure --prefix=/app/php533
SVCD --with-apxs2=/app/apache2215/bin/apxs
SVCD --with-zlib --with-zlib-dir=/usr/lib
SVCD --with-png-dir=/usr/include/libpng
SVCD --with-openssl=/shared_ro/openssl_098
SVCD --with-oci8=/shared_ro/users.oracle/11.1.0

SVCD I am using gmake 3.80. Can anyone give me a hint as to what I am
SVCD doing
SVCD wrong in this build?

SVCD   -Vicki Stanfield, RHCE, CISSP


TR From   the   error  message  it  would  seem  the  operating
SVCD system's
TR getpwnam_r() function is not POSIX compatible.
TR What system are you compiling on?

TR -- 
TR regards,
TR Tom



SVCD It  would  seem  you  need to add -D_POSIX_PTHREAD_SEMANTICS to the cc
SVCD flags to get the right function.

SVCD -- 
SVCD regards,
SVCD Tom



That  should  get  added  automatically  when  you run configure if it
recognizes that the system is solaris.

Try adding --host=solaris to configure and see if that helps

-- 
regards,
Tom


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



Re: [PHP] Zend framework

2010-09-09 Thread Joshua Kehn
Chris-

While I find Zend to be more of a wonderful set of libraries then a framework, 
it does do both and is a good introduction.

I do most of my framework coding on CodeIgniter though.

Regards,

-JOsh

Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com

On Sep 9, 2010, at 9:33 PM, chris h wrote:

 Hello all,
 
 I'm starting a new project and I'm thinking about building it on Zend
 framework and possibly Zend server.  I've only used the framework slightly
 and I've never really used Zend server.  That being said I hear that the
 framework is pretty decent to work with.  I want something that is strict
 and uses OOP  MVC well, and I hear it does; though I also have the
 impression that it's slow and bloated...
 
 Anyways, I was curious if any of you have some general advice / good things
 / horror stories on the Zend framework?
 
 
 Thanks,
 Chris.


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