php-general Digest 10 Sep 2010 15:22:37 -0000 Issue 6933
Topics (messages 307912 through 307919):
Re: Filestat.c erorrs when building php-5.3.3 on solaris
307912 by: Tom Rogers
Re: Zend framework
307913 by: Joshua Kehn
307914 by: Carlos Medina
307915 by: Richard Quadling
Handling multiple form fields
307916 by: Abah Joseph
307917 by: [email protected]
307918 by: Al
Re: logical AND assignments
307919 by: Robert E. Glaser
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
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/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getgrnam':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1017: error: too many arguments
SVCD> to function `getgrnam_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getgrgid':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1067: error: too many arguments
SVCD> to function `getgrgid_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1067: warning: assignment makes
SVCD> integer from pointer without a cast
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getpwnam':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1136: error: too many arguments
SVCD> to function `getpwnam_r'
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c: In function
SVCD> `zif_posix_getpwuid':
SVCD> /users/03333/php-5.3.3/ext/posix/posix.c:1184: error: too many arguments
SVCD> to function `getpwuid_r'
SVCD> /users/03333/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:[email protected]]
SVCD> Sent: Wednesday, September 08, 2010 10:06 PM
SVCD> To: Tom Rogers
SVCD> Cc: [email protected]
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/03333/php-5.3.3/TSRM -I/users/03333/php-5.3.3/Zend
SVCD>>> -I/usr/local/include -g -O2 -DZTS -c
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c -o
SVCD>>> ext/standard/filestat.lo
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>>> `php_do_chgrp':
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c:416: error: too
SVCD> many
SVCD>>> arguments to function `getgrnam_r'
SVCD>>> /users/03333/php-5.3.3/ext/standard/filestat.c: In function
SVCD>>> `php_do_chown':
SVCD>>> /users/03333/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
--- End Message ---
--- Begin Message ---
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 | [email protected]
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.
--- End Message ---
--- Begin Message ---
Am 10.09.2010 03:33, schrieb 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.
Hallo Chris,
i thing the best Framework on the Market now is the Zend Framework. I
use others (like my own) for programming Software that need own license
but the Zend Framework is really good to build Applications fast and
easy. The Zend Server is a better Xampp with other tools, but when i
work with Zend Framework, i like to compile all needed Servers and PHP
by myself.
Regards
Carlos
--- End Message ---
--- Begin Message ---
On 10 September 2010 02:33, chris h <[email protected]> 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.
>
I use part of ZF (Zend's autoloader, SOAP and AutoDiscovering of
WSDL). Whilst I have to install all the framework, I'm not tied to
using all of it. I don't, for example, use the MVC.
Being able to truly mix and match the classes I want is of great
benefit to me. I can slowly learn the code I need to use rather than
jumping in at the deep end and struggle trying to do everything.
Regards,
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
Please i want to seek your opinion on how to handle large form
fields, i have a table that contain 30 fields and i`m wondering if
there is a better way to automatically create the html form and
validate it.
--- End Message ---
--- Begin Message ---
How are you deciding what form fields are being put in the form?
There are plenty of scripts out there which can output and validate forms, but
you might need to be a bit specific about what you want.
Thanks,
Ash
http://www.ashleysheridan.co.uk
----- Reply message -----
From: "Abah Joseph" <[email protected]>
Date: Fri, Sep 10, 2010 11:55
Subject: [PHP] Handling multiple form fields
To: <[email protected]>
Please i want to seek your opinion on how to handle large form
fields, i have a table that contain 30 fields and i`m wondering if
there is a better way to automatically create the html form and
validate it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On 9/10/2010 6:55 AM, Abah Joseph wrote:
Please i want to seek your opinion on how to handle large form
fields, i have a table that contain 30 fields and i`m wondering if
there is a better way to automatically create the html form and
validate it.
By asking such a basic question, it sounds like you are a newbie.
I suggest http://pear.php.net/package/HTML_QuickForm2 would be your best
approach.
--- End Message ---
--- Begin Message ---
> Robert, how do the results differ from your expectations?
>
> David
It's hard to wrap my mind around the concept that the assignment
operator itself has an operator precedence. Which means that one could
write expressions without any assignment at all, and be syntactically
correct.
I cannot believe that the later release of php brought this out, it must
have always been there. In my case it was evidenced by the subsequent
open a nonexistent file instruction which provided a warning message;
that warning must somehow have been inhibited in the earlier php
installation, so I never knew about my incorrect "and" usage. It's a
shared database program which has been operational for five years with
no detected bugs. I actually feel better believing that the newer php
version probably had no effect whatsoever on my code, just a warning
message -- so the code itself is most likely just as solid (or not) as
it ever was.
I do tend to overuse parentheses in my code just for clarity, I slipped
and left them out for the so simple statement A = B and C. Live and learn!
Thanks,
---Robert
--- End Message ---