Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a PROPERTY to class will lead to display "Segmentation fault (core dumped)" ? #160

Open
pbiggar opened this issue Jun 3, 2015 · 2 comments

Comments

@pbiggar
Copy link
Owner

pbiggar commented Jun 3, 2015

1.phc --extension=helloworld --generate-c helloworld.php > ext/helloworld.c
2.phpize --with-php-config=/usr/local/bin/php-config
3../configure --enable-helloworld
4.make
5.make install
6.change the php.ini,add "extension=helloworld.so" and save.
5.php -m
What is the expected output? What do you see instead?
it is ok and display "hellworld" module.
What version of the product are you using? On what operating system?
phc-0.3.0.1
php5.2.15
centos6.4

What steps will reproduce the problem?
<?php
helloworld.php
class hello
{
   public $name;
   public function hello()
   {
      return  $this->name;
   }

}
?>

1.phc --extension=helloworld --generate-c helloworld.php > ext/helloworld.c
2.phpize --with-php-config=/usr/local/bin/php-config
3../configure --enable-helloworld
4.make
5.make install
6.change the php.ini,add "extension=helloworld.so" and save.
5.php -m
What is the expected output? What do you see instead?
will display the "helloworld" module
but disaply "Segmentation fault (core dumped)"
What version of the product are you using? On what operating system?
phc-0.3.0.1
php5.2.15
centos6.4
Please provide any additional information below.

Original issue reported on code.google.com by ythluo on 2013-08-25 13:36:17

@pbiggar
Copy link
Owner Author

pbiggar commented Jun 3, 2015

What steps will reproduce the problem?
<?php
helloworld.php
class hello
{
   public function hello()
   {
      return  "hello world";
   }

}
?>

1.phc --extension=helloworld --generate-c helloworld.php > ext/helloworld.c
2.phpize --with-php-config=/usr/local/bin/php-config
3../configure --enable-helloworld
4.make
5.make install
6.change the php.ini,add "extension=helloworld.so" and save.
5.php -m
What is the expected output? What do you see instead?
every thing is good.
it is ok and display "hellworld" module.
What version of the product are you using? On what operating system?
phc-0.3.0.1
php5.2.15
centos6.4

What steps will reproduce the problem?
<?php
helloworld.php
class hello
{
   public $name;
   public function hello()
   {
      return  $this->name;
   }

}
?>

1.phc --extension=helloworld --generate-c helloworld.php > ext/helloworld.c
2.phpize --with-php-config=/usr/local/bin/php-config
3../configure --enable-helloworld
4.make
5.make install
6.change the php.ini,add "extension=helloworld.so" and save.
5.php -m
What is the expected output? What do you see instead?

I wish to to display the "helloworld" module,but disaply "Segmentation fault (core
dumped)".

when I comment "extension=helloworld.so".
run 
<?php
  dl("helloworld.so");
  phpinfo();
?>
will display the "helloworld" module.

What is the problem "appending extension=helloworld.so to the php.ini will lead to
crash"

What version of the product are you using? On what operating system?
phc-0.3.0.1
php5.2.15
centos6.4
Please provide any additional information below.

Original issue reported on code.google.com by ythluo on 2013-08-25 13:52:13

@pbiggar
Copy link
Owner Author

pbiggar commented Oct 28, 2016

phc can't currently compile objects. This will definitely need some contributions to get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant