php-general Digest 12 Jul 2010 03:24:52 -0000 Issue 6841
Topics (messages 306826 through 306828):
Re: Netbeans XDebug Breakpoints Socket Accept
306826 by: Daniel Kolbo
Static Class Member References
306827 by: Daniel Kolbo
Re: State and City Database
306828 by: viraj
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 ---
tedd wrote:
> At 7:04 PM -0400 7/10/10, Daniel Kolbo wrote:
>> Hello,
>>
>> I'm trying to use the debugging features of Netbeans for the first time.
>> The Netbeans debugger is not stopping at breakpoints. I searched the
>> net, I found out i wasn't the only one with such issues. However, after
>> going through the various posts, etc... i am still without a resolution.
>>
>
> Daniel:
>
> You might try posting your question to the NetBeans list, namely:
>
> List-Subscribe: <mailto:[email protected]?subject=subscribe%20users>
>
> They are pretty good at answering questions.
>
> Cheers,
>
> tedd
>
>
Tedd,
Thanks for the response.
For posterity (should anyone be going through the same headache i went
through), I'm replying with a link to the resolution.
The issue had to do with a netbean project setting. I posted the
resolution to the netbean's forum.
http://forums.netbeans.org/viewtopic.php?p=79554
Thanks,
dK
`
--- End Message ---
--- Begin Message ---
Hello PHPers,
I'm having some trouble understanding some PHP behaviour. The following
example script exhibits the behaviour which I cannot understand.
[code]
<?php
class A
{
public static $a = 3;
function __construct()
{
//self::$a = $this; //[i]
self::$a =& $this; //[ii]
}
}
class B extends A
{
function __construct()
{
parent::__construct();
}
}
class C {
var $c;
function __construct()
{
$this->c =& A::$a;
}
}
$c = new C;
$b = new B;
$cee = new C;
var_dump($c->c); // [i] prints object(B), but [ii] prints int 3
var_dump($cee->c); // [i] prints object(B), and [ii] prints object(B)
?>
[/code]
Why does $c->c print 'int 3' ?
I'm nervous to use "self::$a = $this;" because I don't want to be
copying the whole object. However, isn't $this just a reference to the
object, so "self::$a = $this;" is just copying the reference and not the
actual object, right?
Thanks in advance
`
--- End Message ---
--- Begin Message ---
On Fri, Jul 9, 2010 at 5:37 PM, Thijs Lensselink
<[email protected]> wrote:
> On 07/07/2010 10:02 PM, tedd wrote:
>>
>> Hi gang:
>>
>> Does anyone have a source for a US State and City database?
if some one need ip-location service.. try it here..
http://ceynet.asia/api/geo.php?ip=8.8.8.8
hope to open the geo api soon for free/public use.
~viraj
>>
>> Cheers,
>>
>> tedd
>>
>
> Hey Tedd,
>
> Maybe this helps. I used the data files for some other projects..
>
> http://earth-info.nga.mil/gns/html/
> http://geonames.usgs.gov/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---