[PHP-INSTALL] Re: compilation/performance problem on solaris
Stefan Hortschitz wrote: > My hardware: sun-ultrasparc 1,2ghz dual with 8gb ram > If i run a simple php-script which builds an array of arrays i need ~3.3 > sec to execute [...] > to compare the speed: my notebook (p4 2.1 ghz/512mb ram/RedHat Linux 2.4 > executes the code in 1.7 seconds Umm, yes - your P4 has almost double the speed of the Sparc, so it's about twice as fast (the second CPU on your Sparc doesn't help anything here). I don't see any problem here. Regards... Michael
[PHP-INSTALL] Re: compilation/performance problem on solaris
Michael Mauch wrote: My hardware: sun-ultrasparc 1,2ghz dual with 8gb ram If i run a simple php-script which builds an array of arrays i need ~3.3 sec to execute [...] to compare the speed: my notebook (p4 2.1 ghz/512mb ram/RedHat Linux 2.4 executes the code in 1.7 seconds Umm, yes - your P4 has almost double the speed of the Sparc, so it's about twice as fast (the second CPU on your Sparc doesn't help anything here). I don't see any problem here. Regards... Michael Thats true, but the ultrasparc-cpu has 64 bit an 8mb cache, so i think it should work much faster than a normal notebook-cpu! Regards , stefan
[PHP-INSTALL] My problem: "Notice: Undefined variable: i in ....."
Hellow, My problem is that when i enter my web page there is written " Notice: Undefined variable: i in ." I have just installed WinXP Pro with IIS (sory for linux users...) and PHP 5.0b... If anyone have any ideas how to solve the problem please reply... PS I've tried register_globals = on but nothing changed... Pisek
[PHP-INSTALL] rpmbuild -bb php.spec fails on zend_language_scanner.c
Hey all, was just doing a rpmbuild of php 4.3.3 and came across this small error. Be advised that I changed the php.spec file to include the following: # Build standalone /usr/bin/php pushd build-cgi # build --enable-force-cgi-redirect build --enable-force-cgi-redirect --enable-posix --enable-pcntl NO_INTERACTION=1 REPORT_EXIT_STATUS=1 \ make test || true popd The commented out build parameter is expanded to include posix and pcntl. The error below should have something to do with the --enable-pcntl option I believe. Here is the error (only included the end of the build) after issueing rpmbuil -bb /usr/src/redhat/SPECS/php.spec: ## _ATOM_INC -I/usr/src/redhat/BUILD/php-4.3.3/build-cgi/include -I/usr/src/red hat/BUILD/php-4.3.3/build-cgi/main -I/usr/src/redhat/BUILD/php-4.3.3 -I/usr/ src/redhat/BUILD/php-4.3.3/build-cgi/Zend -I/usr/include/libxml2 -I/usr/lib/ include -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/include/mysql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-4.3. 3/main -I/usr/src/redhat/BUILD/php-4.3.3/Zend -I/usr/src/redhat/BUILD/php-4. 3.3/TSRM -I/usr/src/redhat/BUILD/php-4.3.3/build-cgi/TSRM -O2 -g -march=i3 86 -mcpu=i686 -fPIC -prefer-non-pic -c /usr/src/redhat/BUILD/php-4.3.3/main/user_streams.c -o main/user_streams.o /bin/sh /usr/src/redhat/BUILD/php-4.3.3/build-cgi/libtool --silent --preserve-dup-de ps --mode=compile gcc -IZend/ -I/usr/src/redhat/BUILD/php-4.3.3/Zend/ -DPHP_ATOM_INC -I/usr/s rc/redhat/BUILD/php-4.3.3/build-cgi/include -I/usr/src/redhat/BUILD/php-4.3. 3/build-cgi/main -I/usr/src/redhat/BUILD/php-4.3.3 -I/usr/src/redhat/BUILD/p hp-4.3.3/build-cgi/Zend -I/usr/include/libxml2 -I/usr/lib/include -I/usr/inc lude/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/include/my sql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-4.3.3/main -I/usr/src/ redhat/BUILD/php-4.3.3/Zend -I/usr/src/redhat/BUILD/php-4.3.3/TSRM -I/usr/s rc/redhat/BUILD/php-4.3.3/build-cgi/TSRM -O2 -g -march=i386 -mcpu=i686 -fPI C -prefer-non-pic -c Zend/zend_language_parser.c -o Zend/zend_language_parser.o : -Pzend -S/usr/src/redhat/BUILD/php-4.3.3/Zend/flex.skl -oZend/zend_languag e_scanner.c -i /usr/src/redhat/BUILD/php-4.3.3/Zend/zend_language_scanner.l /bin/sh /usr/src/redhat/BUILD/php-4.3.3/build-cgi/libtool --silent --preserve-dup-de ps --mode=compile gcc -IZend/ -I/usr/src/redhat/BUILD/php-4.3.3/Zend/ -DPHP_ATOM_INC -I/usr/s rc/redhat/BUILD/php-4.3.3/build-cgi/include -I/usr/src/redhat/BUILD/php-4.3. 3/build-cgi/main -I/usr/src/redhat/BUILD/php-4.3.3 -I/usr/src/redhat/BUILD/p hp-4.3.3/build-cgi/Zend -I/usr/include/libxml2 -I/usr/lib/include -I/usr/inc lude/freetype2 -I/usr/include/imap -I/usr/kerberos/include -I/usr/include/my sql -I/usr/include/pspell -I/usr/src/redhat/BUILD/php-4.3.3/main -I/usr/src/ redhat/BUILD/php-4.3.3/Zend -I/usr/src/redhat/BUILD/php-4.3.3/TSRM -I/usr/s rc/redhat/BUILD/php-4.3.3/build-cgi/TSRM -O2 -g -march=i386 -mcpu=i686 -fPI C -prefer-non-pic -c Zend/zend_language_scanner.c -o Zend/zend_language_scanner.o gcc: Zend/zend_language_scanner.c: No such file or directory gcc: no input files make: *** [Zend/zend_language_scanner.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.18193 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.18193 (%build) # Any help would be greatly appreciated.
[PHP-INSTALL] Re: My problem: "Notice: Undefined variable: i in ....."
Pisek wrote: > My problem is that when i enter my web page there is written " > Notice: Undefined variable: i in ." You can define all your variables (e.g. $i="") before you use them, or you can change the error_reporting setting in php.ini so that it doesn't report notices: error_reporting = E_ALL & ~E_NOTICE Also have a look at the display_errors and log_errors settings. Regards... Michael