php-general Digest 17 Jan 2010 01:42:04 -0000 Issue 6542
Topics (messages 301148 through 301154):
Re: Clean PHP 5.2.12 Build Core Dumping / Can't Build Port - FreeBSD 6.1
301148 by: Vasily Pupkin
Compiling PHP-GTK with PHP-5.3.1 with VC9
301149 by: Thomas Worm
Re: mysql_real_escape_string(0xffffffff) yields -1
301150 by: Nisse Engström
301151 by: LinuxManMikeC
301153 by: Shawn McKenzie
Re: Compiling PHP-GTK with PHP-5.3.1
301152 by: Thomas Worm
Shipping calculator
301154 by: Skip Evans
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 ---
add X11BASE=${LOCALBASE} as it is shown below:
#echo "X11BASE=${LOCALBASE}" >> /etc/make.conf
The problem is in recent changeset for ports/Mk/bsd.port.mk:
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/Mk/bsd.port.mk.diff?r1=1.630;r2=1.631;f=h)
..if ${X11BASE} != ${LOCALBASE}
..BEGIN:
@${ECHO_MSG} "X11BASE is now deprecated. Unset X11BASE in make.conf and try
again."
@${FALSE}
..endif
The guy commited the revision couldn't imagine that there is no X11BASE on
system defined at all while LOCALBASE is defined.
This bug should be fixed soon because a lot of people will stuck with it after
ports upgrade.
> =======================
> I try a 'make all-depend-list'
> the error shows up
> =============================
> which error show ?
# make
X11BASE is now deprecated. Unset X11BASE in make.conf and try again.
*** Error code 1
Stop.
That's the error... happens every time, no matter what I try to set/unset in
/etc/make.conf. I looked through the makefiles to see where X11BASE is
referenced and I can't find any place where it is to just kill it.
> > This is _exactly_ what I did, and as soon as I try a 'make all-
> depend-list'
> > the error shows up. I don't even have the X11 system installed (it's
> a
> > headless server, with no GUI).
> >
> > This is on a CLEAN 6.1 install, without any upgrades/patches, just
> straight
> > off the ISO install and after a portsnap install/extract.
> >
> > I tried building it _before_ I updated the ports and it would build a
> 5.1.2
> > php ok, but I need 5.2.12. Something has changed in the port between
> 5.1.2
> > and 5.2.12
> >
> >> 1.add
> >> WITHOUT_X11=yes
> >> in /etc/make.conf
> >> 2.remove
> >> X11BASE=""
> >> from that file and
> >>
> >> 4.make all-depend-list
> >> 5.make clean all depend soft
> >> 6.make menuconfig set X11 disable
> >> 7.make &&make install
> >>
> >>
> >> 2010/1/12 Don O'Neil <[email protected]>:
> >> > Ok.. just for grins I installed a new instance of 6.1, NO Patches,
> >> just
> >> > straight off the ISO...
> >> >
> >> > I loaded the ports that came WITH the distro, and was able to make
> >> php 5.1.2
> >> > ok...
> >> >
> >> > When I did a portsnap fetch, portsnap extract, then went into the
> >> > /usr/ports/lang/php5 and just typed make I get the same error...
> >> >
> >> > SO as it seems, the port is broken, at least for working with
> FreeBSD
> >> 6.1.
> >> >
> >> > Can anyone give me some hints on how to build this sucker by hand?
> >> Seems as
> >> > though there are a bunch of patches that are referenced in the
> >> distinfo
> >> > file.
> >> >
> >> > I REALLY need to get this taken care of asap, any help is
> >> appreciated.
> >> >
> >> > Thanks!
> >> >
> >> >> > > I tried adding WITHOUT_X11=yes to /etc/make.conf as well as
> >> >> X11BASE=
> >> >> > and
> >> >> > > X11BASE="", but I still get the same error.
> >> >> >
> >> >> > Remove them. This makes sure they are not defined, not even
> >> >> > empty (as in "#define BLA -> symbol 'BLA' is defined").
> >> >> >
> >> >> > > Where to go from here? Do I have and old version of something
> >> that
> >> >> is
> >> >> > > causing this? I get this error _right away_ before anything
> is
> >> even
> >> >> > built.
> >> >> >
> >> >> > It seems to be a check by the Makefile at port's top level.
> >> >>
> >> >> Ok... I have no definition for X11BASE anywhere, not in my env,
> not
> >> in
> >> >> my
> >> >> /etc/make.conf, nowhwere...
> >> >>
> >> >> However, it's still complaining about X11BASE being deprecated. I
> >> tried
> >> >> just
> >> >> adding WITHOUT_X11=yes in /etc/make, and without it. I even
> searched
> >> >> all the
> >> >> Makefiles in /usr/ports, and in the /usr/ports/lang/php5 dir to
> find
> >> >> any
> >> >> reference to X11, or X, or X11BASE, but nada... I don't even know
> >> where
> >> >> this
> >> >> error message is being generated from.
> >> >>
> >> >> I can't even do a basic make without it immediately spitting out
> the
> >> >> error:
> >> >>
> >> >> # make
> >> >> X11BASE is now deprecated. Unset X11BASE in make.conf and try
> >> again.
> >> >> *** Error code 1
> >> >>
> >> >> Stop.
--- End Message ---
--- Begin Message ---
Hello,
I tried to compile PHP-GTK 2.0.1 with PHP 5.3.1 on Windows.
The first errors I was able to fix. The patch file with my fixes you find as
an attachment to this mail.
But now I get following error and I don't know why. VC9 doesn't find the
SG-definition, but SAPI.h is included in php_gtk+.c. So what's going wrong
there?
###
C:\php-sdk\php53\vc9\x86\php-
gtk_build>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'GX' has been deprecated and will
be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
php_gtk+.c
c:\php-sdk\php53\vc9\x86\php-5.3.1\zend\zend_execute.h(231) : warning C4018:
'>' : signed/unsigned mismatch
ext\gtk+\php_gtk+.c(82) : warning C4013: 'SG' undefined; assuming extern
returning int
ext\gtk+\php_gtk+.c(82) : error C2065: 'request_info' : undeclared
identifier
ext\gtk+\php_gtk+.c(82) : error C2224: left of '.path_translated' must have
struct/union type
ext\gtk+\php_gtk+.c(83) : error C2065: 'request_info' : undeclared
identifier
ext\gtk+\php_gtk+.c(83) : error C2224: left of '.path_translated' must have
struct/union type
ext\gtk+\php_gtk+.c(83) : error C2198: 'g_strdup' : too few arguments for
call
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin
\cl.EXE"' : return code '0x2'
Stop.
C:\php-sdk\php53\vc9\x86\php-gtk_build>
###
Do you have a hint what I can do?
Thanks and best regards,
Thomas
--
Mit freundlichen Grüßen,
Thomas Worm
******************************
Thomas Worm
Handel & Dienstleistung
Postfach 2207
D-90009 Nürnberg
Hausanschrift:
Hintere Cramergasse 3
D-90478 Nürnberg
******************************
Telefon: +49 1803 030505000
Telefax: +49 1803 030505050
Allgemeiner Kontakt:
[email protected]
Buchhaltung:
[email protected]
******************************
Geschäftsführer: Thomas Worm
[email protected]
Kontoverbindung:
Inhaber: Thomas Worm H. u. D.
Kontonummer: 38 56 38
Bankleitzahl: 760 606 18
Kreditinstitut: Volksbank-Raiffeisenbank Nürnberg eG
Steuernummer: 240-290-21429
USt-ID: DE250745940
ISBN-Verlagsnummer: 3-86749
******************************
--- End Message ---
--- Begin Message ---
On Fri, 15 Jan 2010 16:22:46 -0600 (CST), "Richard Lynch" wrote:
> The subject line says it all:
>
> mysql_real_escape_string(0xffffffff) yields -1
Says nothing. Are you really asking PHP to convert an
integer literal to string before passing it to m_r_e_s?
That could easily explain the "-1", and I wouldn't be
the least bit surprised if the behaviour varies across
different versions of PHP.
> What's up with that?
>
> Is there some way to convince mysql_real_escape_string to use BIGINT?
>
> I guess I'll just PCRE for digits and then pass it in and...
>
> But what if somebody passes in some BC Math number?...
I think you are confused. mysql_real_escape_string() works
on strings and doesn't care how many 'f' there are or what
a BIGINT is. You're most likely passing "-1" to m_r_e_s.
/Nisse
--- End Message ---
--- Begin Message ---
On Fri, Jan 15, 2010 at 3:22 PM, Richard Lynch <[email protected]> wrote:
> The subject line says it all:
>
> mysql_real_escape_string(0xffffffff) yields -1
>
> What's up with that?
>
> Is there some way to convince mysql_real_escape_string to use BIGINT?
>
> I guess I'll just PCRE for digits and then pass it in and...
>
> But what if somebody passes in some BC Math number?...
>
Try passing it as a string literal, NOT a hexadecimal numeric literal.
mysql_real_escape_string('0xffffffff');
In case you haven't noticed, SQL statements are stored in strings.
--- End Message ---
--- Begin Message ---
LinuxManMikeC wrote:
> On Fri, Jan 15, 2010 at 3:22 PM, Richard Lynch <[email protected]> wrote:
>> The subject line says it all:
>>
>> mysql_real_escape_string(0xffffffff) yields -1
>>
>> What's up with that?
>>
>> Is there some way to convince mysql_real_escape_string to use BIGINT?
>>
>> I guess I'll just PCRE for digits and then pass it in and...
>>
>> But what if somebody passes in some BC Math number?...
>>
>
> Try passing it as a string literal, NOT a hexadecimal numeric literal.
>
> mysql_real_escape_string('0xffffffff');
>
> In case you haven't noticed, SQL statements are stored in strings.
And mysql_real_escape_string() expects a string as an argument.
--
Thanks!
-Shawn
http://www.spidean.com
--- End Message ---
--- Begin Message ---
Hello,
problem is solved. After some fixing of configure.js for MS VS.NET 2008 and
fixing confutils.js it works. Thankts to Elizabeth M Smith for the help!
My fixes have been postet to the php-gtk-dev mailinglist for beeing
published in svn.
Best Regards,
Thomas
--
Mit freundlichen Grüßen,
Thomas Worm
******************************
Thomas Worm
Handel & Dienstleistung
Postfach 2207
D-90009 Nürnberg
Hausanschrift:
Hintere Cramergasse 3
D-90478 Nürnberg
******************************
Telefon: +49 1803 030505000
Telefax: +49 1803 030505050
Allgemeiner Kontakt:
[email protected]
Buchhaltung:
[email protected]
******************************
Geschäftsführer: Thomas Worm
[email protected]
Kontoverbindung:
Inhaber: Thomas Worm H. u. D.
Kontonummer: 38 56 38
Bankleitzahl: 760 606 18
Kreditinstitut: Volksbank-Raiffeisenbank Nürnberg eG
Steuernummer: 240-290-21429
USt-ID: DE250745940
ISBN-Verlagsnummer: 3-86749
******************************
--- End Message ---
--- Begin Message ---
Hey all,
I've written a few shopping carts, but not one that calculated
shipping charges. So I did a bit of Googling and found
SONICODE that looks pretty good here.
http://www.sonicode.com/php_shipping_rates_calculator.php
It's a PHP library that handles the calls to the carries USPS,
UPS and FedEx and then returns the shipping charges back to
you. It's only 50 bucks and I figure for saving time writing
the XML code, etc, this might be a good route for me to go.
It's a pretty big app so this is a small investment. Also
comes with full source.
I'm wondering if anyone has used this one, or others and can
toss out some opinions and thoughts to someone who hasn't done
this before.
Thanks,
Skip
--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--- End Message ---